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_I2S X_NUCLEO_COMMON
Fork of X_NUCLEO_CCA01M1 by
Revision 6:f6a85f7428f2, committed 2017-04-28
- Comitter:
- davide.aliprandi@st.com
- Date:
- Fri Apr 28 13:21:58 2017 +0200
- Parent:
- 4:77a26607bef6
- Child:
- 7:b98581eae911
- Commit message:
- Aligned to ARM mbed coding style.
Changed in this revision
--- a/Components/sta350bw/STA350BW.cpp Fri Apr 21 10:08:00 2017 +0200
+++ b/Components/sta350bw/STA350BW.cpp Fri Apr 28 13:21:58 2017 +0200
@@ -73,7 +73,7 @@
STA350BW_IO_Init();
/* Set Master clock depending on sampling frequency */
- if (STA350BW_SetFrequency((*((STA350BW_Init_t *) init)).frequency) != 0)
+ if (STA350BW_SetFrequency((*((STA350BW_init_t *) init)).frequency) != 0)
{
return COMPONENT_ERROR;
}
@@ -102,7 +102,7 @@
#endif
/* Setup Master volume */
- uint8_t value = (*((STA350BW_Init_t *) init)).volume;
+ uint8_t value = (*((STA350BW_init_t *) init)).volume;
if (!(value >= MIN_VOLUME && value <= MAX_VOLUME))
return COMPONENT_ERROR;
if (STA350BW_SetVolume(STA350BW_CHANNEL_MASTER, (uint8_t) MAX_VOLUME - value) != 0)
--- a/Components/sta350bw/STA350BW_def.h Fri Apr 21 10:08:00 2017 +0200
+++ b/Components/sta350bw/STA350BW_def.h Fri Apr 28 13:21:58 2017 +0200
@@ -986,7 +986,7 @@
{
uint32_t frequency; /* Allowed frequency: 32000, 44100, 48000, 88200, 96000. */
uint16_t volume; /* Allowed volume: [0..128]. */
-} STA350BW_Init_t;
+} STA350BW_init_t;
/* Audio processor extern functions. */
extern uint8_t STA350BW_IO_Init(void);
