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.
#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
