@@ -424,6 +424,11 @@ TU_ATTR_WEAK bool dcd_edpt_xfer_fifo(uint8_t rhport, uint8_t ep_addr, tu_fifo_t
424424 return false;
425425}
426426
427+ TU_ATTR_WEAK bool dcd_configure (uint8_t rhport , uint32_t cfg_id , const void * cfg_param ) {
428+ (void ) rhport ; (void ) cfg_id ; (void ) cfg_param ;
429+ return false;
430+ }
431+
427432//--------------------------------------------------------------------+
428433// Debug
429434//--------------------------------------------------------------------+
@@ -493,13 +498,14 @@ void tud_sof_cb_enable(bool en) {
493498 usbd_sof_enable (_usbd_rhport , SOF_CONSUMER_USER , en );
494499}
495500
496- //--------------------------------------------------------------------+
497- // USBD Task
498- //--------------------------------------------------------------------+
499501bool tud_inited (void ) {
500502 return _usbd_rhport != RHPORT_INVALID ;
501503}
502504
505+ bool tud_configure (uint8_t rhport , uint32_t cfg_id , const void * cfg_param ) {
506+ return dcd_configure (rhport , cfg_id , cfg_param );
507+ }
508+
503509bool tud_rhport_init (uint8_t rhport , const tusb_rhport_init_t * rh_init ) {
504510 if (tud_inited ()) {
505511 return true; // skip if already initialized
@@ -623,6 +629,9 @@ bool tud_task_event_ready(void) {
623629 return !osal_queue_empty (_usbd_q );
624630}
625631
632+ //--------------------------------------------------------------------+
633+ // USBD Task
634+ //--------------------------------------------------------------------+
626635/* USB Device Driver task
627636 * This top level thread manages all device controller event and delegates events to class-specific drivers.
628637 * This should be called periodically within the mainloop or rtos thread.
0 commit comments