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
Relax.h
- Committer:
- mazgch
- Date:
- 2014-05-28
- Revision:
- 83:71e3b8bc9ab8
- Parent:
- 74:208e3e32d263
File content as of revision 83:71e3b8bc9ab8:
#pragma once
#include "mbed.h"
#ifdef USING_RTOS
#include "rtos.h"
inline void RELAX_MS(unsigned int ms) {
if (ms) Thread::wait(ms);
else Thread::yield();
}
#else
inline void RELAX_MS(unsigned int ms) {
if (ms) wait_ms(ms);
}
#endif