See on GitHub: mgos_hal.h
These interfaces need to be implemented for each hardware platform.
Get system memory size.
Get system free memory.
Get minimal watermark of the system free memory.
Get filesystem memory usage
Get filesystem size.
Get filesystem free space.
Set watchdog timeout
Invoke a callback in the main MGOS event loop. Returns true if the callback has been scheduled for execution.
Get the CPU frequency in Hz
Allocate a memory region.
Note: currently memory allocated this way must be explicitly released with
Return total available RAM in bytes.
Return free available RAM in bytes.
Reboot the system after
us microseconds. Return value: none.
Return number of seconds since last reboot.
Sleep given number of microseconds. Return value: none.
Feed the watchdog timer. Return value: none.