Merge pull request #1835 from MasterQ32/otg_bringup

Implements deinit functions for host/device mode switch
This commit is contained in:
Ha Thach
2024-04-08 23:48:52 +07:00
committed by GitHub
33 changed files with 312 additions and 102 deletions

View File

@@ -179,11 +179,14 @@ bool tud_hid_n_gamepad_report(uint8_t instance, uint8_t report_id,
//--------------------------------------------------------------------+
// USBD-CLASS API
//--------------------------------------------------------------------+
void hidd_init(void)
{
void hidd_init(void) {
hidd_reset(0);
}
bool hidd_deinit(void) {
return true;
}
void hidd_reset(uint8_t rhport)
{
(void) rhport;