aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-14 06:43:02 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-14 06:43:02 +0000
commit55b7744199ce9771ac761fc708d173bc487145e8 (patch)
tree3b7a61cd3019849544e2bbe25ace9ff658a75e75 /demos
parentfee72530476c5b9eed43fde792df9de367d56800 (diff)
downloadChibiOS-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')
-rw-r--r--demos/ARMCM3-STM32F103-FATFS-GCC/mcuconf.h1
-rw-r--r--demos/ARMCM3-STM32F103-GCC/mcuconf.h1
-rw-r--r--demos/ARMCM3-STM32F107-GCC/main.c8
-rw-r--r--demos/ARMCM3-STM32F107-GCC/mcuconf.h1
4 files changed, 7 insertions, 4 deletions
diff --git a/demos/ARMCM3-STM32F103-FATFS-GCC/mcuconf.h b/demos/ARMCM3-STM32F103-FATFS-GCC/mcuconf.h
index 511460ac4..731ec9f85 100644
--- a/demos/ARMCM3-STM32F103-FATFS-GCC/mcuconf.h
+++ b/demos/ARMCM3-STM32F103-FATFS-GCC/mcuconf.h
@@ -42,6 +42,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.
diff --git a/demos/ARMCM3-STM32F103-GCC/mcuconf.h b/demos/ARMCM3-STM32F103-GCC/mcuconf.h
index 511460ac4..731ec9f85 100644
--- a/demos/ARMCM3-STM32F103-GCC/mcuconf.h
+++ b/demos/ARMCM3-STM32F103-GCC/mcuconf.h
@@ -42,6 +42,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.
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.