Skip to content

Commit

Permalink
updated cpu clock initialisation to new method in klib
Browse files Browse the repository at this point in the history
  • Loading branch information
itzandroidtab committed Nov 30, 2024
1 parent fb5bd2c commit f16f5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/flash_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int __attribute__ ((noinline)) Init(const uint32_t address, const uint32_t frequ

// 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>();
clock::set_main<clock::source::internal, 4'000'000, 48, 1, 4>();

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

0 comments on commit f16f5b4

Please sign in to comment.