diff options
author | Perry Hung <iperry@alum.mit.edu> | 2010-03-30 22:50:18 -0400 |
---|---|---|
committer | Perry Hung <iperry@alum.mit.edu> | 2010-03-30 22:51:28 -0400 |
commit | 869ed39e4c28ebb9813a8b28192d4ca92f72bf22 (patch) | |
tree | 6293c34e1dc96ae3f7c0bfdd926a714c03062ae2 /libmaple/rcc.c | |
parent | 2c33d55bae8f9e0e009634072ab05302fc734a65 (diff) | |
download | librambutan-869ed39e4c28ebb9813a8b28192d4ca92f72bf22.tar.gz librambutan-869ed39e4c28ebb9813a8b28192d4ca92f72bf22.zip |
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.
Diffstat (limited to 'libmaple/rcc.c')
-rw-r--r-- | libmaple/rcc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |