ArduinoCompat.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * ArduinoCompat.h - Arduino Compatibility Layer
8  *
9  * @author: 2017 - Slavey Karadzhov <slav@attachix.com>
10  *
11  ****/
12 
13 #pragma once
14 
15 #include "SmingCore.h"
16 #include <stdio.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define abs(x) ((x) > 0 ? (x) : -(x))
23 #define round(x) ((x) >= 0 ? (long)((x) + 0.5) : (long)((x)-0.5))
24 
25 void yield();
26 
27 #ifdef __cplusplus
28 }
29 #endif
void yield()