KT24-1110_65E-HA-651B/include_lib/driver/cpu/br25/asm/uart.h

57 lines
936 B
C
Raw Normal View History

2024-11-10 10:44:17 +00:00
#ifndef ASM_UART_H
#define ASM_UART_H
#define UART_NUM 3
#define UART_OUTPORT_NUM 4
#include "device/uart.h"
#include "device/device.h"
#define UART0_PLATFORM_DATA_BEGIN(data) \
static const struct uart_platform_data data = {
#define UART0_PLATFORM_DATA_END() \
.irq = IRQ_UART0_IDX, \
};
#define UART1_PLATFORM_DATA_BEGIN(data) \
static const struct uart_platform_data data = {
#define UART1_PLATFORM_DATA_END() \
.irq = IRQ_UART1_IDX, \
};
#define UART2_PLATFORM_DATA_BEGIN(data) \
static const struct uart_platform_data data = {
#define UART2_PLATFORM_DATA_END() \
.irq = IRQ_UART2_IDX, \
};
// #define UART3_PLATFORM_DATA_BEGIN(data) \
// static const struct uart_platform_data data = {
// #define UART3_PLATFORM_DATA_END() \
// .irq = UART3_INT, \
// };
extern const struct device_operations uart_dev_ops;
extern int uart_init(const struct uart_platform_data *);
#endif