diff options
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 7 | ||||
| -rw-r--r-- | src/device/usbd.c | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index f07bda2d3..db84df839 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -49,13 +49,6 @@ extern "C" {
#endif
-enum
-{
- DCD_XFER_SUCCESS = 0,
- DCD_XFER_FAILED,
- DCD_XFER_STALLED
-};
-
typedef enum
{
DCD_EVENT_BUS_RESET = 1,
diff --git a/src/device/usbd.c b/src/device/usbd.c index 710eba553..8c7e588e0 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -581,7 +581,7 @@ void dcd_event_handler(dcd_event_t const * event, bool in_isr) if ( 0 == edpt_number(event->xfer_complete.ep_addr) && event->xfer_complete.len == 0) break;
osal_queue_send(_usbd_q, event, in_isr);
- TU_ASSERT(event->xfer_complete.result == DCD_XFER_SUCCESS,);
+ TU_ASSERT(event->xfer_complete.result == XFER_RESULT_SUCCESS,);
break;
default: break;
|
