Skip to content

Commit

Permalink
fixup! cpu/gdv32: add pm_layered support
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jan 23, 2023
1 parent 882cef8 commit 615c2a0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cpu/gd32v/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ extern "C" {

/**
* @brief Power modes
*
* The GD32V has three power modes (terminology as defined by GigaDevice).
* - Sleep: Only the clock of the RISC-V core is switched off.
* - Deep sleep: The RISC-V core including all AHB and APB peripheralsa and all
* high speed clocks are off. The LDO is in operation and the
* SRAM is retained.
* The MCU can be woken up by external interrupts or events
* without restart.
* - Standby: The RISC-V core including all AHB and APB peripherals, all
* high-speed clocks, and the LDO are off. The SRAM is not
* retained.
* The MCU can be woken up by WKUP or the NRST pin, watchdog
* reset and RTC alarms with restart.
*/
enum {
GD32V_PM_STANDBY = 0, /**< STANDBY mode, */
Expand Down

0 comments on commit 615c2a0

Please sign in to comment.