#ifndef INTERFACE_H
#define INTERFACE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
#define HAVEAIO 1
#define HAVEDIO 1
+#elif defined ARDUINO_ESP8266_NODEMCU
+#define MAXTASKS 5
+#define MAXSDSS 100
+#define HAVELED 0
+#define HAVEAIO 0
+#define HAVEDIO 0
+
#else
//Add you device here
#endif
#endif
/* Delay and communication */
-long millis(void);
-void delay(long ms);
+unsigned long getmillis(void);
+void msdelay(unsigned long ms);
/* Auxilliary */
-void setup(void);
+void real_setup(void);
void debug(char *fmt, ...);
void pdie(char *s);
void die(char *fmt, ...);
+#ifdef __cplusplus
+}
+#endif
#endif