From e1613c5169d7c792015d6a0bd2224626873af4e2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 11 Apr 2008 14:39:49 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@259 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM3-STM32F103-GCC/board.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'demos/ARMCM3-STM32F103-GCC/board.c') 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 @@ -22,20 +22,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 } -- cgit v1.2.3