Hi,
I found out that the include <stdbool.h> is missing in uartstdio.h. If I set UART_BUFFERED, I will get errors because the type bool is not defined. I changed the include file to this:
#ifdef UART_BUFFERED #include <stdbool.h> extern int UARTPeek(unsigned char ucChar); extern void UARTFlushTx(bool bDiscard); extern void UARTFlushRx(void); extern int UARTRxBytesAvail(void); extern int UARTTxBytesFree(void); extern void UARTEchoSet(bool bEnable); #endif
I do not use bool in my main function, so I got that error.