summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-03-28 20:58:59 +0700
committerGitHub <[email protected]>2024-03-28 20:58:59 +0700
commita5a90937b4d6c2d67491ed335fd901a77c2ac50f (patch)
tree5648aa3a60296e1c93d4e1433b99908b29c32ed3
parenteaab04fefaf31ecbf09c8c6c75e580838c4e091f (diff)
parent275e2f318ec17ba3956eb89965831ad5dff402be (diff)
Merge pull request #2549 from duckylotl/patch-1
forward declare board_millis for OPT_OS_CUSTOM
-rw-r--r--hw/bsp/board_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/bsp/board_api.h b/hw/bsp/board_api.h
index 0c8a35924..3b9f211a2 100644
--- a/hw/bsp/board_api.h
+++ b/hw/bsp/board_api.h
@@ -116,6 +116,7 @@ static inline uint32_t board_millis(void) {
#elif CFG_TUSB_OS == OPT_OS_CUSTOM
// Implement your own board_millis() in any of .c file
+uint32_t board_millis(void);
#else
#error "board_millis() is not implemented for this OS"