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.
Dependents: DISCO_F413ZH-LCD-demo DISCO_F413ZH-touch-screen-demo DISCO_F413ZH-SD-demo DISCO_F413ZH-PSRAM-demo ... more
Revision 2:0f07a9ac06f7, committed 2017-05-23
- Comitter:
- arostm
- Date:
- Tue May 23 11:03:57 2017 +0200
- Parent:
- 1:a3f6b8b5a6bf
- Child:
- 3:42b354f5069c
- Commit message:
- Add modifications in audio library
Changed in this revision
| Drivers/BSP/STM32F413H-Discovery/stm32f413h_discovery_audio.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/Drivers/BSP/STM32F413H-Discovery/stm32f413h_discovery_audio.c Wed May 17 14:00:44 2017 +0200
+++ b/Drivers/BSP/STM32F413H-Discovery/stm32f413h_discovery_audio.c Tue May 23 11:03:57 2017 +0200
@@ -170,7 +170,7 @@
/* Buffers for right and left samples */
int32_t *pScratchBuff[DEFAULT_AUDIO_IN_CHANNEL_NBR];
-int32_t ScratchSize;
+uint32_t ScratchSize;
uint32_t DmaRecHalfBuffCplt[DFSDM_MIC_NUMBER] = {0};
uint32_t DmaRecBuffCplt[DFSDM_MIC_NUMBER] = {0};
@@ -2076,6 +2076,37 @@
}
/**
+ * @brief This function handles DFSDM MIC1 DMA interrupt request.
+ * @param None
+ * @retval None
+ */
+void AUDIO_DFSDM_DMAx_MIC1_IRQHandler(void)
+{
+ HAL_DMA_IRQHandler(hAudioInDfsdmFilter[POS_VAL(INPUT_DEVICE_DIGITAL_MIC1)].hdmaReg);
+
+}
+
+/**
+ * @brief This function handles DFSDM MIC2 DMA interrupt request.
+ * @param None
+ * @retval None
+ */
+void AUDIO_DFSDM_DMAx_MIC2_IRQHandler(void)
+{
+ HAL_DMA_IRQHandler(hAudioInDfsdmFilter[POS_VAL(INPUT_DEVICE_DIGITAL_MIC2)].hdmaReg);
+}
+
+/**
+ * @brief This function handles I2S DMA interrupt request.
+ * @param None
+ * @retval None
+ */
+void AUDIO_OUT_I2Sx_DMAx_IRQHandler(void)
+{
+ HAL_DMA_IRQHandler(haudio_i2s.hdmatx);
+}
+
+/**
* @}
*/