summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-14 20:41:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-14 20:41:09 +0000
commita8f73b317c3c47a43b5521ae2ac81fd7056fa9cf (patch)
tree7ef54b993ef1f353e6262286e0df45fcc35c422a /nuttx/configs/stm3210e-eval
parenteccf86fa894d508d1cdf94602be6e671f32895d3 (diff)
downloadpx4-nuttx-a8f73b317c3c47a43b5521ae2ac81fd7056fa9cf.tar.gz
px4-nuttx-a8f73b317c3c47a43b5521ae2ac81fd7056fa9cf.tar.bz2
px4-nuttx-a8f73b317c3c47a43b5521ae2ac81fd7056fa9cf.zip
Fix NSH-related compile errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2133 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3210e-eval')
-rwxr-xr-xnuttx/configs/stm3210e-eval/src/up_nsh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_nsh.c b/nuttx/configs/stm3210e-eval/src/up_nsh.c
index 6c5332fe1..177d93993 100755
--- a/nuttx/configs/stm3210e-eval/src/up_nsh.c
+++ b/nuttx/configs/stm3210e-eval/src/up_nsh.c
@@ -102,6 +102,7 @@
int nsh_archinitialize(void)
{
+#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2)
FAR struct spi_dev_s *spi;
int ret;
@@ -136,5 +137,6 @@ int nsh_archinitialize(void)
message("nsh_archinitialize: Successfuly bound SPI port %d to MMC/SD slot %d\n",
CONFIG_EXAMPLES_NSH_MMCSDSPIPORTNO, CONFIG_EXAMPLES_NSH_MMCSDSLOTNO);
+#endif
return OK;
}