Skip to content

Commit

Permalink
Use 6.5 MHz as ROSC nominal frequency, as specified in the datasheet
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGrosser committed Aug 11, 2023
1 parent 041b5da commit 9ee7d98
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/drivers/rp-clock.adb
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,7 @@ package body RP.Clock is

function ROSC_Frequency
return Hertz
is (8_000_000);
-- ROSC is roughly 5.5 MHz at startup, which cannot be divided evenly to
-- produce a 1 MHz clk_tick, which feeds the Timer. Enable_ROSC uses
-- experimentally determined values to get ROSC closer to
-- 8 MHz, which divides evenly.
is (6_500_000);

procedure Set_SYS_Source
(Source : SYS_Clock_Id)
Expand Down

0 comments on commit 9ee7d98

Please sign in to comment.