Skip to content

Commit 7383d22

Browse files
MabezDevjessebraham
authored andcommitted
Add pin 31 to c6 pac
1 parent efd414c commit 7383d22

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

esp32c6/src/gpio.rs

+9-4
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ pub struct RegisterBlock {
3737
status_next1: STATUS_NEXT1,
3838
func_in_sel_cfg: [FUNC_IN_SEL_CFG; 128],
3939
_reserved33: [u8; 0x0200],
40-
func_out_sel_cfg: [FUNC_OUT_SEL_CFG; 30],
41-
_reserved34: [u8; 0x60],
40+
func_out_sel_cfg: [FUNC_OUT_SEL_CFG; 31],
41+
_reserved34: [u8; 0x5c],
4242
clock_gate: CLOCK_GATE,
4343
_reserved35: [u8; 0xcc],
4444
date: DATE,
@@ -861,13 +861,13 @@ impl RegisterBlock {
861861
pub const fn func127_in_sel_cfg(&self) -> &FUNC_IN_SEL_CFG {
862862
self.func_in_sel_cfg(127)
863863
}
864-
#[doc = "0x554..0x5cc - GPIO output function select register"]
864+
#[doc = "0x554..0x5d0 - GPIO output function select register"]
865865
#[inline(always)]
866866
pub const fn func_out_sel_cfg(&self, n: usize) -> &FUNC_OUT_SEL_CFG {
867867
&self.func_out_sel_cfg[n]
868868
}
869869
#[doc = "Iterator for array of:"]
870-
#[doc = "0x554..0x5cc - GPIO output function select register"]
870+
#[doc = "0x554..0x5d0 - GPIO output function select register"]
871871
#[inline(always)]
872872
pub fn func_out_sel_cfg_iter(&self) -> impl Iterator<Item = &FUNC_OUT_SEL_CFG> {
873873
self.func_out_sel_cfg.iter()
@@ -1022,6 +1022,11 @@ impl RegisterBlock {
10221022
pub const fn func29_out_sel_cfg(&self) -> &FUNC_OUT_SEL_CFG {
10231023
self.func_out_sel_cfg(29)
10241024
}
1025+
#[doc = "0x5cc - GPIO output function select register"]
1026+
#[inline(always)]
1027+
pub const fn func30_out_sel_cfg(&self) -> &FUNC_OUT_SEL_CFG {
1028+
self.func_out_sel_cfg(30)
1029+
}
10251030
#[doc = "0x62c - GPIO clock gate register"]
10261031
#[inline(always)]
10271032
pub const fn clock_gate(&self) -> &CLOCK_GATE {

esp32c6/svd/patches/esp32c6.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ I2C0:
99
INT_STATUS:
1010
name: INT_ST
1111

12+
GPIO:
13+
_modify:
14+
FUNC%s_OUT_SEL_CFG:
15+
dim: 31
16+
1217
LP_I2C0:
1318
_strip: "I2C_"
1419
"*":

0 commit comments

Comments
 (0)