added Suspend and Resume event for nrf5x port
also rename DCD_EVENT_SUSPENDED to DCD_EVENT_SUSPEND
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ typedef enum
|
||||
DCD_EVENT_BUS_RESET = 1,
|
||||
DCD_EVENT_UNPLUGGED,
|
||||
DCD_EVENT_SOF,
|
||||
DCD_EVENT_SUSPENDED,
|
||||
DCD_EVENT_SUSPEND,
|
||||
DCD_EVENT_RESUME,
|
||||
|
||||
DCD_EVENT_SETUP_RECEIVED,
|
||||
|
||||
+2
-2
@@ -40,7 +40,7 @@
|
||||
// Device Data
|
||||
//--------------------------------------------------------------------+
|
||||
typedef struct {
|
||||
volatile uint8_t config_num;
|
||||
volatile uint8_t config_num; // 0 is non-configure ~ disconnect
|
||||
|
||||
uint8_t itf2drv[16]; // map interface number to driver (0xff is invalid)
|
||||
uint8_t ep2drv[8][2]; // map endpoint to driver ( 0xff is invalid )
|
||||
@@ -555,7 +555,7 @@ void dcd_event_handler(dcd_event_t const * event, bool in_isr)
|
||||
// nothing to do now
|
||||
break;
|
||||
|
||||
case DCD_EVENT_SUSPENDED:
|
||||
case DCD_EVENT_SUSPEND:
|
||||
// TODO support suspended
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user