LOGGER
Logger
Data Logging using ESP8266
|
Macros | |
#define | sleepservicesEdit 1 |
version of this module | |
Functions | |
EXTERNDEF void | sleepservicesInit () |
< version of this module More... | |
EXTERNDEF void | sleepservicesLoop () |
EXTERNDEF void | sleepservicesWakeup () |
Services to support sleeping.
EXTERNDEF void sleepservicesInit | ( | ) |
< version of this module
Initialize sleep services, call once at system startup.
EXTERNDEF void sleepservicesLoop | ( | ) |
Call this once at the top of the main loop. If all psudo tasks are idle the system will sleep prior to return. A call to sleepservicesWakeup will trigger a wakeup. If there is anything to do (known by someone calling sleepservicesWakeup since the last call to this routine) this routine will simply return.
EXTERNDEF void sleepservicesWakeup | ( | ) |
Call this routine from a psudo task to declare that the tast must get called again prior to sleeping. Also used to declare that some other psudo task must be run prior to sleeping. Once this call is made the scheduling system ensures a wakeup will occur and guarentees that all psudo tasks will get a chance to run prior to the system sleeping again. It is safe to call this from an ISR.