summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou/src/up_mmcsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/shenzhou/src/up_mmcsd.c')
-rw-r--r--nuttx/configs/shenzhou/src/up_mmcsd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/configs/shenzhou/src/up_mmcsd.c b/nuttx/configs/shenzhou/src/up_mmcsd.c
index 531fbfd7e..adf695cd5 100644
--- a/nuttx/configs/shenzhou/src/up_mmcsd.c
+++ b/nuttx/configs/shenzhou/src/up_mmcsd.c
@@ -65,6 +65,12 @@
# endif
#endif
+/* Can't support MMC/SD features if MMC/SD driver support is not selected */
+
+#ifndef CONFIG_MMCSD
+# undef HAVE_MMCSD
+#endif
+
/* Can't support MMC/SD features if mountpoints are disabled */
#ifdef CONFIG_DISABLE_MOUNTPOINT