Quentin Roche / X_NUCLEO_CCA02M1

Dependencies:   ST_FREQUENCY_DIVIDER ST_I2S USBDEVICE

Fork of X_NUCLEO_CCA02M1 by ST

Files at this revision

API Documentation at this revision

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. */