libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the SWM050 Power/Sleep API More...
Functions | |
void | pwr_sleep (void) |
Go into sleep mode. More... | |
Defined Constants and Types for the SWM050 Power/Sleep API
LGPL License Terms libopencm3 License
void pwr_sleep | ( | void | ) |
Go into sleep mode.
Goes to sleep and wakes up on when GPIO pin 9 is pulled low. Please give yourself enough time to connect the debugger before calling this, in order to not get locked out of the MCU.
Definition at line 38 of file pwr.c.
References SYSCTL_SYS_CFG_2, and SYSCTL_SYS_CFG_2_SLEEP.