Garst R. Reese wrote:
Can someone explain what is happening here?
mmc.c
12 #include <stdio.h>
In file included from mmc.c:12:
/usr/local/msp430/msp430/include/stdio.h:48: syntax error before "const"
make: *** [all] Error 1
it works for me... e.g. examples/uart_test compiles without error or
warning.
the newer stdio headers and the libc contains printf as a function,
maybe the sourcecode was written for an old version where they did not
exist? maybe there is a #define printf(...) somewhere?
> lcd.c:73: warning: passing arg 1 of `uprintf' from incompatible
> pointer type
this warning is because your putput function does not return int. it
should should return 0 <= x <= 255 on success (usualy the printed
character casted to unsigned char) *printf aborts the output if the
putchar functions returns a negative value.
HTH
chris