diff options
Diffstat (limited to 'c/src/lib/libbsp/i386/shared/comm/uart.h')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/comm/uart.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.h b/c/src/lib/libbsp/i386/shared/comm/uart.h index 116ae15c60..f9bf3a3a53 100644 --- a/c/src/lib/libbsp/i386/shared/comm/uart.h +++ b/c/src/lib/libbsp/i386/shared/comm/uart.h @@ -10,6 +10,10 @@ #ifndef _BSPUART_H #define _BSPUART_H +#ifdef __cplusplus +extern "C" { +#endif + void BSP_uart_init(int uart, unsigned long baud, unsigned long databits, unsigned long parity, unsigned long stopbits, int hwFlow); void BSP_uart_set_attributes(int uart, unsigned long baud, unsigned long databits, unsigned long parity, unsigned long stopbits); void BSP_uart_set_baud(int uart, unsigned long baud); @@ -166,6 +170,11 @@ extern int BSPBaseBaud; #define RECEIVE_FIFO_TRIGGER12 0xc0 /* trigger recieve interrupt after 12 byte */ #define TRIG_LEVEL 0xc0 /* Mask for the trigger level */ +#ifdef __cplusplus +} +#endif + + #endif /* _BSPUART_H */ |