I have the following error on my simulated program.
Error C267 Funcdef Requires ANSI-Style Prototype Summary *** Error C267 Funcdef Requires ANSI-Style Prototype
Description A function was invoked with parameters but the declaration specifies an empty parameter list. The prototype should be completed with the parameter types in order to give the compiler the opportunity to pass parameters in registers and have the calling me
Copyright (c) Keil - An ARM Company. All rights reserved.
That was the error description, can anybody tell me how to correct it?
This is the code: #include "Main.h" #include "Simple_EOS.H"
#include "PC_IO_T1.h"
/* ...........................................................................................................................*/ /* ........................................................................................................................... */
void main(void) { // Set baud rate to 9600: generic 8051 version PC_LINK_IO_Init_T1(9600);
// Set up sEOS (5ms tick) sEOS_Init_Timer2(5);
while(1) // Super Loop { sEOS_Go_To_Sleep(); //Enter idle mode to save power } }
This is an example of the Addison_Wesley_Embedded_C.pdf