Skip to content

Commit

Permalink
mimxrt/sdio: Move config guard so headers are only included if used.
Browse files Browse the repository at this point in the history
Otherwise it's a build error on certain MCU series.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Sep 5, 2023
1 parent 297892c commit 671b38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/mimxrt/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 671b38f

Please sign in to comment.