diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARMCM3-STM32F103-FATFS-GCC/mcuconf.h | 1 | ||||
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/mcuconf.h | 1 | ||||
-rw-r--r-- | demos/ARMCM3-STM32F107-GCC/main.c | 8 | ||||
-rw-r--r-- | demos/ARMCM3-STM32F107-GCC/mcuconf.h | 1 |
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.
|