Skip to content

Commit

Permalink
Add pin 31 to c6 pac
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Mar 31, 2024
1 parent 130e7f8 commit 0fcae37
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 9 additions & 4 deletions esp32c6/src/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ pub struct RegisterBlock {
status_next1: STATUS_NEXT1,
func_in_sel_cfg: [FUNC_IN_SEL_CFG; 128],
_reserved33: [u8; 0x0200],
func_out_sel_cfg: [FUNC_OUT_SEL_CFG; 30],
_reserved34: [u8; 0x60],
func_out_sel_cfg: [FUNC_OUT_SEL_CFG; 31],
_reserved34: [u8; 0x5c],
clock_gate: CLOCK_GATE,
_reserved35: [u8; 0xcc],
date: DATE,
Expand Down Expand Up @@ -861,13 +861,13 @@ impl RegisterBlock {
pub const fn func127_in_sel_cfg(&self) -> &FUNC_IN_SEL_CFG {
self.func_in_sel_cfg(127)
}
#[doc = "0x554..0x5cc - GPIO output function select register"]
#[doc = "0x554..0x5d0 - GPIO output function select register"]
#[inline(always)]
pub const fn func_out_sel_cfg(&self, n: usize) -> &FUNC_OUT_SEL_CFG {
&self.func_out_sel_cfg[n]
}
#[doc = "Iterator for array of:"]
#[doc = "0x554..0x5cc - GPIO output function select register"]
#[doc = "0x554..0x5d0 - GPIO output function select register"]
#[inline(always)]
pub fn func_out_sel_cfg_iter(&self) -> impl Iterator<Item = &FUNC_OUT_SEL_CFG> {
self.func_out_sel_cfg.iter()
Expand Down Expand Up @@ -1022,6 +1022,11 @@ impl RegisterBlock {
pub const fn func29_out_sel_cfg(&self) -> &FUNC_OUT_SEL_CFG {
self.func_out_sel_cfg(29)
}
#[doc = "0x5cc - GPIO output function select register"]
#[inline(always)]
pub const fn func30_out_sel_cfg(&self) -> &FUNC_OUT_SEL_CFG {
self.func_out_sel_cfg(30)
}
#[doc = "0x62c - GPIO clock gate register"]
#[inline(always)]
pub const fn clock_gate(&self) -> &CLOCK_GATE {
Expand Down
5 changes: 5 additions & 0 deletions esp32c6/svd/patches/esp32c6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ I2C0:
INT_STATUS:
name: INT_ST

GPIO:
_modify:
FUNC%s_OUT_SEL_CFG:
dim: 31

LP_I2C0:
_strip: "I2C_"
"*":
Expand Down

0 comments on commit 0fcae37

Please sign in to comment.