implement tuh_init()

change usbh driver init() return type from void to bool
This commit is contained in:
hathach
2024-03-22 16:12:57 +07:00
parent 31f68495cf
commit e84c9f3e22
10 changed files with 79 additions and 50 deletions

View File

@@ -51,7 +51,7 @@ enum {
typedef struct {
char const* name;
void (* const init )(void);
bool (* const init )(void);
bool (* const deinit )(void);
bool (* const open )(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const * itf_desc, uint16_t max_len);
bool (* const set_config )(uint8_t dev_addr, uint8_t itf_num);