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 14:377677cca2e9, committed 2017-05-02
- Comitter:
- Davidroid
- Date:
- Tue May 02 12:53:15 2017 +0000
- Parent:
- 13:90465220b75f
- Child:
- 15:17bdadc6aa9c
- Commit message:
- Supporting mono configurations with the use of the jumper.
Changed in this revision
| BSP/XNucleoCCA02M1.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BSP/XNucleoCCA02M1.cpp Fri Apr 28 15:42:58 2017 +0000
+++ b/BSP/XNucleoCCA02M1.cpp Tue May 02 12:53:15 2017 +0000
@@ -113,9 +113,16 @@
/* Allocating support buffers. */
_PDM_buffer_one_ms = (uint16_t *) calloc(_PDM_samples_one_ms, sizeof(uint16_t));
- /* Starting the I2S frequency divider. */
- FrequencyDivider *divider = new FrequencyDivider();
- divider->start();
+ /*
+ * Starting the I2S frequency divider.
+ * Note: put a jumper to connect PB_5 and PB_13 on the MORPHO connector when
+ * running a mono configuration.
+ */
+ if (_channels >= 2)
+ {
+ FrequencyDivider *divider = new FrequencyDivider();
+ divider->start();
+ }
/* Initializing the PDM to PCM conversion library. */
if ((_pdm2pcm = new PDM2PCMAudio(_frequency, _channels)) == NULL)
