diff options
author | Damien George <damien@micropython.org> | 2020-06-14 16:22:29 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-06-30 22:31:41 +1000 |
commit | 9d5edb35596b0ff5943bf1cb756dc3c42e8566d9 (patch) | |
tree | 1bca428c3e4cf4db4aee524398d5d1b4c6725dc3 /lib/utils | |
parent | b572aa5721e3516367c56fba9e0d09ac0edbbd2c (diff) | |
download | micropython-9d5edb35596b0ff5943bf1cb756dc3c42e8566d9.tar.gz micropython-9d5edb35596b0ff5943bf1cb756dc3c42e8566d9.zip |
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 <damien@micropython.org>
Diffstat (limited to 'lib/utils')
-rw-r--r-- | lib/utils/mpirq.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |