Toolset assemnbled ala Lynch tutorial. I am starting to add UART code to blinky.
I have added a uart.c and uart.h. uart.c added to Makefile.
In uart.h I have declared: void uart0Putch(unsigned char byte_out);
In main.c I call: uart0Putch(0xAA);
This results in a “undefined reference” error at this line.
I add a void to get: void uart0Putch(0xAA);
and I get the errors: “parse error before numeric constant” and conflicting types for ’ uart0Putch’
there is also an error in uart.h at the function declaration: ‘previous declaration of uart0Putch was here’
What gives?
Thanks
Rich