aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F107-GCC/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-12 08:25:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-12 08:25:16 +0000
commit3e8aa7cd6ab42de755f5e873d3775c3d7065a58f (patch)
tree7bef5b6d625ad9d660a2bcbca7a1be3d7071c7ec /demos/ARMCM3-STM32F107-GCC/main.c
parentf81c30406f47c57b8fcbec62ac66b66042eaa23f (diff)
downloadChibiOS-3e8aa7cd6ab42de755f5e873d3775c3d7065a58f.tar.gz
ChibiOS-3e8aa7cd6ab42de755f5e873d3775c3d7065a58f.tar.bz2
ChibiOS-3e8aa7cd6ab42de755f5e873d3775c3d7065a58f.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2818 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F107-GCC/main.c')
-rw-r--r--demos/ARMCM3-STM32F107-GCC/main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/demos/ARMCM3-STM32F107-GCC/main.c b/demos/ARMCM3-STM32F107-GCC/main.c
index 73bc0b402..418966941 100644
--- a/demos/ARMCM3-STM32F107-GCC/main.c
+++ b/demos/ARMCM3-STM32F107-GCC/main.c
@@ -22,19 +22,18 @@
#include "test.h"
/*
- * Red LED blinker thread, times are in milliseconds.
+ * Green LED blinker thread, times are in milliseconds.
*/
static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
(void)arg;
while (TRUE) {
- palClearPad(IOPORT4, 7);
+ palClearPad(GPIOC, GPIOC_LED_STATUS1);
chThdSleepMilliseconds(500);
- palSetPad(IOPORT4, 7);
+ palSetPad(GPIOC, GPIOC_LED_STATUS1);
chThdSleepMilliseconds(500);
}
- return 0;
}
/*
@@ -55,7 +54,7 @@ int main(void) {
/*
* Activates the serial driver 2 using the driver default configuration.
*/
- sdStart(&SD2, NULL);
+ sdStart(&SD3, NULL);
/*
* Creates the blinker thread.
@@ -67,8 +66,8 @@ int main(void) {
* sleeping in a loop and check the button state.
*/
while (TRUE) {
- if (palReadPad(IOPORT2, 9) == 0)
- TestThread(&SD2);
+ if (palReadPad(GPIOC, GPIOC_SWITCH_TAMPER) == 0)
+ TestThread(&SD3);
chThdSleepMilliseconds(500);
}
return 0;