add tuh_configure() for port/dynamic host behavior config

This commit is contained in:
hathach
2022-06-08 01:17:01 +07:00
parent 896c707cd4
commit 8cbc34de11
6 changed files with 67 additions and 23 deletions

View File

@@ -48,7 +48,7 @@
// #endif
#endif
//--------------------------------------------------------------------+
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
typedef enum
@@ -106,6 +106,9 @@ typedef struct
// Controller API
//--------------------------------------------------------------------+
// optional hcd configuration, called by tuh_config()
bool hcd_configure(uint8_t rhport, uint32_t cfg_id, const void* cfg_param) TU_ATTR_WEAK;
// Initialize controller to host mode
bool hcd_init(uint8_t rhport);