Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 02_DPPU_JUANDA_120 02_DPPU_JUANDA_120_Latest_copy 02_DPPU_JUANDA_120_Latest
Diff: Relax.h
- Revision:
- 74:208e3e32d263
- Child:
- 83:71e3b8bc9ab8
diff -r 2b32e0a21df2 -r 208e3e32d263 Relax.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Relax.h	Thu May 15 22:20:42 2014 +0000
@@ -0,0 +1,16 @@
+#pragma once 
+
+#include "mbed.h"
+
+// declare the osDelay (usually from cmsis_os.h)
+extern "C" void osDelay(uint32_t ms);
+
+/** A wait function that is independent whether the OS is includes or not
+    if rtos is included the Thread will yield for a certain time 
+    otherwise (without rtos) it will just stay in a busy loop.
+    
+    \param ms number of milliseconds to wait
+*/
+inline void RELAX_MS(int ms) { 
+    osDelay(ms); 
+}
\ No newline at end of file