summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-09-05 11:03:08 +1000
committerDamien George <damien@micropython.org>2023-09-05 11:03:08 +1000
commit671b38f9440511b45fe2b93e15272f53135422d3 (patch)
treeeb8f716d21c1763af60bb57d9e925e42894ae144
parent297892c4f465c1c6991e6bed0649771bbe1374f6 (diff)
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 <damien@micropython.org>
-rw-r--r--ports/mimxrt/sdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/mimxrt/sdio.c b/ports/mimxrt/sdio.c
index 771a01e3d..d97fef9e5 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