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.
Diff: Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c
- Revision:
- 9:df2ea349c37a
- Parent:
- 8:56384bddaba5
diff -r 56384bddaba5 -r df2ea349c37a Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c --- a/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c Thu Feb 23 14:14:09 2017 +0100 +++ b/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_audio.c Thu Jul 06 16:58:50 2017 +0200 @@ -95,6 +95,8 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32746g_discovery_audio.h" +void wait_ms(int ms); // MBED to replace HAL_Delay function + /** @addtogroup BSP * @{ */ @@ -324,7 +326,7 @@ if(Option == CODEC_PDWN_HW) { /* Wait at least 100us */ - HAL_Delay(1); + wait_ms(1); } /* Return AUDIO_OK when all operations are correctly done */ return AUDIO_OK; @@ -1010,7 +1012,7 @@ if(Option == CODEC_PDWN_HW) { /* Wait at least 100us */ - HAL_Delay(1); + wait_ms(1); } /* Return AUDIO_OK when all operations are correctly done */ return AUDIO_OK;