MIMXRT1062/LLD/USBHSv1: increase USB_DEVICE_CONFIG_ENDPOINTS

It should match USB_MAX_ENDPOINTS, but cannot be defined to be USB_MAX_ENDPOINTS
without modifying other NXP SDK files, which I would like to avoid for easier
maintenance.

Instead, we add a preprocessor check where we have both of them defined and
ensure that they match this way :)
This commit is contained in:
Michael Stapelberg 2021-04-05 09:00:40 +02:00
parent a8a9e75aec
commit 2eb784da6d
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,10 @@
*/
#define USB_MAX_ENDPOINTS 7
#if USB_DEVICE_CONFIG_ENDPOINTS != USB_MAX_ENDPOINTS
#error "Mismatch: USB_DEVICE_CONFIG_ENDPOINTS != USB_MAX_ENDPOINTS"
#endif
/**
* @brief Status stage handling method.
*/

View File

@ -99,7 +99,7 @@
#define USB_DEVICE_CONFIG_SELF_POWER (1U)
/*! @brief How many endpoints are supported in the stack. */
#define USB_DEVICE_CONFIG_ENDPOINTS (4U)
#define USB_DEVICE_CONFIG_ENDPOINTS (7U)
/*! @brief Whether the device task is enabled. */
#define USB_DEVICE_CONFIG_USE_TASK (0U)