Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_FREQUENCY_DIVIDER ST_I2S USBDEVICE
Fork of X_NUCLEO_CCA02M1 by
Revision 19:1a061e306cc9, committed 2017-05-04
- Comitter:
- Davidroid
- Date:
- Thu May 04 10:39:39 2017 +0000
- Parent:
- 18:bc6113bdde85
- Child:
- 20:9952bef19da1
- Commit message:
- Enabled 44.1 and 48 KHz configurations.
Changed in this revision
| BSP/XNucleoCCA02M1.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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. */
