Skip to content

Commit

Permalink
Revert esp32 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Aug 21, 2024
1 parent 0098bb8 commit 3cd4570
Show file tree
Hide file tree
Showing 15 changed files with 2,326 additions and 268 deletions.
108 changes: 96 additions & 12 deletions esp32/src/rtc_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ pub struct RegisterBlock {
pad_dac: [PAD_DAC; 2],
xtal_32k_pad: XTAL_32K_PAD,
touch_cfg: TOUCH_CFG,
touch_pad: [TOUCH_PAD; 10],
touch_pad0: TOUCH_PAD0,
touch_pad1: TOUCH_PAD1,
touch_pad2: TOUCH_PAD2,
touch_pad3: TOUCH_PAD3,
touch_pad4: TOUCH_PAD4,
touch_pad5: TOUCH_PAD5,
touch_pad6: TOUCH_PAD6,
touch_pad7: TOUCH_PAD7,
touch_pad8: TOUCH_PAD8,
touch_pad9: TOUCH_PAD9,
ext_wakeup0: EXT_WAKEUP0,
xtl_ext_ctr: XTL_EXT_CTR,
sar_i2c_io: SAR_I2C_IO,
Expand Down Expand Up @@ -145,16 +154,55 @@ impl RegisterBlock {
pub const fn touch_cfg(&self) -> &TOUCH_CFG {
&self.touch_cfg
}
#[doc = "0x94..0xbc - Touch pad %s configuration register"]
#[doc = "0x94 - "]
#[inline(always)]
pub const fn touch_pad(&self, n: usize) -> &TOUCH_PAD {
&self.touch_pad[n]
pub const fn touch_pad0(&self) -> &TOUCH_PAD0 {
&self.touch_pad0
}
#[doc = "Iterator for array of:"]
#[doc = "0x94..0xbc - Touch pad %s configuration register"]
#[doc = "0x98 - "]
#[inline(always)]
pub const fn touch_pad1(&self) -> &TOUCH_PAD1 {
&self.touch_pad1
}
#[doc = "0x9c - "]
#[inline(always)]
pub const fn touch_pad2(&self) -> &TOUCH_PAD2 {
&self.touch_pad2
}
#[doc = "0xa0 - "]
#[inline(always)]
pub const fn touch_pad3(&self) -> &TOUCH_PAD3 {
&self.touch_pad3
}
#[doc = "0xa4 - "]
#[inline(always)]
pub fn touch_pad_iter(&self) -> impl Iterator<Item = &TOUCH_PAD> {
self.touch_pad.iter()
pub const fn touch_pad4(&self) -> &TOUCH_PAD4 {
&self.touch_pad4
}
#[doc = "0xa8 - "]
#[inline(always)]
pub const fn touch_pad5(&self) -> &TOUCH_PAD5 {
&self.touch_pad5
}
#[doc = "0xac - "]
#[inline(always)]
pub const fn touch_pad6(&self) -> &TOUCH_PAD6 {
&self.touch_pad6
}
#[doc = "0xb0 - "]
#[inline(always)]
pub const fn touch_pad7(&self) -> &TOUCH_PAD7 {
&self.touch_pad7
}
#[doc = "0xb4 - "]
#[inline(always)]
pub const fn touch_pad8(&self) -> &TOUCH_PAD8 {
&self.touch_pad8
}
#[doc = "0xb8 - "]
#[inline(always)]
pub const fn touch_pad9(&self) -> &TOUCH_PAD9 {
&self.touch_pad9
}
#[doc = "0xbc - "]
#[inline(always)]
Expand Down Expand Up @@ -253,6 +301,46 @@ pub mod xtal_32k_pad;
pub type TOUCH_CFG = crate::Reg<touch_cfg::TOUCH_CFG_SPEC>;
#[doc = ""]
pub mod touch_cfg;
#[doc = "TOUCH_PAD0 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad0`] module"]
pub type TOUCH_PAD0 = crate::Reg<touch_pad0::TOUCH_PAD0_SPEC>;
#[doc = ""]
pub mod touch_pad0;
#[doc = "TOUCH_PAD1 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad1`] module"]
pub type TOUCH_PAD1 = crate::Reg<touch_pad1::TOUCH_PAD1_SPEC>;
#[doc = ""]
pub mod touch_pad1;
#[doc = "TOUCH_PAD2 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad2`] module"]
pub type TOUCH_PAD2 = crate::Reg<touch_pad2::TOUCH_PAD2_SPEC>;
#[doc = ""]
pub mod touch_pad2;
#[doc = "TOUCH_PAD3 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad3`] module"]
pub type TOUCH_PAD3 = crate::Reg<touch_pad3::TOUCH_PAD3_SPEC>;
#[doc = ""]
pub mod touch_pad3;
#[doc = "TOUCH_PAD4 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad4`] module"]
pub type TOUCH_PAD4 = crate::Reg<touch_pad4::TOUCH_PAD4_SPEC>;
#[doc = ""]
pub mod touch_pad4;
#[doc = "TOUCH_PAD5 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad5`] module"]
pub type TOUCH_PAD5 = crate::Reg<touch_pad5::TOUCH_PAD5_SPEC>;
#[doc = ""]
pub mod touch_pad5;
#[doc = "TOUCH_PAD6 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad6`] module"]
pub type TOUCH_PAD6 = crate::Reg<touch_pad6::TOUCH_PAD6_SPEC>;
#[doc = ""]
pub mod touch_pad6;
#[doc = "TOUCH_PAD7 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad7`] module"]
pub type TOUCH_PAD7 = crate::Reg<touch_pad7::TOUCH_PAD7_SPEC>;
#[doc = ""]
pub mod touch_pad7;
#[doc = "TOUCH_PAD8 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad8::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad8::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad8`] module"]
pub type TOUCH_PAD8 = crate::Reg<touch_pad8::TOUCH_PAD8_SPEC>;
#[doc = ""]
pub mod touch_pad8;
#[doc = "TOUCH_PAD9 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad9::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad9::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad9`] module"]
pub type TOUCH_PAD9 = crate::Reg<touch_pad9::TOUCH_PAD9_SPEC>;
#[doc = ""]
pub mod touch_pad9;
#[doc = "EXT_WAKEUP0 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`ext_wakeup0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ext_wakeup0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ext_wakeup0`] module"]
pub type EXT_WAKEUP0 = crate::Reg<ext_wakeup0::EXT_WAKEUP0_SPEC>;
#[doc = ""]
Expand All @@ -269,7 +357,3 @@ pub mod sar_i2c_io;
pub type DATE = crate::Reg<date::DATE_SPEC>;
#[doc = ""]
pub mod date;
#[doc = "TOUCH_PAD (rw) register accessor: Touch pad %s configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`touch_pad::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`touch_pad::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@touch_pad`] module"]
pub type TOUCH_PAD = crate::Reg<touch_pad::TOUCH_PAD_SPEC>;
#[doc = "Touch pad %s configuration register"]
pub mod touch_pad;
Loading

0 comments on commit 3cd4570

Please sign in to comment.