boards/arm/kinetis/twr-k60n512/src/k60_appinit.c: Suppress errors related to card detect GPIO configuration if SDHC support is not enabled.

This commit is contained in:
Gregory Nutt
2019-10-27 18:02:16 -06:00
parent fd625eaa89
commit 7dad735fc3
@@ -100,12 +100,14 @@
/* We expect to receive GPIO interrupts for card insertion events */ /* We expect to receive GPIO interrupts for card insertion events */
#ifndef CONFIG_KINETIS_GPIOIRQ #ifdef NSH_HAVEMMCSD
# error "CONFIG_KINETIS_GPIOIRQ required for card detect interrupt" # ifndef CONFIG_KINETIS_GPIOIRQ
#endif # error "CONFIG_KINETIS_GPIOIRQ required for card detect interrupt"
# endif
#ifndef CONFIG_KINETIS_PORTEINTS # ifndef CONFIG_KINETIS_PORTEINTS
# error "CONFIG_KINETIS_PORTEINTS required for card detect interrupt" # error "CONFIG_KINETIS_PORTEINTS required for card detect interrupt"
# endif
#endif #endif
/**************************************************************************** /****************************************************************************
@@ -272,3 +274,4 @@ int board_app_initialize(uintptr_t arg)
#endif #endif
return OK; return OK;
} }