Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit 801f172

Browse files
authored
Merge pull request #34 from arjanmels/feature-gpio
Added renaming of gpio registers
2 parents 8308884 + 21ea4c7 commit 801f172

File tree

7 files changed

+5609
-14561
lines changed

7 files changed

+5609
-14561
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ fmt:
2323

2424
build:
2525
cargo clean
26-
cargo build
26+
cargo xbuild --target xtensa-esp32-none-elf

svd/esp32.svd

Lines changed: 5573 additions & 14558 deletions
Large diffs are not rendered by default.

svd/patches/_gpio.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
GPIO:
3+
_array:
4+
FUNC*_IN_SEL_CFG:
5+
description: Peripheral input selection register array
6+
FUNC*_OUT_SEL_CFG:
7+
description: Peripheral output selection register array
8+
PIN*:
9+
description: GPIO Configuration register array
10+
11+

svd/patches/_rename_bitfields.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ GPIO:
1919
"*":
2020
_strip:
2121
- GPIO_
22+
"PIN*":
23+
_strip:
24+
- "PIN*_"
25+
"FUNC*":
26+
_strip:
27+
- "FUNC*_"
28+
- "SIG*_IN_"
2229

2330
GPIO_SD:
2431
"*":
@@ -97,7 +104,15 @@ RTCCNTL:
97104
RTCIO:
98105
"*":
99106
_strip:
100-
- RTCIO_
107+
- RTC_GPIO_
108+
- RTC_IO_
109+
"PIN*":
110+
_strip:
111+
- "PIN*_"
112+
"TOUCH_PAD*":
113+
_strip:
114+
- "TOUCH_PAD*_"
115+
101116

102117
SENS:
103118
"*":

svd/patches/_rename_registers.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ RTCCNTL:
6565

6666
RTCIO:
6767
_strip:
68-
- RTCIO_
68+
- RTC_GPIO_
69+
- RTC_IO_
6970

7071
SENS:
7172
_strip:

svd/patches/_rtcio.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RTCIO:
2+
_array:
3+
PIN*: {}
4+

svd/patches/esp32.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ _include:
55
- "_aes.yaml"
66
- "_uart.yaml"
77
- "_io_mux.yaml"
8+
- "_gpio.yaml"
9+
- "_rtcio.yaml"
810
- "_rename_registers.yaml"
911
- "_rename_bitfields.yaml"
1012
- "_rtc_cntl.yaml"

0 commit comments

Comments
 (0)