gpio-cleanup

This commit is contained in:
eZio Pan 2024-01-03 21:33:46 +08:00
parent 9ec9e0afb8
commit 2dbc72e316
3 changed files with 3 additions and 40 deletions

View File

@ -106,12 +106,10 @@ fieldset/LCKR:
array:
len: 16
stride: 1
enum: LCK
- name: LCKK
description: Lock key
bit_offset: 16
bit_size: 1
enum: LCKK
fieldset/ODR:
description: Port output data register (GPIOn_ODR)
fields:
@ -159,24 +157,6 @@ enum/IDR:
- name: High
description: Input is logic high
value: 1
enum/LCK:
bit_size: 1
variants:
- name: Unlocked
description: Port configuration not locked
value: 0
- name: Locked
description: Port configuration locked
value: 1
enum/LCKK:
bit_size: 1
variants:
- name: NotActive
description: Port configuration lock key not active
value: 0
- name: Active
description: Port configuration lock key active
value: 1
enum/MODE:
bit_size: 2
variants:

View File

@ -90,12 +90,10 @@ fieldset/LCKR:
array:
len: 16
stride: 1
enum: LCK
- name: LCKK
description: Port x lock bit y (y= 0..15)
bit_offset: 16
bit_size: 1
enum: LCKK
fieldset/MODER:
description: GPIO port mode register
fields:
@ -160,24 +158,6 @@ enum/IDR:
- name: High
description: Input is logic high
value: 1
enum/LCK:
bit_size: 1
variants:
- name: Unlocked
description: Port configuration not locked
value: 0
- name: Locked
description: Port configuration locked
value: 1
enum/LCKK:
bit_size: 1
variants:
- name: NotActive
description: Port configuration lock key not active
value: 0
- name: Active
description: Port configuration lock key active
value: 1
enum/MODER:
bit_size: 2
variants:

3
transforms/GPIO.yaml Normal file
View File

@ -0,0 +1,3 @@
transforms:
- !DeleteEnums
from: ^(LCKK?)$