虚拟键盘成功
This commit is contained in:
@@ -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
|
||||
|
||||
// 配置 MSC(U盘)
|
||||
#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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user