Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit a461d72

Browse files
committedJul 17, 2014
Merge pull request #107 from blaxill/patch-1
Fix for flash clock config at frequency 20<x<=40 Reviewed-by: bharrisau
2 parents d1d28a3 + 5020ff8 commit a461d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hal/lpc17xx/system_clock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn init_flash_access(freq: u32) {
110110
if freq > 80_000_000 { 5 } else
111111
if freq > 60_000_000 { 4 } else
112112
if freq > 40_000_000 { 3 } else
113-
if freq > 40_000_000 { 2 } else
113+
if freq > 20_000_000 { 2 } else
114114
{ 1 };
115115
let val = (num_clocks - 1) << 12;
116116
reg::FLASHCFG.set_value(val);

0 commit comments

Comments
 (0)
This repository has been archived.