diff options
| author | hathach <[email protected]> | 2014-03-23 00:00:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-23 00:00:23 +0700 |
| commit | 3a8dce013d0cf153f4c81f8ba891b5abc1b276fd (patch) | |
| tree | ed7414d9b5da402143820b0072b7fa6faa2a5fda /tinyusb/device | |
| parent | 1cdca167cd41f51ca587a265b41f79446d828e48 (diff) | |
remove IAD_DESC_REQUIRED
add compiler guard for exceeding number of endpoints for lpc11/13u
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/dcd_lpc_11uxx_13uxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/device/dcd_lpc_11uxx_13uxx.c b/tinyusb/device/dcd_lpc_11uxx_13uxx.c index ae9609088..35c4f47fb 100644 --- a/tinyusb/device/dcd_lpc_11uxx_13uxx.c +++ b/tinyusb/device/dcd_lpc_11uxx_13uxx.c @@ -470,7 +470,7 @@ endpoint_handle_t dcd_pipe_open(uint8_t coreid, tusb_descriptor_endpoint_t const //------------- Prepare Queue Head -------------//
uint8_t ep_id = edpt_addr2phy(p_endpoint_desc->bEndpointAddress);
- ASSERT( dcd_data.qhd[ep_id][0].disable && dcd_data.qhd[ep_id][1].disable, null_handle ); // endpoint must not previously opened
+ ASSERT( dcd_data.qhd[ep_id][0].disable && dcd_data.qhd[ep_id][1].disable, null_handle ); // endpoint must not previously opened, normally this means running out of endpoints
memclr_(dcd_data.qhd[ep_id], 2*sizeof(dcd_11u_13u_qhd_t));
dcd_data.qhd[ep_id][0].is_isochronous = dcd_data.qhd[ep_id][1].is_isochronous = (p_endpoint_desc->bmAttributes.xfer == TUSB_XFER_ISOCHRONOUS);
|
