diff options
author | Perry Hung <iperry@alum.mit.edu> | 2010-08-04 04:17:16 -0400 |
---|---|---|
committer | Perry Hung <iperry@alum.mit.edu> | 2010-08-04 04:17:16 -0400 |
commit | 2bb8c3fbe39ad12bc4669d499228961ad25e0ace (patch) | |
tree | 8037e64219d4a7b875c70baf2d5e0697c194cf5f /wirish | |
parent | d0e353ca9f3a0986c54beab3948117bdaade700e (diff) | |
download | librambutan-2bb8c3fbe39ad12bc4669d499228961ad25e0ace.tar.gz librambutan-2bb8c3fbe39ad12bc4669d499228961ad25e0ace.zip |
Basic flash peripheral management api for board bringup
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/wirish.c | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |