Skip to content

Commit

Permalink
corrected comment setting clock frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
itzandroidtab committed Oct 9, 2023
1 parent 33e2201 commit f9c987e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flash/flash_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,10 @@ int __attribute__ ((noinline)) Init(const uint32_t address, const uint32_t frequ
// setup the flash wait state to 4 + 1 CPU clocks
target::io::system::flash::setup<4>();

// setup the clock to 96Mhz (this is using a 12Mhz oscillator)
// (((15 + 1) * 2 * 12Mhz) / (0 + 1) = 384Mhz) / (3 + 1) = 96Mhz
// setup the clock to 96Mhz (this is using the internal 4Mhz oscillator)
// (((47 + 1) * 2 * 4Mhz) / (0 + 1) = 384Mhz) / (3 + 1) = 96Mhz
clock::set_main<clock::source::internal, 96'000'000, 47, 0, 3>();

// klib::clock::set(4'000'000);

// init the cs pin
cs::init();

Expand Down

0 comments on commit f9c987e

Please sign in to comment.