Skip to content

Commit 71a189d

Browse files
authored
Merge pull request #621 from AlanRosenthal/pwr_c0
Add enum for LPMS for STM32C0
2 parents 778e3d1 + 8b411f5 commit 71a189d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

data/registers/pwr_c0.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ fieldset/CR1:
4646
description: "Low-power mode selection\r These bits select the low-power mode entered when CPU enters deepsleep mode.\r 1XX: Shutdown mode"
4747
bit_offset: 0
4848
bit_size: 3
49+
enum: LPMS
4950
- name: FPD_STOP
5051
description: "Flash memory powered down during Stop mode\r This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Stop mode."
5152
bit_offset: 3
@@ -131,3 +132,15 @@ fieldset/SR2:
131132
description: "Flash ready flag\r This bit is set by hardware to indicate when the Flash memory is ready to be accessed after wakeup from power-down. To place the Flash memory in power-down, set either FPD_SLP or FPD_STP bit.\r Note: If the system boots from SRAM, the user application must wait till FLASH_RDY bit is set, prior to jumping to Flash memory."
132133
bit_offset: 7
133134
bit_size: 1
135+
enum/LPMS:
136+
bit_size: 3
137+
variants:
138+
- name: Stop
139+
description: Selects Stop mode when entering DeepSleep.
140+
value: 0b000
141+
- name: Standby
142+
description: Selects Standby mode when entering DeepSleep.
143+
value: 0b011
144+
- name: Shutdown
145+
description: Selects Shutdown mode when entering DeepSleep.
146+
value: 0b100

0 commit comments

Comments
 (0)