Jonas Gartmann / BSP_DISCO_F429ZI

Files at this revision

API Documentation at this revision

Comitter:
garj
Date:
Fri Mar 19 11:52:03 2021 +0000
Parent:
4:18d537a3636b
Commit message:
Add wait_ms for mbed os 6

Changed in this revision

Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c Show annotated file Show diff for this revision Revisions of this file
diff -r 18d537a3636b -r f715dacdced5 Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c
--- a/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c	Thu Mar 11 06:42:13 2021 +0000
+++ b/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c	Fri Mar 19 11:52:03 2021 +0000
@@ -41,11 +41,11 @@
 #include "cmsis_nvic.h" // // Added for mbed
 
 // Added for mbed. This function replaces HAL_Delay()
-/*extern void thread_sleep_for(int);
+extern void thread_sleep_for(int);
 void wait_ms(int ms)
 {
-    thread_sleep_for(1000*ms);
-}*/
+    thread_sleep_for(ms);
+}
 /** @defgroup BSP BSP
   * @{
   */