add unique id for u5, also allow to build with OPT_OS_CUSTOM

This commit is contained in:
hathach
2023-11-02 19:32:25 +07:00
parent b28d121a54
commit 89475fcf26
2 changed files with 16 additions and 0 deletions

View File

@@ -97,6 +97,9 @@ static inline uint32_t board_millis(void) {
return (((uint64_t)rt_tick_get()) * 1000 / RT_TICK_PER_SECOND);
}
#elif CFG_TUSB_OS == OPT_OS_CUSTOM
// Implement your own board_millis() in any of .c file
#else
#error "board_millis() is not implemented for this OS"
#endif