add usb serial for debug firmware

Code by gpt5.5-xhigh
This commit is contained in:
awalol
2026-05-08 13:54:07 +08:00
parent b2b92959ca
commit be01dc439e
5 changed files with 97 additions and 16 deletions
+6 -2
View File
@@ -30,6 +30,10 @@
extern "C" {
#endif
#ifndef ENABLE_SERIAL
#define ENABLE_SERIAL 0
#endif
//--------------------------------------------------------------------+
// Board Specific Configuration
//--------------------------------------------------------------------+
@@ -93,7 +97,7 @@
//------------- CLASS -------------//
#define CFG_TUD_AUDIO 1
#define CFG_TUD_HID 1
#define CFG_TUD_CDC 1
#define CFG_TUD_CDC ENABLE_SERIAL
#define CFG_TUD_MSC 0
#define CFG_TUD_MIDI 0
#define CFG_TUD_VENDOR 0
@@ -143,4 +147,4 @@
}
#endif
#endif /* TUSB_CONFIG_H_ */
#endif /* TUSB_CONFIG_H_ */