aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F103-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/main.c')
-rw-r--r--demos/ARMCM3-STM32F103-GCC/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/main.c b/demos/ARMCM3-STM32F103-GCC/main.c
index d1f78f7e8..ca2fa842b 100644
--- a/demos/ARMCM3-STM32F103-GCC/main.c
+++ b/demos/ARMCM3-STM32F103-GCC/main.c
@@ -31,9 +31,9 @@ static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
while (TRUE) {
- palClearPad(IOPORT_C, GPIOC_LED);
+ palClearPad(IOPORT3, GPIOC_LED);
chThdSleepMilliseconds(500);
- palSetPad(IOPORT_C, GPIOC_LED);
+ palSetPad(IOPORT3, GPIOC_LED);
chThdSleepMilliseconds(500);
}
return 0;
@@ -46,9 +46,9 @@ static msg_t Thread1(void *arg) {
int main(int argc, char **argv) {
/*
- * Activates the communication port 2 using the driver default configuration.
+ * Activates the serial driver 2 using the driver default configuration.
*/
- sdStart(&COM2, NULL);
+ sdStart(&SD2, NULL);
/*
* Creates the blinker thread.
@@ -60,8 +60,8 @@ int main(int argc, char **argv) {
* sleeping in a loop and check the button state.
*/
while (TRUE) {
- if (palReadPad(IOPORT_A, GPIOA_BUTTON))
- TestThread(&COM2);
+ if (palReadPad(IOPORT1, GPIOA_BUTTON))
+ TestThread(&SD2);
chThdSleepMilliseconds(500);
}
return 0;