86#define PM_CMD_PORT_BASE GPIO_PORT_TO_BASE(PM_CMD_PORT)
87#define PM_CMD_PIN_MASK GPIO_PIN_MASK(PM_CMD_PIN)
88#define PM_DONE_PORT_BASE GPIO_PORT_TO_BASE(PM_DONE_PORT)
89#define PM_DONE_PIN_MASK GPIO_PIN_MASK(PM_DONE_PIN)
102#define PM_SHUTDOWN_NOW GPIO_SET_PIN(PM_DONE_PORT_BASE, PM_DONE_PIN_MASK)
108#define PM_1_MILISECOND 1000L
109#define PM_2_2_MILISECOND 2200L
110#define PM_3_MILISECOND 3000L
111#define PM_10_MILISECOND 10000L
118 PM_CMD_PWR_ON = 0x34,
119 PM_CMD_PWR_OFF = 0x35,
120 PM_CMD_RST_HARD = 0x36,
121 PM_CMD_RST_TIMED = 0x37,
122 PM_CMD_DTIMER_ON = 0x38,
123 PM_CMD_DTIMER_OFF = 0x39,
124 PM_CMD_DTIMER_TIMED = 0x3A,
125 PM_CMD_PARAM_SET_MAX_TIME = 0x3B,
126 PM_CMD_GET_STATE = 0x3C,
127 PM_CMD_GET_FW_VERSION = 0x3D,
142 PM_AWAITING_RTC_EVENT,
145#define PM_SYSOFF_ON_MASK 0x01
146#define PM_TIMER_ENABLED_MASK 0x02
147#define PM_AWAITING_RTC_EVENT_MASK 0x04
Header file with register and macro declarations for the cc2538 GPIO module.
int8_t pm_get_state(uint8_t *state)
Get the current state of the power management module.
int8_t pm_init(void)
Initializes the Power Management driver.
int8_t pm_disable_timer(void)
Disable the Nano Timer.
int8_t pm_get_firmware_version(uint8_t *state)
Get the firmware version of the power management module.
int8_t pm_enable_timer(void)
Enable the shutdown mode, periodically driven by the Nano Timer.