Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Revision:
11:a2dcf0ebb5b5
Parent:
10:b5115cd6b916
--- a/src/delay.cpp	Wed Jun 17 14:54:14 2020 +0000
+++ b/src/delay.cpp	Mon Aug 03 17:21:20 2020 +0530
@@ -10,22 +10,22 @@
  * By using this software you agree to the terms of the associated
  * Analog Devices Software License Agreement.
 *******************************************************************************/
- 
+
 /******************************************************************************/
 /***************************** Include Files **********************************/
 /******************************************************************************/
- 
+
 #include <mbed.h>
 #include "platform_drivers.h"
- 
+
 /******************************************************************************/
 /********************** Macros and Constants Definitions **********************/
 /******************************************************************************/
- 
+
 /******************************************************************************/
 /************************ Functions Definitions *******************************/
 /******************************************************************************/
- 
+
 /**
  * @brief Generate microseconds delay.
  * @param usecs - Delay in microseconds.
@@ -33,11 +33,9 @@
  */
 void udelay(uint32_t usecs)
 {
-    if (usecs) {
-        // Unused variable - fix compiler warning
-    }
+	wait_us(usecs);
 }
- 
+
 /**
  * @brief Generate miliseconds delay.
  * @param msecs - Delay in miliseconds.
@@ -45,8 +43,7 @@
  */
 void mdelay(uint32_t msecs)
 {
-    if (msecs) {
-        HAL_Delay(msecs);
-    }
+	if (msecs) {
+		HAL_Delay(msecs);
+	}
 }
- 
\ No newline at end of file