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

Defined Constants and Types for the SWM050 Power/Sleep API More...

Collaboration diagram for Power/Sleep Defines:

Functions

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

Detailed Description

Defined Constants and Types for the SWM050 Power/Sleep API

LGPL License Terms libopencm3 License

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.