Finished rubber ducky

This commit is contained in:
2026-06-20 08:54:28 -04:00
parent cf00d159ca
commit 857e77c7c8
752 changed files with 23436 additions and 46701 deletions

27
tusb_config.h Normal file
View File

@@ -0,0 +1,27 @@
#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_ */