STM32Cube BSP FW for STM32F769I-Discovery
Dependents: mbed-os-example-blinky-5 DISCO-F769NI_TOUCHSCREEN_demo_custom_1 Datarecorder2 DISCO-F769NI_TOUCHSCREEN_demo ... more
Revision 3:145e714557cf, committed 2017-07-06
- Comitter:
- Jerome Coutant
- Date:
- Thu Jul 06 16:48:52 2017 +0200
- Parent:
- 2:39d2c2c79afa
- Child:
- 4:72a949940ad6
- Child:
- 6:05b81d60cdae
- Commit message:
- replace HAL_Delay by wait_ms
Changed in this revision
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery.c Thu Mar 23 10:42:33 2017 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery.c Thu Jul 06 16:48:52 2017 +0200 @@ -40,6 +40,7 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery.h" +#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -610,7 +611,7 @@ */ void AUDIO_IO_Delay(uint32_t Delay) { - HAL_Delay(Delay); + wait_ms(Delay); } /******************************** LINK I2C EEPROM *****************************/ @@ -734,7 +735,7 @@ */ void TS_IO_Delay(uint32_t Delay) { - HAL_Delay(Delay); + wait_ms(Delay); } /**************************** LINK OTM8009A (Display driver) ******************/ @@ -744,7 +745,7 @@ */ void OTM8009A_IO_Delay(uint32_t Delay) { - HAL_Delay(Delay); + wait_ms(Delay); } /**************************** LINK ADV7533 DSI-HDMI (Display driver) **********/ @@ -792,7 +793,7 @@ */ void HDMI_IO_Delay(uint32_t Delay) { - HAL_Delay(Delay); + wait_ms(Delay); } /** * @}
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_audio.c Thu Mar 23 10:42:33 2017 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_audio.c Thu Jul 06 16:48:52 2017 +0200 @@ -128,6 +128,7 @@ */ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery_audio.h" +#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -444,7 +445,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; @@ -1321,7 +1322,7 @@ else { /* Wait at least 100us */ - HAL_Delay(1); + wait_ms(1); /* Return AUDIO_OK when all operations are correctly done */ return AUDIO_OK;
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_lcd.c Thu Mar 23 10:42:33 2017 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_lcd.c Thu Jul 06 16:48:52 2017 +0200 @@ -1,4 +1,4 @@ -/** + /** ****************************************************************************** * @file stm32f769i_discovery_lcd.c * @author MCD Application Team @@ -74,6 +74,7 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery_lcd.h" +#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms #include "../../../Utilities/Fonts/fonts.h" //#include "../../../Utilities/Fonts/font24.c" // patch for MBED //#include "../../../Utilities/Fonts/font20.c" // patch for MBED @@ -681,13 +682,13 @@ /* Activate XRES active low */ HAL_GPIO_WritePin(GPIOJ, GPIO_PIN_15, GPIO_PIN_RESET); - HAL_Delay(20); /* wait 20 ms */ + wait_ms(20); /* wait 20 ms */ /* Desactivate XRES */ HAL_GPIO_WritePin(GPIOJ, GPIO_PIN_15, GPIO_PIN_SET); /* Wait for 10ms after releasing XRES before sending commands */ - HAL_Delay(10); + wait_ms(10); } /**
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_qspi.c Thu Mar 23 10:42:33 2017 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_qspi.c Thu Jul 06 16:48:52 2017 +0200 @@ -66,6 +66,7 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery_qspi.h" +#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -657,7 +658,7 @@ } /* After reset CMD, 1000ms requested if QSPI memory SWReset occured during full chip erase operation */ - HAL_Delay( 1000 ); + wait_ms( 1000 ); /* Configure automatic polling mode to wait the WIP bit=0 */ s_config.Match = 0; @@ -761,7 +762,7 @@ } /* 40ms Write Status/Configuration Register Cycle Time */ - HAL_Delay( 40 ); + wait_ms( 40 ); return QSPI_OK; } @@ -899,7 +900,7 @@ } /* 40ms Write Status/Configuration Register Cycle Time */ - HAL_Delay( 40 ); + wait_ms( 40 ); return QSPI_OK; }
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_sdram.c Thu Mar 23 10:42:33 2017 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_sdram.c Thu Jul 06 16:48:52 2017 +0200 @@ -76,6 +76,7 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery_sdram.h" +#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -225,7 +226,7 @@ /* Step 2: Insert 100 us minimum delay */ /* Inserted delay is equal to 1 ms due to systick time base unit (ms) */ - HAL_Delay(1); + wait_ms(1); /* Step 3: Configure a PALL (precharge all) command */ Command.CommandMode = FMC_SDRAM_CMD_PALL;