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: LCD_fonts SPI_TFT_ILI9341 CMSIS_DSP_401_without_cm4 mbed-src SDFileSystem wavfile
Diff: stm32l476g_discovery_audio.cpp
- Revision:
- 10:0986108f8aa3
- Parent:
- 9:5a860b9c8a6a
--- a/stm32l476g_discovery_audio.cpp Sun Dec 13 16:46:14 2015 +0000 +++ b/stm32l476g_discovery_audio.cpp Sun Dec 13 17:58:10 2015 +0000 @@ -426,6 +426,7 @@ */ uint8_t BSP_AUDIO_IN_Record(uint16_t* pbuf, uint32_t size) { + hAudioIn.pRecBuf = pbuf; hAudioIn.RecSize = size; @@ -832,7 +833,7 @@ hAudioIn.hDfsdmLeftChannel.Init.Offset = 0; hAudioIn.hDfsdmLeftChannel.Init.RightBitShift = DFSDMRightBitShift(AudioFreq); - hAudioIn.hDfsdmLeftChannel.Instance = DFSDM_Channel2; + hAudioIn.hDfsdmLeftChannel.Instance = DFSDM_Channel4; /* Init the DFSDM Channel */ if (HAL_DFSDM_ChannelInit(&hAudioIn.hDfsdmLeftChannel) != HAL_OK) @@ -864,7 +865,7 @@ /* Configure regular channel */ if (HAL_DFSDM_FilterConfigRegChannel(&BSP_AUDIO_hDfsdmLeftFilter, - DFSDM_CHANNEL_2, + DFSDM_CHANNEL_4, DFSDM_CONTINUOUS_CONV_ON) != HAL_OK) { return AUDIO_ERROR;