irsan julfikar / C027_Supports

Dependents:   02_DPPU_JUANDA_120 02_DPPU_JUANDA_120_Latest_copy 02_DPPU_JUANDA_120_Latest

Committer:
mazgch
Date:
Thu Jun 12 12:41:26 2014 +0000
Revision:
94:d697fe11f3e5
Parent:
83:71e3b8bc9ab8
add default arguments to connect

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mazgch 74:208e3e32d263 1 #pragma once
mazgch 74:208e3e32d263 2
mazgch 74:208e3e32d263 3 #include "mbed.h"
mazgch 74:208e3e32d263 4
mazgch 83:71e3b8bc9ab8 5 #ifdef USING_RTOS
mazgch 83:71e3b8bc9ab8 6 #include "rtos.h"
mazgch 83:71e3b8bc9ab8 7 inline void RELAX_MS(unsigned int ms) {
mazgch 83:71e3b8bc9ab8 8 if (ms) Thread::wait(ms);
mazgch 83:71e3b8bc9ab8 9 else Thread::yield();
mazgch 83:71e3b8bc9ab8 10 }
mazgch 83:71e3b8bc9ab8 11 #else
mazgch 83:71e3b8bc9ab8 12 inline void RELAX_MS(unsigned int ms) {
mazgch 83:71e3b8bc9ab8 13 if (ms) wait_ms(ms);
mazgch 83:71e3b8bc9ab8 14 }
mazgch 83:71e3b8bc9ab8 15 #endif