nrf5x: refactor device control transfer.
- make control transfer as part of usbd. Class driver must use usbd_control_ API() instead of dcd_ api. - change the signature of class driver's control_request - allow control request complete to stall in staus stage - move control request parser & handling to usbd.
This commit is contained in:
@@ -148,10 +148,8 @@
|
||||
#define CFG_TUD_ENDOINT0_SIZE 64
|
||||
#endif
|
||||
|
||||
#ifndef CFG_TUD_ENUM_BUFFER_SIZE
|
||||
#ifndef CFG_TUD_CTRL_BUFSIZE
|
||||
#define CFG_TUD_CTRL_BUFSIZE 256
|
||||
#else
|
||||
#define CFG_TUD_CTRL_BUFSIZE CFG_TUD_ENUM_BUFFER_SIZE
|
||||
#endif
|
||||
|
||||
#ifndef CFG_TUD_DESC_AUTO
|
||||
|
Reference in New Issue
Block a user