diff options
Diffstat (limited to 'hw/bsp/board.h')
| -rw-r--r-- | hw/bsp/board.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/bsp/board.h b/hw/bsp/board.h index 15e3a2511..4c5716d96 100644 --- a/hw/bsp/board.h +++ b/hw/bsp/board.h @@ -42,7 +42,7 @@ #include "tusb.h" -#define CFG_UART_BAUDRATE 115200 +#define CFG_BOARD_UART_BAUDRATE 115200 //--------------------------------------------------------------------+ // Board Porting API @@ -107,10 +107,10 @@ static inline void board_delay(uint32_t ms) } } -static inline int8_t board_uart_getchar(void) +static inline int board_uart_getchar(void) { uint8_t c; - return board_uart_read(&c, 1) ? c : (-1); + return board_uart_read(&c, 1) ? (int) c : (-1); } static inline int board_uart_putchar(uint8_t c) |
