aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish.c
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/wirish.c')
-rw-r--r--wirish/wirish.c6
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();