5.13.0.0R1
Software Development Kit
platform_sleep.h File Reference

Functions

void platform_idle_hook (void)
 
uint32_t platform_power_down_hook (uint32_t sleep_ms)
 
int platform_power_down_permission (void)
 

Detailed Description

Defines globally accessible powersave functions

Function Documentation

void platform_idle_hook ( void  )

Hook for RTOS for entering idle mode

uint32_t platform_power_down_hook ( uint32_t  sleep_ms)

Hook for RTOS for entering deep sleep mode

Parameters
[in]sleep_ms: period in millisecond the MCU needs to sleep
Returns
period in millisecond the MCU has slept
int platform_power_down_permission ( void  )

Hook for RTOS to ask MCU whether it want to enter power-down mode

Returns
non-zero if MCU want RTOS enter power down mode