1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2020-06-27 AHTYDHD the first version 9 */ 10 11 #ifndef __DRV_UART_H__ 12 #define __DRV_UART_H__ 13 14 #include <stdint.h> 15 #include <rthw.h> 16 #include <rtthread.h> 17 #include "rtdevice.h" 18 19 /* tm4c123 config class */ 20 struct tm4c123_uart_config 21 { 22 const char *name; 23 uint32_t uartbase; 24 uint32_t baudrate; 25 uint32_t mode; 26 27 }; 28 29 /* tm4c123 uart dirver class */ 30 struct tm4c123_uart 31 { 32 struct tm4c123_uart_config *config; 33 uint32_t uartintbase; 34 35 #ifdef RT_SERIAL_USING_DMA 36 #endif 37 38 rt_uint16_t uart_dma_flag; 39 struct rt_serial_device serial; 40 }; 41 42 extern int rt_hw_usart_init(void); 43 44 #endif /*__DRV_UART_H__*/ 45 46 /************************** end of file ******************/ 47