fix build error with 52832 (no PDM Ratio register)
This commit is contained in:
1 parent
c6f7e411ac
commit
f132517c0f
1 file changed
+2
@@ -64,7 +64,9 @@ int PDMClass::begin(int channels, long sampleRate)
|
||||
// configure the sample rate and channels
|
||||
switch (sampleRate) {
|
||||
case 16000:
|
||||
#ifndef NRF52832_XXAA
|
||||
NRF_PDM->RATIO = ((PDM_RATIO_RATIO_Ratio80 << PDM_RATIO_RATIO_Pos) & PDM_RATIO_RATIO_Msk);
|
||||
#endif
|
||||
nrf_pdm_clock_set(NRF_PDM_FREQ_1280K);
|
||||
break;
|
||||
case 41667:
|
||||
|
||||
Reference in new issue
Block a user