Skip to content

Commit e8709ad

Browse files
authored
Merge pull request #520 from kaidokert/fix_nrf51_clock
Fix nRF51 HFCLK freq
2 parents 4456885 + d68908f commit e8709ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nrf-hal-common/src/clocks.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ pub struct LfOscStarted;
2424
pub struct LfOscStopped;
2525

2626
/// High Frequency Clock Frequency (in Hz).
27+
#[cfg(not(feature = "51"))]
2728
pub const HFCLK_FREQ: u32 = 64_000_000;
29+
#[cfg(feature = "51")]
30+
pub const HFCLK_FREQ: u32 = 16_000_000;
31+
2832
/// Low Frequency Clock Frequency (in Hz).
2933
pub const LFCLK_FREQ: u32 = 32_768;
3034

0 commit comments

Comments
 (0)