Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add I2C to list of peripherals to be created
  • Loading branch information
jessebraham committed Dec 13, 2022
commit c5dba25ad694fb7c44ad6dd009db9864a83c5491
8 changes: 5 additions & 3 deletions esp-hal-common/src/peripherals/esp32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ mod peripherals {
pub use super::pac::*;

crate::create_peripherals! {
UART0,
UART1,
UART2,
I2C0,
I2C1,
SPI0,
SPI1,
SPI2,
SPI3,
UART0,
UART1,
UART2,
}
}
5 changes: 3 additions & 2 deletions esp-hal-common/src/peripherals/esp32c2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ mod peripherals {
pub use super::pac::*;

crate::create_peripherals! {
UART0,
UART1,
I2C0,
SPI0,
SPI1,
SPI2,
SYSTIMER,
UART0,
UART1,
}
}
5 changes: 3 additions & 2 deletions esp-hal-common/src/peripherals/esp32c3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ mod peripherals {
pub use super::pac::*;

crate::create_peripherals! {
UART0,
UART1,
I2C0,
SPI0,
SPI1,
SPI2,
SYSTIMER,
UART0,
UART1,
}
}
6 changes: 4 additions & 2 deletions esp-hal-common/src/peripherals/esp32s2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ mod peripherals {
pub use super::pac::*;

crate::create_peripherals! {
UART0,
UART1,
I2C0,
I2C1,
SPI0,
SPI1,
SPI2,
SPI3,
SPI4,
SYSTIMER,
UART0,
UART1,
}
}
8 changes: 5 additions & 3 deletions esp-hal-common/src/peripherals/esp32s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ mod peripherals {
pub use super::pac::*;

crate::create_peripherals! {
UART0,
UART1,
UART2,
I2C0,
I2C1,
SPI0,
SPI1,
SPI2,
SPI3,
SYSTIMER,
UART0,
UART1,
UART2,
}
}