change dcd_init() to take rhport struct

This commit is contained in:
hathach
2024-10-11 15:21:32 +07:00
parent 92602b9de3
commit d997f0071e
31 changed files with 83 additions and 58 deletions

View File

@@ -108,7 +108,7 @@ void dcd_dcache_clean_invalidate(void const* addr, uint32_t data_size) TU_ATTR_W
//--------------------------------------------------------------------+
// Initialize controller to device mode
void dcd_init(uint8_t rhport);
void dcd_init(const tusb_rhport_init_t* rh_init);
// Deinitialize controller, unset device mode.
bool dcd_deinit(uint8_t rhport);