虚拟键盘成功

This commit is contained in:
zqm
2026-04-03 15:59:19 +08:00
parent cf7ae28b1b
commit 32439929d8
30 changed files with 6307 additions and 6062 deletions

View File

@@ -5,26 +5,17 @@
extern "C" {
#endif
// 配置 USB 设备模式
#define CFG_TUD_ENABLED 1
// 配置 USB 速度
#define CFG_TUSB_OS OPT_OS_FREERTOS
// 配置 USB 缓冲区大小
#define CFG_TUD_ENDPOINT0_SIZE 64
// 配置 HID 键盘
#define CFG_TUD_HID 1
#define CFG_TUD_HID_EP_BUFSIZE 64
// 配置 CDC串口
#define CFG_TUD_CDC 1
#define CFG_TUD_CDC_EP_BUFSIZE 64
// 配置 MSCU盘
#define CFG_TUD_MSC 1
#define CFG_TUD_MSC_EP_BUFSIZE 64
#define CFG_TUD_CDC 0
#define CFG_TUD_MSC 0
#define CFG_TUD_MIDI 0
#define CFG_TUD_VENDOR 0
#ifdef __cplusplus
}