summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mmcsd/mmcsd_spi.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-07 02:07:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-07 02:07:42 +0000
commit013721830aa3d28dcdc1002ecc680954670d35cf (patch)
tree2ae77b038918b9eddd464bebec25d343260f562a /nuttx/drivers/mmcsd/mmcsd_spi.c
parentb870b2f81d09934d045f7d4963fa489a9115ec0d (diff)
downloadpx4-nuttx-013721830aa3d28dcdc1002ecc680954670d35cf.tar.gz
px4-nuttx-013721830aa3d28dcdc1002ecc680954670d35cf.tar.bz2
px4-nuttx-013721830aa3d28dcdc1002ecc680954670d35cf.zip
Fixes for z16f compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1472 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mmcsd/mmcsd_spi.c')
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_spi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_spi.c b/nuttx/drivers/mmcsd/mmcsd_spi.c
index 98fc375df..7501928d0 100644
--- a/nuttx/drivers/mmcsd/mmcsd_spi.c
+++ b/nuttx/drivers/mmcsd/mmcsd_spi.c
@@ -62,7 +62,9 @@
/* Configuration ************************************************************/
#ifndef CONFIG_MMCSD_NSLOTS
-# warning "CONFIG_MMCSD_NSLOTS not defined"
+# ifdef CONFIG_CPP_HAVE_WARNING
+# warning "CONFIG_MMCSD_NSLOTS not defined"
+# endif
# define CONFIG_MMCSD_NSLOTS 1
#endif
@@ -1098,7 +1100,7 @@ static int mmcsd_mediainitialize(FAR struct mmcsd_slot_s *slot)
{
FAR struct spi_dev_s *spi = slot->spi;
ubyte csd[16];
- uint32 result;
+ uint32 result = MMCSD_SPIR1_IDLESTATE;
int i, j;
/* Assume that the card is not ready (we'll clear this on successful car