1#ifndef POWER_MANAGEMENTH
2#define POWER_MANAGEMENTH
22#define WIRC_H_ADDRESS 0xf8
29#define WIRC_L_ADDRESS 0xf9
43#define idle() (bit_set(PCON, SBIT0))
56 bit_set(PCON, SBIT1); \
73#define wakeup_timer_init(ticks) \
75 WKTCH = (ticks >> 8) | 0x80; \
76 WKTCL = ticks & 0xff; \
79static volatile __idata uint8_t *
const wirc_h_ptr = (__idata uint8_t *)
WIRC_H_ADDRESS;
80static volatile __idata uint8_t *
const wirc_l_ptr = (__idata uint8_t *)
WIRC_L_ADDRESS;
99#define wakeup_timer_internal_clk_freq() (((uint16_t)*wirc_h_ptr << 8) | *wirc_l_ptr)
115#define power_low_voltage_flag_get() (get_bit(PCON, 5))
126#define power_low_voltage_flag_clear() (bit_clr(PCON, CBIT5))
#define WIRC_L_ADDRESS
Wakeup timer internal clock frequency value low byte address.
Definition power_management.h:29
#define WIRC_H_ADDRESS
Wakeup timer internal clock frequency value high byte address.
Definition power_management.h:22