staticlibs / ccronexpr

Cron expression parsing in ANSI C
Apache License 2.0
150 stars 78 forks source link

Preprocessor conditions for AVR and ESP8266 #24

Closed Martin-Laclaustra closed 5 years ago

Martin-Laclaustra commented 5 years ago

Points to the appropriate time conversion functions for each SDK, allowing compilation for these platforms in Arduino IDE. AVR-UTC time_t mk_gmtime(tm), for cron_mktime (tm==>time_t) void gmtime_r(date, out), for cron_time (time_t==>tm) AVR-Local time_t mktime(tm), for cron_mktime (tm==>time_t) void localtime_r(date, out), for cron_time (time_t==>tm) ESP8266-UTC implemented in code, for cron_mktime (tm==>time_t) struct tm * gmtime_r(date, out), for cron_time (time_t==>tm) ESP8266-Local time_t mktime(tm), for cron_mktime (tm==>time_t) struct tm * localtime_r(date, out), for cron_time (time_t==>tm) The references to websites about the SDKs and codes are in the source code.

staticlibs commented 5 years ago

Thanks! Merged.