diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-27 16:42:07 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-27 16:42:07 +0000 |
commit | 8b55cb9767ce881b7a22c5af34605ed3a261582d (patch) | |
tree | 2b1e4239c2909496d83058a0a16da65525c9e70c /demos/ARMCM3-STM32F103-GCC/main.c | |
parent | b8e618f59a5bc34aa76e2aacd6484ad217c54e33 (diff) | |
download | ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.tar.gz ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.tar.bz2 ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1109 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/main.c | 12 |
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;
|