diff --git a/ports/stm32/i2c.c b/ports/stm32/i2c.c index 42aba2eccb..52f227a950 100644 --- a/ports/stm32/i2c.c +++ b/ports/stm32/i2c.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include #include "py/mperrno.h" #include "py/mphal.h" #include "py/runtime.h" diff --git a/ports/stm32/machine_i2s.c b/ports/stm32/machine_i2s.c index dbcd9352d5..b3e1cee34f 100644 --- a/ports/stm32/machine_i2s.c +++ b/ports/stm32/machine_i2s.c @@ -29,6 +29,7 @@ // extmod/machine_i2s.c via MICROPY_PY_MACHINE_I2S_INCLUDEFILE. #include +#include #include "py/mphal.h" #include "pin.h" #include "dma.h" diff --git a/ports/stm32/pin_static_af.h b/ports/stm32/pin_static_af.h index 49580a2787..86ae90ba4c 100644 --- a/ports/stm32/pin_static_af.h +++ b/ports/stm32/pin_static_af.h @@ -26,6 +26,9 @@ #ifndef MICROPY_INCLUDED_STM32_PIN_STATIC_AF_H #define MICROPY_INCLUDED_STM32_PIN_STATIC_AF_H +// For debug builds some of the macros expand to use strcmp. +#include + #include "py/mphal.h" #include "genhdr/pins.h" #include "genhdr/pins_af_defs.h" diff --git a/ports/stm32/spi.c b/ports/stm32/spi.c index 47714a2872..ee2301c803 100644 --- a/ports/stm32/spi.c +++ b/ports/stm32/spi.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include #include "py/runtime.h" #include "py/mperrno.h" #include "py/mphal.h"