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:
parent
a8a9e75aec
commit
2eb784da6d
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue