Simple test application for the STMicroelectronics X-NUCLEO-CCA01M1 Sound Terminal Expansion Board, built against mbed classic.

Dependencies:   X_NUCLEO_CCA01M1 ST_Events-old mbed

Fork of HelloWorld_CCA01M1_mbedOS by ST

Playing audio with the X-NUCLEO-CCA01M1 Expansion Board

This application provides a simple example of usage of the X-NUCLEO-CCA01M1 Sound Terminal Expansion Board, built against mbed classic.

It shows how to play a 2-channel stereo signal stored in an array of PCM samples directly on the speakers connected to the expansion board.

It also allows to stop/play the audio by pressing the user button on the Nucleo board.


Platform compatibility

  • This board can be currently used with a Nucleo-F401RE board only and has been tested with the default configuration provided by this example.
  • Please note that the main application makes use of the "events" library, which is not included into the "mbed" library.
  • The application built against mbed OS 5.x can be found here.

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Fri Apr 28 11:40:38 2017 +0000
Parent:
6:587f562ab2be
Child:
8:ff75f4f451d2
Commit message:
Aligned to ARM mbed coding style.

Changed in this revision

X_NUCLEO_CCA01M1.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/X_NUCLEO_CCA01M1.lib	Fri Apr 21 08:15:39 2017 +0000
+++ b/X_NUCLEO_CCA01M1.lib	Fri Apr 28 11:40:38 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST/code/X_NUCLEO_CCA01M1/#2d450bbee471
+https://developer.mbed.org/teams/ST/code/X_NUCLEO_CCA01M1/#b98581eae911
--- a/main.cpp	Fri Apr 21 08:15:39 2017 +0000
+++ b/main.cpp	Fri Apr 28 11:40:38 2017 +0000
@@ -65,7 +65,7 @@
 /* Variables -----------------------------------------------------------------*/
 
 /* Initialization parameters. */
-STA350BW_Init_t init =
+STA350BW_init_t init =
 {
     32000,   /* Default Sampling Frequency [Hz]. */
     100      /* Default Volume. */