altos: Allow programs to enable SDCARD debugging if desired
authorKeith Packard <keithp@keithp.com>
Tue, 4 Apr 2017 23:03:36 +0000 (16:03 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 4 Apr 2017 23:03:36 +0000 (16:03 -0700)
Provides for per-application control over SDCARD debugging

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_sdcard.c

index 4b17c5e3ebac427c2d3856a3485f8306ee23afe0..45454000f663c6c662af747fa71cfab83d465835 100644 (file)
@@ -38,13 +38,19 @@ extern uint8_t ao_radio_mutex;
 #define ao_sdcard_deselect()           ao_gpio_set(AO_SDCARD_SPI_CS_PORT,AO_SDCARD_SPI_CS_PIN,AO_SDCARD_SPI_CS,1)
 
 /* Include SD card commands */
+#ifndef SDCARD_DEBUG
 #define SDCARD_DEBUG   0
+#endif
 
 /* Spew SD tracing */
+#ifndef SDCARD_TRACE
 #define SDCARD_TRACE   0
+#endif
 
 /* Emit error and warning messages */
+#ifndef SDCARD_WARN
 #define SDCARD_WARN    0
+#endif
 
 static uint8_t initialized;
 static uint8_t present;