diff --git a/ports/atmel-samd/supervisor/port.c b/ports/atmel-samd/supervisor/port.c index 5038d2550c..ccff352443 100644 --- a/ports/atmel-samd/supervisor/port.c +++ b/ports/atmel-samd/supervisor/port.c @@ -109,6 +109,7 @@ #include "shared-bindings/rtc/__init__.h" #include "shared_timers.h" #include "reset.h" +#include "common-hal/pulseio/PulseIn.h" #include "supervisor/background_callback.h" #include "supervisor/shared/safe_mode.h" diff --git a/ports/espressif/modules/none.c b/ports/espressif/modules/none.c index 9b5433bd9d..aa751bf3f4 100644 --- a/ports/espressif/modules/none.c +++ b/ports/espressif/modules/none.c @@ -24,5 +24,7 @@ * THE SOFTWARE. */ +#include "modules/module.h" + void never_reset_module_internal_pins(void) { } diff --git a/supervisor/supervisor.mk b/supervisor/supervisor.mk index 6789ab32ea..3270f76ed1 100644 --- a/supervisor/supervisor.mk +++ b/supervisor/supervisor.mk @@ -137,6 +137,9 @@ else endif endif +SRC_TINYUSB = $(filter lib/tinyusb/%.c, $(SRC_SUPERVISOR)) +$(patsubst %.c,$(BUILD)/%.o,$(SRC_TINYUSB)): CFLAGS += -Wno-missing-prototypes + SUPERVISOR_O = $(addprefix $(BUILD)/, $(SRC_SUPERVISOR:.c=.o)) ifeq ($(CIRCUITPY_DISPLAYIO), 1)