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

Added renaming of gpio registers #34

Merged
merged 3 commits into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fmt:

build:
cargo clean
cargo build
cargo xbuild --target xtensa-esp32-none-elf
20,131 changes: 5,573 additions & 14,558 deletions svd/esp32.svd

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions svd/patches/_gpio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

GPIO:
_array:
FUNC*_IN_SEL_CFG:
description: Peripheral input selection register array
FUNC*_OUT_SEL_CFG:
description: Peripheral output selection register array
PIN*:
description: GPIO Configuration register array


17 changes: 16 additions & 1 deletion svd/patches/_rename_bitfields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ GPIO:
"*":
_strip:
- GPIO_
"PIN*":
_strip:
- "PIN*_"
"FUNC*":
_strip:
- "FUNC*_"
- "SIG*_IN_"

GPIO_SD:
"*":
Expand Down Expand Up @@ -97,7 +104,15 @@ RTCCNTL:
RTCIO:
"*":
_strip:
- RTCIO_
- RTC_GPIO_
- RTC_IO_
"PIN*":
_strip:
- "PIN*_"
"TOUCH_PAD*":
_strip:
- "TOUCH_PAD*_"


SENS:
"*":
Expand Down
3 changes: 2 additions & 1 deletion svd/patches/_rename_registers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ RTCCNTL:

RTCIO:
_strip:
- RTCIO_
- RTC_GPIO_
- RTC_IO_

SENS:
_strip:
Expand Down
4 changes: 4 additions & 0 deletions svd/patches/_rtcio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RTCIO:
_array:
PIN*: {}

2 changes: 2 additions & 0 deletions svd/patches/esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ _include:
- "_aes.yaml"
- "_uart.yaml"
- "_io_mux.yaml"
- "_gpio.yaml"
- "_rtcio.yaml"
- "_rename_registers.yaml"
- "_rename_bitfields.yaml"
- "_rtc_cntl.yaml"
Expand Down