libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
Power/Sleep API

SWM050 Power API. More...

Collaboration diagram for Power/Sleep API:

Functions

void pwr_sleep (void)
 Go into sleep mode. More...
 

Detailed Description

SWM050 Power API.

LGPL License Terms libopencm3 License

Author
© 2019 Caleb Szalacinski conta.nosp@m.ct@s.nosp@m.kiboy.nosp@m..net

Function Documentation

◆ pwr_sleep()

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.