diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-05-14 06:43:02 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-05-14 06:43:02 +0000 |
commit | 55b7744199ce9771ac761fc708d173bc487145e8 (patch) | |
tree | 3b7a61cd3019849544e2bbe25ace9ff658a75e75 /demos/ARMCM3-STM32F107-GCC | |
parent | fee72530476c5b9eed43fde792df9de367d56800 (diff) | |
download | ChibiOS-55b7744199ce9771ac761fc708d173bc487145e8.tar.gz ChibiOS-55b7744199ce9771ac761fc708d173bc487145e8.tar.bz2 ChibiOS-55b7744199ce9771ac761fc708d173bc487145e8.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1916 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F107-GCC')
-rw-r--r-- | demos/ARMCM3-STM32F107-GCC/main.c | 8 | ||||
-rw-r--r-- | demos/ARMCM3-STM32F107-GCC/mcuconf.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/demos/ARMCM3-STM32F107-GCC/main.c b/demos/ARMCM3-STM32F107-GCC/main.c index b831d2c37..bddf485c0 100644 --- a/demos/ARMCM3-STM32F107-GCC/main.c +++ b/demos/ARMCM3-STM32F107-GCC/main.c @@ -29,9 +29,9 @@ static msg_t Thread1(void *arg) { (void)arg;
while (TRUE) {
-// palClearPad(IOPORT3, GPIOC_LED);
+ palClearPad(IOPORT4, 7);
chThdSleepMilliseconds(500);
-// palSetPad(IOPORT3, GPIOC_LED);
+ palSetPad(IOPORT4, 7);
chThdSleepMilliseconds(500);
}
return 0;
@@ -61,8 +61,8 @@ int main(int argc, char **argv) { * sleeping in a loop and check the button state.
*/
while (TRUE) {
-// if (palReadPad(IOPORT1, GPIOA_BUTTON))
-// TestThread(&SD2);
+ if (palReadPad(IOPORT2, 9) == 0)
+ TestThread(&SD2);
chThdSleepMilliseconds(500);
}
return 0;
diff --git a/demos/ARMCM3-STM32F107-GCC/mcuconf.h b/demos/ARMCM3-STM32F107-GCC/mcuconf.h index 2591523ed..e4d7f155c 100644 --- a/demos/ARMCM3-STM32F107-GCC/mcuconf.h +++ b/demos/ARMCM3-STM32F107-GCC/mcuconf.h @@ -45,6 +45,7 @@ #define STM32_PPRE1 STM32_PPRE1_DIV2
#define STM32_PPRE2 STM32_PPRE2_DIV2
#define STM32_ADCPRE STM32_ADCPRE_DIV4
+#define STM32_MCO STM32_MCO_NOCLOCK
/*
* ADC driver system settings.
|