Skip to content

Commit f12431a

Browse files
Fix I2S frequency mapping
1 parent 22015fc commit f12431a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

nrf-hal-common/src/i2s.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -477,19 +477,19 @@ pub enum Mode {
477477
/// Master clock generator frequency.
478478
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
479479
pub enum MckFreq {
480-
_32MDiv8,
481-
_32MDiv10,
482-
_32MDiv11,
483-
_32MDiv15,
484-
_32MDiv16,
485-
_32MDiv21,
486-
_32MDiv23,
487-
_32MDiv30,
488-
_32MDiv31,
489-
_32MDiv32,
490-
_32MDiv42,
491-
_32MDiv63,
492-
_32MDiv125,
480+
_32MDiv8 = 0x20000000,
481+
_32MDiv10 = 0x18000000,
482+
_32MDiv11 = 0x16000000,
483+
_32MDiv15 = 0x11000000,
484+
_32MDiv16 = 0x10000000,
485+
_32MDiv21 = 0x0C000000,
486+
_32MDiv23 = 0x0B000000,
487+
_32MDiv30 = 0x08800000,
488+
_32MDiv31 = 0x08400000,
489+
_32MDiv32 = 0x08000000,
490+
_32MDiv42 = 0x06000000,
491+
_32MDiv63 = 0x04100000,
492+
_32MDiv125 = 0x020C0000,
493493
}
494494
impl From<MckFreq> for u32 {
495495
fn from(variant: MckFreq) -> Self {

0 commit comments

Comments
 (0)