diff options
author | Damien George <damien@micropython.org> | 2022-11-11 15:43:55 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-11-11 16:24:32 +1100 |
commit | a513558e3a72b47880faa847de64949e7fc746f6 (patch) | |
tree | adbada6a58ec0a3d2f7c457a1f5b0f838b7cebd7 /extmod/machine_timer.c | |
parent | 2f0565367339595bf3130acf8e20d3d4e9bad499 (diff) |
extmod: Add and reorganise compilation guards and includes.
To reduce dependencies on header files when extmod components are disabled.
Signed-off-by: Damien George <damien.p.george@gmail.com>
Diffstat (limited to 'extmod/machine_timer.c')
-rw-r--r-- | extmod/machine_timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extmod/machine_timer.c b/extmod/machine_timer.c index cdace4ee2..68702cb74 100644 --- a/extmod/machine_timer.c +++ b/extmod/machine_timer.c @@ -26,10 +26,11 @@ #include "py/runtime.h" #include "py/mphal.h" -#include "shared/runtime/softtimer.h" #if MICROPY_PY_MACHINE_TIMER +#include "shared/runtime/softtimer.h" + typedef soft_timer_entry_t machine_timer_obj_t; const mp_obj_type_t machine_timer_type; |