From 671b38f9440511b45fe2b93e15272f53135422d3 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 5 Sep 2023 11:03:08 +1000 Subject: [PATCH] mimxrt/sdio: Move config guard so headers are only included if used. Otherwise it's a build error on certain MCU series. Signed-off-by: Damien George --- ports/mimxrt/sdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/mimxrt/sdio.c b/ports/mimxrt/sdio.c index 771a01e3d9..d97fef9e51 100644 --- a/ports/mimxrt/sdio.c +++ b/ports/mimxrt/sdio.c @@ -30,11 +30,11 @@ #include "pin.h" #include "pendsv.h" +#if MICROPY_PY_NETWORK_CYW43 + #include "fsl_usdhc.h" #include "fsl_iomuxc.h" -#if MICROPY_PY_NETWORK_CYW43 - #if MICROPY_HW_SDIO_SDMMC == 1 #define SDMMC USDHC1 #define SDMMC_IRQn USDHC1_IRQn