Skip to content

Commit

Permalink
Workaround for Nordic errata
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmunns committed Dec 18, 2021
1 parent a2bd096 commit 332aa32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions anachro-qspi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ impl Qspi {
});
}

periph.ifconfig0.modify(|_r, w| {
periph.ifconfig0.write(|w| {
w.readoc().read4io();
w.writeoc().pp4o();
w.addrmode()._24bit();
w.dpmenable().disable();
w.ppsize()._256bytes();
w
});
periph.ifconfig1.modify(|_r, w| {
periph.ifconfig1.write(|w| {
// One 16-mhz cycle delay. As far as I can tell, we don't
// even need this?
unsafe { w.sckdelay().bits(1) };
Expand All @@ -155,7 +155,7 @@ impl Qspi {
});

// Enable QSPI peripheral
periph.enable.modify(|_r, w| w.enable().enabled());
periph.enable.write(|w| w.enable().enabled());

// Clear the "is ready" flag
periph.events_ready.reset();
Expand Down

0 comments on commit 332aa32

Please sign in to comment.