STC15W408AS library 0.9.0
Macros
power_management.h File Reference
#include <sys.h>
#include <bits.h>
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for power_management.h:

Go to the source code of this file.

Macros

#define WIRC_H_ADDRESS   0xf8
 Wakeup timer internal clock frequency value high byte address.
 
#define WIRC_L_ADDRESS   0xf9
 Wakeup timer internal clock frequency value low byte address.
 
#define idle()   (bit_set(PCON, SBIT0))
 Set MCU idle mode. More...
 
#define power_down()
 Set MCU power down mode. More...
 
#define wakeup_timer_init(ticks)
 Init and run wakeup timer. More...
 
#define wakeup_timer_internal_clk_freq()   (((uint16_t)*wirc_h_ptr << 8) | *wirc_l_ptr)
 Get wakeup timer internal clock frequency. More...