Files
mr-library/bsp/st/driver/drv_uart.h
2023-10-15 14:14:52 +08:00

34 lines
535 B
C

/*
* Copyright (c) 2023, mr-library Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2023-10-8 MacRsh first version
*/
#ifndef _DRV_UART_H_
#define _DRV_UART_H_
#include "device/serial.h"
#include "mrboard.h"
#if (MR_CFG_SERIAL == MR_CFG_ENABLE)
/**
* @struct Driver uart data
*/
struct drv_uart_data
{
const char *name;
UART_HandleTypeDef handle;
USART_TypeDef *instance;
IRQn_Type irq_type;
};
#endif
#endif /* _DRV_UART_H_ */