mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
correct host cdc enum
This commit is contained in:
parent
05c119ce97
commit
14d45b580e
@ -522,7 +522,7 @@ static void process_cdc_config(tuh_xfer_t* xfer)
|
||||
#ifdef CFG_TUH_CDC_LINE_CODING_ON_ENUM
|
||||
{
|
||||
cdc_line_coding_t line_coding = CFG_TUH_CDC_LINE_CODING_ON_ENUM;
|
||||
TU_ASSERT( tuh_cdc_set_line_coding(idx, &line_coding, process_cdc_config, 0), );
|
||||
TU_ASSERT( tuh_cdc_set_line_coding(idx, &line_coding, process_cdc_config, CONFIG_COMPLETE), );
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
@ -330,6 +330,8 @@ bool tuh_init(uint8_t controller_id)
|
||||
TU_LOG_INT(USBH_DEBUG, sizeof(hcd_event_t));
|
||||
TU_LOG_INT(USBH_DEBUG, sizeof(_ctrl_xfer));
|
||||
TU_LOG_INT(USBH_DEBUG, sizeof(tuh_xfer_t));
|
||||
TU_LOG_INT(USBH_DEBUG, sizeof(tu_fifo_t));
|
||||
TU_LOG_INT(USBH_DEBUG, sizeof(tu_edpt_stream_t));
|
||||
|
||||
// Event queue
|
||||
_usbh_q = osal_queue_create( &_usbh_qdef );
|
||||
@ -1275,7 +1277,7 @@ static void process_enumeration(tuh_xfer_t* xfer)
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
__attribute__((fallthrough));
|
||||
TU_ATTR_FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
case ENUM_SET_ADDR:
|
||||
|
Loading…
x
Reference in New Issue
Block a user