diff options
Diffstat (limited to 'demos/ARMCM4-STM32F303-DISCOVERY/main.c')
-rw-r--r-- | demos/ARMCM4-STM32F303-DISCOVERY/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/ARMCM4-STM32F303-DISCOVERY/main.c b/demos/ARMCM4-STM32F303-DISCOVERY/main.c index e12a55fda..ed10165af 100644 --- a/demos/ARMCM4-STM32F303-DISCOVERY/main.c +++ b/demos/ARMCM4-STM32F303-DISCOVERY/main.c @@ -101,9 +101,9 @@ int main(void) { * Activates the serial driver 1 using the driver default configuration.
* PA9(TX) and PA10(RX) are routed to USART1.
*/
-// sdStart(&SD1, NULL);
-// palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7));
-// palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7));
+ sdStart(&SD1, NULL);
+ palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7));
+ palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7));
/*
* Creates the example thread.
@@ -117,8 +117,8 @@ int main(void) { * pressed the test procedure is launched.
*/
while (TRUE) {
-// if (palReadPad(GPIOA, GPIOA_BUTTON))
-// TestThread(&SD1);
+ if (palReadPad(GPIOA, GPIOA_BUTTON))
+ TestThread(&SD1);
chThdSleepMilliseconds(500);
}
}
|