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 7:0680eff4de60, committed 2019-11-15
- Comitter:
- Jerome Coutant
- Date:
- Fri Nov 15 14:31:53 2019 +0100
- Parent:
- 5:60b59d223214
- Child:
- 8:d13d7c447539
- Commit message:
- Removed depreacted wait_ms
Changed in this revision
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery.c Fri Nov 15 11:22:24 2019 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery.c Fri Nov 15 14:31:53 2019 +0100 @@ -45,7 +45,6 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery.h" -#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -616,7 +615,7 @@ */ void AUDIO_IO_Delay(uint32_t Delay) { - wait_ms(Delay); + HAL_Delay(Delay); } /******************************** LINK I2C EEPROM *****************************/ @@ -740,7 +739,7 @@ */ void TS_IO_Delay(uint32_t Delay) { - wait_ms(Delay); + HAL_Delay(Delay); } /**************************** LINK OTM8009A (Display driver) ******************/ @@ -750,7 +749,7 @@ */ void OTM8009A_IO_Delay(uint32_t Delay) { - wait_ms(Delay); + HAL_Delay(Delay); } /**************************** LINK ADV7533 DSI-HDMI (Display driver) **********/ @@ -798,7 +797,7 @@ */ void HDMI_IO_Delay(uint32_t Delay) { - wait_ms(Delay); + HAL_Delay(Delay); } /** * @}
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_audio.c Fri Nov 15 11:22:24 2019 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_audio.c Fri Nov 15 14:31:53 2019 +0100 @@ -138,7 +138,6 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery_audio.h" -#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -455,7 +454,7 @@ if(Option == CODEC_PDWN_HW) { /* Wait at least 100us */ - wait_ms(1); + HAL_Delay(1); } /* Return AUDIO_OK when all operations are correctly done */ return AUDIO_OK; @@ -1332,7 +1331,7 @@ else { /* Wait at least 100us */ - wait_ms(1); + HAL_Delay(1); /* Return AUDIO_OK when all operations are correctly done */ return AUDIO_OK;
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_lcd.c Fri Nov 15 11:22:24 2019 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_lcd.c Fri Nov 15 14:31:53 2019 +0100 @@ -92,7 +92,6 @@ /* 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" // #include "../../../Utilities/Fonts/font20.c" @@ -699,13 +698,13 @@ /* Activate XRES active low */ HAL_GPIO_WritePin(GPIOJ, GPIO_PIN_15, GPIO_PIN_RESET); - wait_ms(20); /* wait 20 ms */ + HAL_Delay(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 */ - wait_ms(10); + HAL_Delay(10); } /**
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_qspi.c Fri Nov 15 11:22:24 2019 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_qspi.c Fri Nov 15 14:31:53 2019 +0100 @@ -72,7 +72,6 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery_qspi.h" -#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -664,7 +663,7 @@ } /* After reset CMD, 1000ms requested if QSPI memory SWReset occured during full chip erase operation */ - wait_ms( 1000 ); + HAL_Delay( 1000 ); /* Configure automatic polling mode to wait the WIP bit=0 */ s_config.Match = 0; @@ -768,7 +767,7 @@ } /* 40ms Write Status/Configuration Register Cycle Time */ - wait_ms( 40 ); + HAL_Delay( 40 ); return QSPI_OK; } @@ -906,7 +905,7 @@ } /* 40ms Write Status/Configuration Register Cycle Time */ - wait_ms( 40 ); + HAL_Delay( 40 ); return QSPI_OK; }
--- a/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_sdram.c Fri Nov 15 11:22:24 2019 +0100 +++ b/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_sdram.c Fri Nov 15 14:31:53 2019 +0100 @@ -83,7 +83,6 @@ /* Includes ------------------------------------------------------------------*/ #include "stm32f769i_discovery_sdram.h" -#include "mbed_wait_api.h" // MBED: replace HAL_Delay by wait_ms /** @addtogroup BSP * @{ @@ -233,7 +232,7 @@ /* Step 2: Insert 100 us minimum delay */ /* Inserted delay is equal to 1 ms due to systick time base unit (ms) */ - wait_ms(1); + HAL_Delay(1); /* Step 3: Configure a PALL (precharge all) command */ Command.CommandMode = FMC_SDRAM_CMD_PALL;