X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Finterface.h;h=9e1629246f396f722717573d1f19745322484294;hb=09b207a39b7791098daafd7d87c3ad9d3db3e19f;hp=9e818104dc94fdfd639fbf2b442ca1e24bbc1671;hpb=2b50c2537dbb28d062938a6c217f5ba27fed23d9;p=mTask.git diff --git a/client/interface.h b/client/interface.h index 9e81810..9e16292 100644 --- a/client/interface.h +++ b/client/interface.h @@ -1,6 +1,10 @@ #ifndef INTERFACE_H #define INTERFACE_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -22,6 +26,13 @@ extern char **gargv; #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 @@ -52,13 +63,16 @@ void led_off(uint8_t i); #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