aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-11-28 23:21:58 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2012-04-11 16:56:52 -0400
commitfc966dffb9840f73b74112e5ee121fc1443544d4 (patch)
tree559fe58830a871070e88c6930e412b61ee9a41a2 /wirish
parentea175caf4bbcc3b32c161dd52cb773fa8fdba707 (diff)
downloadlibrambutan-fc966dffb9840f73b74112e5ee121fc1443544d4.tar.gz
librambutan-fc966dffb9840f73b74112e5ee121fc1443544d4.zip
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 <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish')
-rw-r--r--wirish/boards.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
/*