Jesse Braham 220f812625
Peripheral ref/sha (#312)
* Add SHA to list of peripherals to be created

* Refactor SHA peripheral to use PeripheralRef

* Update SHA examples to get them building again
2022-12-14 12:19:53 +00:00

71 lines
862 B
Rust

pub use pac::Interrupt;
use crate::pac; // We need to export this for users to use
crate::peripherals! {
AES,
APB_CTRL,
BB,
DPORT,
EFUSE,
FLASH_ENCRYPTION,
FRC_TIMER,
GPIO,
GPIO_SD,
HINF,
I2C0,
I2C1,
I2S0,
I2S1,
IO_MUX,
LEDC,
PWM0,
PWM1,
NRX,
PCNT,
RMT,
RNG,
RSA,
RTC_CNTL,
RTCIO,
RTC_I2C,
SDMMC,
SENS,
SHA,
SLC,
SLCHOST,
SPI0,
SPI1,
SPI2,
SPI3,
TIMG0,
TIMG1,
TWAI,
UART0,
UART1,
UART2,
UHCI0,
UHCI1,
}
mod peripherals {
pub use super::pac::*;
crate::create_peripherals! {
I2C0,
I2C1,
RNG,
SHA,
SPI0,
SPI1,
SPI2,
SPI3,
UART0,
UART1,
UART2,
DPORT,
LEDC,
RMT,
}
}