Mbed OS6 Compatible STM32F429ZI Discovery board drivers

Files at this revision

API Documentation at this revision

Comitter:
elessair
Date:
Sun Feb 07 21:17:56 2021 +0000
Parent:
2:53d9067a4feb
Commit message:
mbed os6 compatible

Changed in this revision

Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c Show annotated file Show diff for this revision Revisions of this file
Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_sdram.c Show annotated file Show diff for this revision Revisions of this file
--- a/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c	Wed Feb 28 13:17:14 2018 +0100
+++ b/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c	Sun Feb 07 21:17:56 2021 +0000
@@ -39,7 +39,7 @@
 #include "cmsis_nvic.h" // // Added for mbed
 
 // Added for mbed. This function replaces HAL_Delay()
-void wait_ms(int ms);
+//void wait_ms(int ms);
 
 /** @defgroup BSP BSP
   * @{
@@ -893,8 +893,8 @@
   */
 void LCD_Delay(uint32_t Delay)
 {
-  //HAL_Delay(Delay);
-  wait_ms(Delay);
+  HAL_Delay(Delay);
+//  wait_ms(Delay);
 }
 
 /*******************************************************************************
@@ -972,8 +972,8 @@
   */
 void IOE_Delay(uint32_t Delay)
 {
-  //HAL_Delay(Delay);
-  wait_ms(Delay);
+  HAL_Delay(Delay);
+//  wait_ms(Delay);
 }
 
 /********************************* LINK GYROSCOPE *****************************/
--- a/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_sdram.c	Wed Feb 28 13:17:14 2018 +0100
+++ b/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_sdram.c	Sun Feb 07 21:17:56 2021 +0000
@@ -38,7 +38,7 @@
 #include "stm32f429i_discovery_sdram.h"
 
 // mbed
-void wait_ms(int ms);
+//void wait_ms(int ms);
 
 /** @addtogroup BSP
   * @{
@@ -173,8 +173,8 @@
 
   /* 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);
+  HAL_Delay(1);
+//  wait_ms(1);
   
   /* Step 3: Configure a PALL (precharge all) command */ 
   Command.CommandMode             = FMC_SDRAM_CMD_PALL;