From 9d5edb35596b0ff5943bf1cb756dc3c42e8566d9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 14 Jun 2020 16:22:29 +1000 Subject: lib/utils: Protect all of mpirq.c with MICROPY_ENABLE_SCHEDULER. So it can be unconditionally included in a port's build even if certain configurations in that port do not use its features, to simplify the Makefile. Signed-off-by: Damien George --- lib/utils/mpirq.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/utils') diff --git a/lib/utils/mpirq.c b/lib/utils/mpirq.c index 8de13b0b6a..663be18224 100644 --- a/lib/utils/mpirq.c +++ b/lib/utils/mpirq.c @@ -31,6 +31,8 @@ #include "py/gc.h" #include "lib/utils/mpirq.h" +#if MICROPY_ENABLE_SCHEDULER + /****************************************************************************** DECLARE PUBLIC DATA ******************************************************************************/ @@ -125,3 +127,5 @@ const mp_obj_type_t mp_irq_type = { .call = mp_irq_call, .locals_dict = (mp_obj_dict_t *)&mp_irq_locals_dict, }; + +#endif // MICROPY_ENABLE_SCHEDULER -- cgit v1.2.3