diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-04 16:03:36 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-04 16:03:36 -0700 |
commit | 71e430bb39fc97e543778f7bc1f1bef554ba8b75 (patch) | |
tree | 235c7f04616f3d30fe6ea4c29987b08a9ae80b21 | |
parent | 4eced9224f40e48d7057352b3424c18025f43f25 (diff) |
altos: Allow programs to enable SDCARD debugging if desired
Provides for per-application control over SDCARD debugging
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/drivers/ao_sdcard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/ao_sdcard.c b/src/drivers/ao_sdcard.c index 4b17c5e3..45454000 100644 --- a/src/drivers/ao_sdcard.c +++ b/src/drivers/ao_sdcard.c @@ -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; |