diff options
Diffstat (limited to 'demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c b/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c index 6565aae8a..b11101548 100644 --- a/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c +++ b/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c @@ -184,6 +184,14 @@ int main(int argc, char **argv) { sdStart(&SD1, NULL);
/*
+ * If the user button is pressed after the reset then the test suite is
+ * executed immediately before activating the various device drivers in
+ * order to not alter the benchmark scores. + */
+ if (palReadPad(GPIOA, GPIOA_BUTTON))
+ TestThread(&SD1);
+
+ /*
* Initializes the SPI driver 1. */
spiStart(&SPID1, &spicfg);
|