Il y avait des problèmes dans la libraire...
Dependencies: ST_FREQUENCY_DIVIDER ST_I2S USBDEVICE
Fork of X_NUCLEO_CCA02M1 by
Diff: BSP/XNucleoCCA02M1.cpp
- Revision:
- 19:1a061e306cc9
- Parent:
- 15:17bdadc6aa9c
- Child:
- 20:9952bef19da1
--- a/BSP/XNucleoCCA02M1.cpp Wed May 03 16:33:54 2017 +0000 +++ b/BSP/XNucleoCCA02M1.cpp Thu May 04 10:39:39 2017 +0000 @@ -83,8 +83,12 @@ if (!(((_frequency == 16000) && (_channels == 1)) || ((_frequency == 16000) && (_channels == 2)) || ((_frequency == 32000) && (_channels == 1)) || - ((_frequency == 32000) && (_channels == 2)))) - error("\r\nConfiguration error: Currently only mono@16KHz, stero@16KHz, mono@32KHz and stereo@32KHz are supported.\n\r"); + ((_frequency == 32000) && (_channels == 2)) || + ((_frequency == 44100) && (_channels == 1)) || + ((_frequency == 44100) && (_channels == 2)) || + ((_frequency == 48000) && (_channels == 1)) || + ((_frequency == 48000) && (_channels == 2)))) + error("\r\nError: please set one of the following configurations: mono/stereo 16/32/44.1/48 KHz.\n\r"); #endif /* Setting configuration. */