add tuh_inited() and tud_inited()

This commit is contained in:
hathach
2021-05-02 01:46:22 +07:00
parent 68fa17e17c
commit 2666e1efec
4 changed files with 36 additions and 3 deletions

View File

@@ -78,6 +78,9 @@ typedef bool (*tuh_control_complete_cb_t)(uint8_t dev_addr, tusb_control_request
// Init host stack
bool tuh_init(void);
// Check if host stack is already initialized
bool tuh_inited(void);
// Task function should be called in main/rtos loop
void tuh_task(void);