ch552: Update USB polling period

Update USB polling period (bInterval) for CDC, HID and TKEYCTRL
endpoints.
This commit is contained in:
Jonas Thörnblad 2025-01-22 15:55:51 +01:00 committed by Mikael Ågren
parent 5029eb1d39
commit 361890042a
No known key found for this signature in database
GPG Key ID: E02DA3D397792C46

View File

@ -55,10 +55,10 @@ USB_SETUP_REQ SetupReqBuf = { 0 }; // Temporary Setup package
#define TKEYCTRL_EPIN_ADDR 0x84 // TKEYCTRL Endpoint IN Address
#define TKEYCTRL_EPIN_SIZE MAX_PACKET_SIZE // TKEYCTRL Endpoint IN Size
#define CDC_CTRL_FS_BINTERVAL 0xFF // 255 ms polling interval at Full Speed
#define CDC_DATA_FS_BINTERVAL 1 // 1 ms polling interval at Full Speed
#define HID_FS_BINTERVAL 1 // 1 ms polling interval at Full Speed
#define TKEYCTRL_FS_BINTERVAL 1 // 1 ms polling interval at Full Speed
#define CDC_CTRL_FS_BINTERVAL 0xFF // Gives 32 ms polling interval at Full Speed
#define CDC_DATA_FS_BINTERVAL 10 // Gives 8 ms polling interval at Full Speed
#define HID_FS_BINTERVAL 10 // Gives 8 ms polling interval at Full Speed
#define TKEYCTRL_FS_BINTERVAL 10 // Gives 8 ms polling interval at Full Speed
#define CFGDESC_SIZE 139U // Size of CfgDesc
#define NUM_INTERFACES 4 // Number of interfaces