3.1.9. power — Power control

Source code: src/drivers/basic/power.h, src/drivers/basic/power.c


Functions

int power_module_init(void)

Initialize the power module. This function must be called before calling any other function in this module.

The module will only be initialized once even if this function is called multiple times.

Return
zero(0) or negative error code.

int power_deep_sleep(long microseconds)

Put board into deep sleep mode for requested time.

Return
zero(0) or negative error code.
Parameters
  • microseconds: Time to sleep.