From fc966dffb9840f73b74112e5ee121fc1443544d4 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Mon, 28 Nov 2011 23:21:58 -0500 Subject: wirish/boards.cpp: Use FLASH_SAFE_WAIT_STATES. Do this instead of hard-coding a number of wait states to use in setupFlash(), which is called by init(). This helps future-proof. Signed-off-by: Marti Bolivar --- wirish/boards.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wirish/boards.cpp b/wirish/boards.cpp index 1f97119..dd3f21d 100644 --- a/wirish/boards.cpp +++ b/wirish/boards.cpp @@ -75,7 +75,7 @@ bool boardUsesPin(uint8 pin) { static void setupFlash(void) { flash_enable_prefetch(); - flash_set_latency(FLASH_WAIT_STATE_2); + flash_set_latency(FLASH_SAFE_WAIT_STATES); } /* -- cgit v1.2.3