#ifndef _TUSB_CONFIG_H_ #define _TUSB_CONFIG_H_ #ifdef __cplusplus extern "C" { #endif // Define the board platform #define CFG_TUSB_MCU OPT_MCU_RP2040 // CRUCIAL: Set port 0 to Device mode (this fixes the static assertion error!) #define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE // Enable device stack #define CFG_TUD_ENABLED 1 // Enable HID class driver #define CFG_TUD_HID 1 // Endpoint buffer size configuration #define CFG_TUD_ENDPOINT0_SIZE 64 #ifdef __cplusplus } #endif #endif /* _TUSB_CONFIG_H_ */