aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F103/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-16 09:18:36 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-16 09:18:36 +0000
commitfaed89a33d39b13b88fbd3d680173b03055f4b49 (patch)
tree8e3cd16e664971130edddc900fc0c2cbbe4e479b /demos/ARMCM3-STM32F103/main.c
parent786a0a6c71e98c1a3268ed2a13289459030c3032 (diff)
downloadChibiOS-faed89a33d39b13b88fbd3d680173b03055f4b49.tar.gz
ChibiOS-faed89a33d39b13b88fbd3d680173b03055f4b49.tar.bz2
ChibiOS-faed89a33d39b13b88fbd3d680173b03055f4b49.zip
C++ demo for STM32.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2880 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103/main.c')
-rw-r--r--demos/ARMCM3-STM32F103/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/ARMCM3-STM32F103/main.c b/demos/ARMCM3-STM32F103/main.c
index d694a1cd1..d16bea6ab 100644
--- a/demos/ARMCM3-STM32F103/main.c
+++ b/demos/ARMCM3-STM32F103/main.c
@@ -30,9 +30,9 @@ static msg_t Thread1(void *arg) {
(void)arg;
while (TRUE) {
- palClearPad(IOPORT3, GPIOC_LED);
+ palClearPad(GPIOC, GPIOC_LED);
chThdSleepMilliseconds(500);
- palSetPad(IOPORT3, GPIOC_LED);
+ palSetPad(GPIOC, GPIOC_LED);
chThdSleepMilliseconds(500);
}
}
@@ -67,7 +67,7 @@ int main(void) {
* sleeping in a loop and check the button state.
*/
while (TRUE) {
- if (palReadPad(IOPORT1, GPIOA_BUTTON))
+ if (palReadPad(GPIOA, GPIOA_BUTTON))
TestThread(&SD2);
chThdSleepMilliseconds(500);
}