#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 cmp3_int_cb(), MACSC_32KHz, MACSC_CC3, macsc_enable_cmp_int(), macsc_set_cmp3_int_cb(), macsc_sleep_clk_enable(), macsc_write_clock_source(), sleep_set_mode(), SLEEP_SMODE_PSAVE, and sysclk_enable_peripheral_clock().
Referenced by main().
void sm_sleep | ( | uint32_t | interval | ) |
This function puts the transceiver and device to sleep.
This function puts the transceiver and device to sleep.
interval | : in seconds for the device to sleep.Range of Interval is 1-68719s |
References COMPARE_MODE, CONFIG_MACSC_HZ, MACSC_CC3, macsc_enable(), macsc_enable_manual_bts(), macsc_use_cmp(), sleep_enable(), and sleep_enter.