在逗猫棒的基础上实现蓝牙转USB功能,目前功能已经实现,还需裁剪掉之前逗猫棒的业务程序

This commit is contained in:
2026-07-24 11:41:08 +08:00
commit b3f06697a6
1569 changed files with 515355 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
#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