libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
SWM050 Power API. More...
Functions | |
void | pwr_sleep (void) |
Go into sleep mode. More... | |
SWM050 Power 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.