Skip to content

Commit

Permalink
Remove public hidden I2C APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 7, 2024
1 parent 8782429 commit 568b7ce
Show file tree
Hide file tree
Showing 8 changed files with 364 additions and 381 deletions.
723 changes: 353 additions & 370 deletions esp-hal/src/i2c.rs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions esp-hal/src/soc/esp32/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ crate::peripherals! {
GPIO <= GPIO (GPIO,GPIO_NMI),
GPIO_SD <= GPIO_SD,
HINF <= HINF,
I2C0 <= I2C0,
I2C1 <= I2C1,
[I2cExt0] I2C0 <= I2C0,
[I2cExt1] I2C1 <= I2C1,
[I2s0] I2S0 <= I2S0 (I2S0),
[I2s1] I2S1 <= I2S1 (I2S1),
IO_MUX <= IO_MUX,
Expand Down
2 changes: 1 addition & 1 deletion esp-hal/src/soc/esp32c2/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ crate::peripherals! {
EFUSE <= EFUSE,
EXTMEM <= EXTMEM,
GPIO <= GPIO (GPIO,GPIO_NMI),
I2C0 <= I2C0,
[I2cExt0] I2C0 <= I2C0,
INTERRUPT_CORE0 <= INTERRUPT_CORE0,
IO_MUX <= IO_MUX,
LEDC <= LEDC,
Expand Down
2 changes: 1 addition & 1 deletion esp-hal/src/soc/esp32c3/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ crate::peripherals! {
GPIO <= GPIO (GPIO,GPIO_NMI),
GPIO_SD <= GPIO_SD,
HMAC <= HMAC,
I2C0 <= I2C0,
[I2cExt0] I2C0 <= I2C0,
[I2s0] I2S0 <= I2S0 (I2S0),
INTERRUPT_CORE0 <= INTERRUPT_CORE0,
IO_MUX <= IO_MUX,
Expand Down
2 changes: 1 addition & 1 deletion esp-hal/src/soc/esp32c6/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ crate::peripherals! {
HMAC <= HMAC,
HP_APM <= HP_APM,
HP_SYS <= HP_SYS,
I2C0 <= I2C0,
[I2cExt0] I2C0 <= I2C0,
[I2s0] I2S0 <= I2S0 (I2S0),
IEEE802154 <= IEEE802154,
INTERRUPT_CORE0 <= INTERRUPT_CORE0,
Expand Down
4 changes: 2 additions & 2 deletions esp-hal/src/soc/esp32h2/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ crate::peripherals! {
HMAC <= HMAC,
HP_APM <= HP_APM,
HP_SYS <= HP_SYS,
I2C0 <= I2C0,
I2C1 <= I2C1,
[I2cExt0] I2C0 <= I2C0,
[I2cExt1] I2C1 <= I2C1,
[I2s0] I2S0 <= I2S0 (I2S0),
IEEE802154 <= IEEE802154,
INTERRUPT_CORE0 <= INTERRUPT_CORE0,
Expand Down
4 changes: 2 additions & 2 deletions esp-hal/src/soc/esp32s2/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ crate::peripherals! {
GPIO <= GPIO (GPIO,GPIO_NMI),
GPIO_SD <= GPIO_SD,
HMAC <= HMAC,
I2C0 <= I2C0,
I2C1 <= I2C1,
[I2cExt0] I2C0 <= I2C0,
[I2cExt1] I2C1 <= I2C1,
[I2s0] I2S0 <= I2S0 (I2S0),
INTERRUPT_CORE0 <= INTERRUPT_CORE0,
IO_MUX <= IO_MUX,
Expand Down
4 changes: 2 additions & 2 deletions esp-hal/src/soc/esp32s3/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ crate::peripherals! {
GPIO <= GPIO (GPIO,GPIO_NMI),
GPIO_SD <= GPIO_SD,
HMAC <= HMAC,
I2C0 <= I2C0,
I2C1 <= I2C1,
[I2cExt0] I2C0 <= I2C0,
[I2cExt1] I2C1 <= I2C1,
[I2s0] I2S0 <= I2S0 (I2S0),
[I2s1] I2S1 <= I2S1 (I2S1),
INTERRUPT_CORE0 <= INTERRUPT_CORE0,
Expand Down

0 comments on commit 568b7ce

Please sign in to comment.