From 869ed39e4c28ebb9813a8b28192d4ca92f72bf22 Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Tue, 30 Mar 2010 22:50:18 -0400 Subject: Removed STM32 flash code, replaced with barebones hacks for now. At this point, there shouldn't be any STM code being compiled and linked against. There are still a bunch of STM header includes, though. --- libmaple/rcc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmaple/rcc.c') diff --git a/libmaple/rcc.c b/libmaple/rcc.c index bf76eb0..98b115a 100644 --- a/libmaple/rcc.c +++ b/libmaple/rcc.c @@ -6,8 +6,8 @@ */ #include "libmaple.h" +#include "flash.h" #include "rcc.h" -#include "stm32f10x_flash.h" static void set_ahb_prescaler(uint32_t divider) { uint32_t cfgr = __read(RCC_CFGR); @@ -95,10 +95,10 @@ void rcc_init(void) { /* Leave this here for now... */ /* Enable Prefetch Buffer */ - FLASH_PrefetchBufferCmd( (u32)FLASH_PrefetchBuffer_Enable); + flash_enable_prefetch(); /* Flash 2 wait state */ - FLASH_SetLatency(FLASH_Latency_2); + flash_set_latency(); set_ahb_prescaler(SYSCLK_DIV_1); set_apb1_prescaler(HCLK_DIV_2); -- cgit v1.2.3