rt-thread/bsp/tkm32F499/drivers/drv_uart.h

31 lines
441 B
C
Raw Permalink Normal View History

2021-10-14 18:50:35 +08:00
/*
* 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