aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F103-GCC/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-04-11 14:39:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-04-11 14:39:49 +0000
commite1613c5169d7c792015d6a0bd2224626873af4e2 (patch)
treec5436f76dd1c0c944560c8c7e1618d3be9bcd41d /demos/ARMCM3-STM32F103-GCC/board.c
parent2f99ed97a977f64fd7a11cb6cce569c879be4420 (diff)
downloadChibiOS-e1613c5169d7c792015d6a0bd2224626873af4e2.tar.gz
ChibiOS-e1613c5169d7c792015d6a0bd2224626873af4e2.tar.bz2
ChibiOS-e1613c5169d7c792015d6a0bd2224626873af4e2.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@259 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/board.c')
-rw-r--r--demos/ARMCM3-STM32F103-GCC/board.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/board.c b/demos/ARMCM3-STM32F103-GCC/board.c
index 631a13e0c..1323030f0 100644
--- a/demos/ARMCM3-STM32F103-GCC/board.c
+++ b/demos/ARMCM3-STM32F103-GCC/board.c
@@ -23,20 +23,6 @@
#include "board.h"
/*
- * Wait states setting is a function of the system clock. Those are the
- * recommended values, there should not be need to change them.
- */
-#if SYSCLK <= 24000000
-#define FLASHBITS 0x00000010
-#else
-#if SYSCLK <= 48000000
-#define FLASHBITS 0x00000011
-#else
-#define FLASHBITS 0x00000012
-#endif
-#endif
-
-/*
* Hardware initialization goes here.
* NOTE: Interrupts are still disabled.
*/
@@ -89,7 +75,7 @@ void hwinit(void) {
GPIOD->CRL = VAL_GPIODCRL;
GPIOD->CRH = VAL_GPIODCRH;
GPIOD->ODR = VAL_GPIODODR;
-
+#if 0
/*
* NVIC/SCB initialization.
*/
@@ -98,8 +84,9 @@ void hwinit(void) {
/*
* SysTick initialization.
*/
- SCB_SHPR(2) = 0x10 << 24; // SysTick at priority 1:0 (highest - 1).
+ SCB_SHPR(2) = 0x80 << 24; // SysTick at priority 8:0.
ST_RVR = SYSCLK / (8000000 / CH_FREQUENCY) - 1;
ST_CVR = 0;
ST_CSR = ENABLE_ON_BITS | TICKINT_ENABLED_BITS | CLKSOURCE_EXT_BITS;
+#endif
}