summaryrefslogtreecommitdiff
path: root/src/tusb.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-11-14 10:25:52 +0700
committerGitHub <[email protected]>2024-11-14 10:25:52 +0700
commit0af07f1cffa025da8a2b153280e07760a90a96d8 (patch)
tree193a894c1f8ca30011cf76b2aef629756ab14814 /src/tusb.h
parentb648a38ae84181757d4c8bdbd3f92001448ac805 (diff)
parent6f11f99f989660384611d846fc6de7ccdf008b0e (diff)
Merge branch 'master' into warning
Diffstat (limited to 'src/tusb.h')
-rw-r--r--src/tusb.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tusb.h b/src/tusb.h
index 2f30a5739..cb6021b33 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -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,15 @@ void tusb_int_handler(uint8_t rhport, bool in_isr);
#endif
+//--------------------------------------------------------------------+
+// API Implemented by user
+//--------------------------------------------------------------------+
+
+// Get current milliseconds, required by some port/configuration without RTOS
+uint32_t tusb_time_millis_api(void);
+
+// Delay in milliseconds, use tusb_time_millis_api() by default. required by some port/configuration with no RTOS
+void tusb_time_delay_ms_api(uint32_t ms);
#ifdef __cplusplus
}