add tusb_time_millis(), able to reset and enable dwc2 port and get SOF active

This commit is contained in:
hathach
2024-10-21 17:45:40 +07:00
parent f5978876d2
commit 8461525d48
8 changed files with 123 additions and 30 deletions

View File

@@ -127,10 +127,8 @@
//--------------------------------------------------------------------+
// APPLICATION API
// User API
//--------------------------------------------------------------------+
#if CFG_TUH_ENABLED || CFG_TUD_ENABLED
// Internal helper for backward compatible with tusb_init(void)
@@ -167,6 +165,12 @@ void tusb_int_handler(uint8_t rhport, bool in_isr);
#endif
//--------------------------------------------------------------------+
// API Implemented by user
//--------------------------------------------------------------------+
// Get current milliseconds, maybe required by some port with no RTOS
uint32_t tusb_time_millis(void);
#ifdef __cplusplus
}