Skip to content

Commit

Permalink
document clock settings in examples/stm32f4/.../i2s_dma.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsynth committed Feb 4, 2025
1 parent b5a6353 commit b0e3a64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/stm32f4/src/bin/i2s_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ async fn main(_spawner: Spawner) {
config.rcc.apb1_pre = APBPrescaler::DIV2;
config.rcc.apb2_pre = APBPrescaler::DIV1;

// reference your chip's manual for proper clock settings; this config
// is recommended for a 32 bit frame at 48 kHz sample rate
config.rcc.plli2s = Some(Pll {
prediv: PllPreDiv::DIV25,
mul: PllMul::MUL384,
Expand Down

0 comments on commit b0e3a64

Please sign in to comment.