Hi,
this isn't a error of the compiler but I noticed that the function prototype for EEPROM function has too many Blank spaces. The warning messages are something like this:
*** WARNING C090 IN LINE 217 OF C:\Program Files\Raisonance\Ride\uC_HID_ONC\uC_HID_ONC\hidmain.c : Call to function 'EEPROM_Read' without prototype
*** WARNING C183 IN LINE 217 OF C:\Program Files\Raisonance\Ride\uC_HID_ONC\uC_HID_ONC\hidmain.c : 'EEPROM_Read': funcdef requires ANSI-parameter list
*** WARNING C090 IN LINE 304 OF C:\Program Files\Raisonance\Ride\uC_HID_ONC\uC_HID_ONC\hidmain.c : Call to function 'EEPROM_Write' without prototype
*** WARNING C183 IN LINE 304 OF C:\Program Files\Raisonance\Ride\uC_HID_ONC\uC_HID_ONC\hidmain.c : 'EEPROM_Write': funcdef requires ANSI-parameter list
*** WARNING C090 IN LINE 306 OF C:\Program Files\Raisonance\Ride\uC_HID_ONC\uC_HID_ONC\hidmain.c : Call to function 'EEPROM_Programming' without prototype
This is because:
void EEPROM_Read (unsigned char * PtrToUsrBuffer, unsigned char NbOfBytes,
unsigned char data * PtrToE2Buffer)
Instead of:
void EEPROM_Read (unsigned char *PtrToUsrBuffer, unsigned char NbOfBytes,
unsigned char data *PtrToE2Buffer)
Also I added to EEPROM.c:
#ifndef _RAISONANCE_
#define _RAISONANCE_
#endif
PS:
_RAISONANCE_ is defined in EEPROM.h
Warnings are expired... I know... normally blank spaces don't give this kind of prob, but they do in this case...
|
Hi Gremlin,
Blank spaces are ignored by the compiler, so the problem is somewhere else.
Anyway we have not been able to work on your problem as we do not have the sources for your project. If you post them we can probably give a better answer.
Regards,