This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#include <stdbool.h> missing in uartstdio.h



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.

  • Hi,

    I usually have that included in main so that's probably why i never faced that error.

    Maybe the team that made that part also did the same and overlooked that include? Still the functions on that utility should include the files needed to work...