common: Combine writes to SIM_CLKDIV1 in clock::configure_clkdiv().
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 16 Nov 2019 20:54:50 +0000 (21:54 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
commitd6f292a7c11479db134403df91fb152f0ffd1b9b
tree767dfc001f9d35aab391eb516c494ab5c661f062
parent7cd80ad07a3476f239f25a6f7534d17aaab6cc05
common: Combine writes to SIM_CLKDIV1 in clock::configure_clkdiv().

By setting both CLKDIV1 and CLKDIV4 at the same time we avoid
running the flash at twice the intended clock rate for a couple
of cycles which has been observed to make it read bad data.
src/common/clock.rs