Compiling this function: (PIC16 target if that helps)
void delay (uint32_t delay)
{
setCounter (delay) ;
while (!counterTriggered ())
;
}
Gives the error:
dross.c:435: error 98: conflict with previous definition of 'delay' for
attribute 'type'
from type 'unsigned-long-int'
to type 'void function ( unsigned-long-int) '
However it compiles (and works) with GCC (AVR)
I can see why it's giving that error, but I'm not sure which is right
though... I imagine there's something deep in a standard somewhere that
says something like: Implementation dependant... :-)
Anyway, it compiles and runs fine when I change the parameter 'delay' into
something else.
Cheers,
Gordon
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user