summaryrefslogtreecommitdiff
path: root/bsp/tkm32F499/drivers/drv_uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/tkm32F499/drivers/drv_uart.h')
-rw-r--r--bsp/tkm32F499/drivers/drv_uart.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/bsp/tkm32F499/drivers/drv_uart.h b/bsp/tkm32F499/drivers/drv_uart.h
new file mode 100644
index 0000000000..4615c9db3d
--- /dev/null
+++ b/bsp/tkm32F499/drivers/drv_uart.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2021-10-02 spaceman first version
+ */
+
+#ifndef DRV_UART_H__
+#define DRV_UART_H__
+
+#include <rtthread.h>
+#include "rtdevice.h"
+#include <rthw.h>
+
+
+int rt_hw_uart_init(void);
+
+/* uart driver */
+struct tkm32_uart
+{
+ UART_TypeDef *uart;
+ IRQn_Type irq;
+};
+
+
+
+#endif