diff options
Diffstat (limited to 'hw/bsp/ch58x/debug_uart.h')
| -rw-r--r-- | hw/bsp/ch58x/debug_uart.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/bsp/ch58x/debug_uart.h b/hw/bsp/ch58x/debug_uart.h index 458d838d9..44c3e7948 100644 --- a/hw/bsp/ch58x/debug_uart.h +++ b/hw/bsp/ch58x/debug_uart.h @@ -29,8 +29,16 @@ #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + void uart_write(char c); void uart_sync(void); void usart_printf_init(uint32_t baudrate); +#ifdef __cplusplus +} +#endif + #endif /* DEBUG_UART_H_ */ |
