Il y avait des problèmes dans la libraire...
Dependencies: ST_FREQUENCY_DIVIDER ST_I2S USBDEVICE
Fork of X_NUCLEO_CCA02M1 by
Diff: BSP/PDM2PCMAudio.h
- Revision:
- 16:4ab2eac7be21
- Parent:
- 6:9b8bc842aeb3
- Child:
- 17:a758b376b018
--- a/BSP/PDM2PCMAudio.h Tue May 02 18:06:58 2017 +0200 +++ b/BSP/PDM2PCMAudio.h Wed May 03 18:10:29 2017 +0200 @@ -90,23 +90,15 @@ /* Initializing PDM2PCMAudio Filter. */ for (uint32_t i = 0; i < _channels; i++) { -#ifdef USE_OPEN_PDM2PCM_LIBRARY /* Filter LP and HP Init */ _PDM2PCM_filter[i].LP_HZ = _frequency / 2; _PDM2PCM_filter[i].HP_HZ = 10; _PDM2PCM_filter[i].Fs = _frequency; _PDM2PCM_filter[i].Out_MicChannels = _channels; _PDM2PCM_filter[i].In_MicChannels = _channels; - _PDM2PCM_filter[i].Decimation = 64; - _PDM2PCM_filter[i].SincN = 3; +#ifdef USE_OPEN_PDM2PCM_LIBRARY Open_PDM_Filter_Init((TPDMFilter_InitStruct *) &_PDM2PCM_filter[i]); #else - /* Filter LP and HP Init */ - _PDM2PCM_filter[i].LP_HZ = _frequency / 2; - _PDM2PCM_filter[i].HP_HZ = 10; - _PDM2PCM_filter[i].Fs = _frequency; - _PDM2PCM_filter[i].Out_MicChannels = _channels; - _PDM2PCM_filter[i].In_MicChannels = _channels; PDM_Filter_Init((PDMFilter_InitStruct *) &_PDM2PCM_filter[i]); #endif }