Skip to content

Commit f132517

Browse files
committed
fix build error with 52832 (no PDM Ratio register)
1 parent c6f7e41 commit f132517

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/PDM/src/PDM.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ int PDMClass::begin(int channels, long sampleRate)
6464
// configure the sample rate and channels
6565
switch (sampleRate) {
6666
case 16000:
67+
#ifndef NRF52832_XXAA
6768
NRF_PDM->RATIO = ((PDM_RATIO_RATIO_Ratio80 << PDM_RATIO_RATIO_Pos) & PDM_RATIO_RATIO_Msk);
69+
#endif
6870
nrf_pdm_clock_set(NRF_PDM_FREQ_1280K);
6971
break;
7072
case 41667:

0 commit comments

Comments
 (0)