mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-01 06:11:03 +00:00

* Add SHA to list of peripherals to be created * Refactor SHA peripheral to use PeripheralRef * Update SHA examples to get them building again
50 lines
658 B
Rust
50 lines
658 B
Rust
pub use pac::Interrupt;
|
|
|
|
use crate::pac; // We need to export this for users to use
|
|
|
|
crate::peripherals! {
|
|
APB_CTRL,
|
|
APB_SARADC,
|
|
ASSIST_DEBUG,
|
|
DMA,
|
|
ECC,
|
|
EFUSE,
|
|
EXTMEM,
|
|
GPIO,
|
|
I2C0,
|
|
INTERRUPT_CORE0,
|
|
IO_MUX,
|
|
LEDC,
|
|
RNG,
|
|
RTC_CNTL,
|
|
SENSITIVE,
|
|
SHA,
|
|
SPI0,
|
|
SPI1,
|
|
SPI2,
|
|
SYSTEM,
|
|
SYSTIMER,
|
|
TIMG0,
|
|
UART0,
|
|
UART1,
|
|
XTS_AES,
|
|
}
|
|
|
|
mod peripherals {
|
|
pub use super::pac::*;
|
|
|
|
crate::create_peripherals! {
|
|
I2C0,
|
|
RNG,
|
|
SHA,
|
|
SPI0,
|
|
SPI1,
|
|
SPI2,
|
|
SYSTIMER,
|
|
UART0,
|
|
UART1,
|
|
SYSTEM,
|
|
LEDC,
|
|
}
|
|
}
|