#include "compiler.h"
Functions | |
void | sm_init (void) |
This function Initializes the Sleep functions. More... | |
void | sm_sleep (uint32_t interval) |
This function puts the transceiver and device to sleep. More... | |
void sm_init | ( | void | ) |
This function Initializes the Sleep functions.
References BPM_CLK32_SOURCE_RC32K, bpm_enable_wakeup_source(), bpm_set_clk32_source(), config_ast(), ast_config::mode, sleepmgr_init(), sleepmgr_lock_mode(), and SLEEPMGR_RET.
Referenced by wsndemo_init().
void sm_sleep | ( | uint32_t | interval | ) |
This function puts the transceiver and device to sleep.
This function puts the transceiver and device to sleep.
References ast_alarm, ast_counter, ast_enable_interrupt(), AST_INTERRUPT_ALARM, ast_read_counter_value(), ast_write_alarm0_value(), and sleepmgr_enter_sleep().
Referenced by APP_TaskHandler().