Skip to content

Commit 30c5f42

Browse files
committed
Nicla Vision PDM: select DFSDM1 clock before running clock configuration
1 parent abb836e commit 30c5f42

File tree

1 file changed

+1
-0
lines changed
  • libraries/PDM/src/nicla_vision

1 file changed

+1
-0
lines changed

libraries/PDM/src/nicla_vision/audio.c

+1
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ int py_audio_init(size_t channels, uint32_t frequency)
366366

367367
HAL_RCCEx_GetPeriphCLKConfig(&rcc_ex_clk_init_struct);
368368

369+
rcc_ex_clk_init_struct.PeriphClockSelection = RCC_PERIPHCLK_DFSDM1;
369370
rcc_ex_clk_init_struct.Dfsdm1ClockSelection = RCC_DFSDM1CLKSOURCE_D2PCLK1;
370371

371372
HAL_RCCEx_PeriphCLKConfig(&rcc_ex_clk_init_struct);

0 commit comments

Comments
 (0)