diff options
-rw-r--r-- | ports/stm32/i2c.c | 1 | ||||
-rw-r--r-- | ports/stm32/machine_i2s.c | 1 | ||||
-rw-r--r-- | ports/stm32/pin_static_af.h | 3 | ||||
-rw-r--r-- | ports/stm32/spi.c | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/ports/stm32/i2c.c b/ports/stm32/i2c.c index 42aba2ecc..52f227a95 100644 --- a/ports/stm32/i2c.c +++ b/ports/stm32/i2c.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include <string.h> #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 dbcd9352d..b3e1cee34 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 <stdlib.h> +#include <string.h> #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 49580a278..86ae90ba4 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 <string.h> + #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 47714a287..ee2301c80 100644 --- a/ports/stm32/spi.c +++ b/ports/stm32/spi.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include <string.h> #include "py/runtime.h" #include "py/mperrno.h" #include "py/mphal.h" |