Functions | |
| platform_result_t | platform_gpio_deepsleep_wakeup_enable (const platform_gpio_t *gpio, platform_gpio_irq_trigger_t trigger) |
| void | platform_idle_hook (void) |
| platform_result_t | platform_mcu_powersave_disable (void) |
| platform_result_t | platform_mcu_powersave_enable (void) |
| uint32_t | platform_power_down_hook (uint32_t ticks) |
| int | platform_power_down_permission (void) |
MCU powersave implementation
| platform_result_t platform_gpio_deepsleep_wakeup_enable | ( | const platform_gpio_t * | gpio, |
| platform_gpio_irq_trigger_t | trigger ) |
Configure GPIO to wakeup MCU from deep-sleep.
| [in] | gpio | : GPIO Pin to wake up from Deep Sleep |
| [in] | trigger | : Wakeup trigger |
| void platform_idle_hook | ( | void | ) |
Hook for RTOS for entering idle mode
| platform_result_t platform_mcu_powersave_disable | ( | void | ) |
Disable MCU powersave
| platform_result_t platform_mcu_powersave_enable | ( | void | ) |
Enable MCU powersave
| uint32_t platform_power_down_hook | ( | uint32_t | sleep_ms | ) |
Hook for RTOS for entering deep sleep mode
| [in] | sleep_ms | : period in millisecond the MCU needs to sleep |
| int platform_power_down_permission | ( | void | ) |
Hook for RTOS to ask MCU whether it want to enter power-down mode