File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ PBIO_SRC_C = $(addprefix lib/pbio/,\
138138 drv/charger/charger_mp2639a.c \
139139 drv/clock/clock_ev3rt.c \
140140 drv/clock/clock_linux.c \
141+ drv/clock/clock_none.c \
141142 drv/clock/clock_nxt.c \
142143 drv/clock/clock_stm32.c \
143144 drv/clock/clock_test.c \
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: MIT
2+ // Copyright (c) 2024 The Pybricks Authors
3+
4+ #include <pbdrv/config.h>
5+
6+ #if PBDRV_CONFIG_CLOCK_NONE
7+
8+ #include <stdint.h>
9+
10+ void pbdrv_clock_init (void ) {
11+ }
12+
13+ uint32_t pbdrv_clock_get_us (void ) {
14+ return 0 ;
15+ }
16+
17+ uint32_t pbdrv_clock_get_ms (void ) {
18+ return 0 ;
19+ }
20+
21+ uint32_t pbdrv_clock_get_100us (void ) {
22+ return 0 ;
23+ }
24+
25+ #endif // PBDRV_CONFIG_CLOCK_NONE
You can’t perform that action at this time.
0 commit comments