diff options
Diffstat (limited to 'c/src/lib/libbsp/or1k/or1ksim/include/uart.h')
-rw-r--r-- | c/src/lib/libbsp/or1k/or1ksim/include/uart.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/or1k/or1ksim/include/uart.h b/c/src/lib/libbsp/or1k/or1ksim/include/uart.h new file mode 100644 index 0000000000..92ed203844 --- /dev/null +++ b/c/src/lib/libbsp/or1k/or1ksim/include/uart.h @@ -0,0 +1,42 @@ +/** + * @file + * + * @ingroup or1ksim_uart + * + * @brief UART support. + */ + +/* + * COPYRIGHT (c) 2014 Hesham ALMatary <heshamelmatary@gmail.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE + */ + +/** + * @defgroup or1ksim_uart UART Support + * + * @ingroup or1k_or1ksim + * + * @brief Universal Asynchronous Receiver/Transmitter (UART) Support + */ + +#ifndef LIBBSP_OR1K_OR1KSIM_UART_H +#define LIBBSP_OR1K_OR1KSIM_UART_H + +#include <libchip/serial.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define OR1KSIM_UART_DEFAULT_BAUD 115200 +#define OR1KSIM_BSP_UART_IRQ 13 +extern const console_fns or1ksim_uart_fns; + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* LIBBSP_OR1K_OR1KSIM_UART_H */ |