always limit number of NAK per endpoint per usb frame to save cpu usage. Default to 1 NAK per endpoint

This commit is contained in:
hathach
2024-04-02 12:36:00 +07:00
parent 14ce05fea3
commit bd2210b812
6 changed files with 55 additions and 92 deletions

View File

@@ -72,7 +72,6 @@
#if CFG_TUSB_MCU == OPT_MCU_RP2040
// #define CFG_TUH_RPI_PIO_USB 1 // use pio-usb as host controller
// #define CFG_TUH_MAX3421 1 // use max3421 as host controller
// #define CFG_TUH_MAX3421_MAX_ATTEMPTS_PER_FRAME 3 // max. transfer attempts per frame
// host roothub port is 1 if using either pio-usb or max3421
#if (defined(CFG_TUH_RPI_PIO_USB) && CFG_TUH_RPI_PIO_USB) || (defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421)