Copyright (c) 2014-2018 Microchip Technology Inc.
and its subsidiaries.
Functions | |
static void | ast_alarm_callback (void) |
Callback handler for AST alarm Interrupt. More... | |
static void | config_ast (void) |
void | sm_init (void) |
This function Initializes the Sleep functions. More... | |
void | sm_sleep (uint32_t interval) |
This function puts the device to sleep. More... | |
Variables | |
uint32_t | ast_alarm |
uint32_t | ast_counter |
|
static |
Callback handler for AST alarm Interrupt.
References ast_clear_interrupt_flag(), ast_disable_interrupt(), and AST_INTERRUPT_ALARM.
Referenced by config_ast().
|
static |
References ast_alarm_callback(), ast_clear_interrupt_flag(), AST_COUNTER_MODE, ast_disable_interrupt(), ast_enable(), ast_enable_wakeup(), AST_INTERRUPT_ALARM, AST_OSC_32KHZ, AST_PSEL_32KHZ_1HZ, ast_set_callback(), ast_set_config(), AST_WAKEUP_ALARM, ast_config::counter, ast_config::mode, osc_enable(), OSC_ID_RC32K, osc_is_ready(), ast_config::osc_type, osc_wait_ready(), and ast_config::psel.
Referenced by sm_init().
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 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().
uint32_t ast_alarm |
Referenced by sm_sleep().
uint32_t ast_counter |
Referenced by ast_write_counter_value(), and sm_sleep().