From 2bb8c3fbe39ad12bc4669d499228961ad25e0ace Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Wed, 4 Aug 2010 04:17:16 -0400 Subject: Basic flash peripheral management api for board bringup --- wirish/wirish.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wirish') diff --git a/wirish/wirish.c b/wirish/wirish.c index e21f792..e166455 100644 --- a/wirish/wirish.c +++ b/wirish/wirish.c @@ -32,9 +32,15 @@ #include "gpio.h" #include "nvic.h" #include "usb.h" +#include "flash.h" void init(void) { + /* make sure the flash is ready before spinning the high speed clock up */ + flash_enable_prefetch(); + flash_set_latency(FLASH_WAIT_STATE_2); + rcc_init(); + nvic_init(); systick_init(); gpio_init(); -- cgit v1.2.3