From 7dad735fc31f9ddeda022b00f9734851bc5c7e15 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 27 Oct 2019 18:02:16 -0600 Subject: [PATCH] boards/arm/kinetis/twr-k60n512/src/k60_appinit.c: Suppress errors related to card detect GPIO configuration if SDHC support is not enabled. --- boards/arm/kinetis/twr-k60n512/src/k60_appinit.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/boards/arm/kinetis/twr-k60n512/src/k60_appinit.c b/boards/arm/kinetis/twr-k60n512/src/k60_appinit.c index 8f9c405475..d1193dd748 100644 --- a/boards/arm/kinetis/twr-k60n512/src/k60_appinit.c +++ b/boards/arm/kinetis/twr-k60n512/src/k60_appinit.c @@ -100,12 +100,14 @@ /* We expect to receive GPIO interrupts for card insertion events */ -#ifndef CONFIG_KINETIS_GPIOIRQ -# error "CONFIG_KINETIS_GPIOIRQ required for card detect interrupt" -#endif +#ifdef NSH_HAVEMMCSD +# ifndef CONFIG_KINETIS_GPIOIRQ +# error "CONFIG_KINETIS_GPIOIRQ required for card detect interrupt" +# endif -#ifndef CONFIG_KINETIS_PORTEINTS -# error "CONFIG_KINETIS_PORTEINTS required for card detect interrupt" +# ifndef CONFIG_KINETIS_PORTEINTS +# error "CONFIG_KINETIS_PORTEINTS required for card detect interrupt" +# endif #endif /**************************************************************************** @@ -272,3 +274,4 @@ int board_app_initialize(uintptr_t arg) #endif return OK; } +