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 * 2021-10-02 spaceman first version 9 */ 10 11 #ifndef DRV_UART_H__ 12 #define DRV_UART_H__ 13 14 #include <rtthread.h> 15 #include "rtdevice.h" 16 #include <rthw.h> 17 18 19 int rt_hw_uart_init(void); 20 21 /* uart driver */ 22 struct tkm32_uart 23 { 24 UART_TypeDef *uart; 25 IRQn_Type irq; 26 }; 27 28 29 30 #endif 31