esp-hal/esp-hal-common/src/peripherals/esp32c2.rs
Scott Mabin cfe83827cf
PeripheralRef/spi (#299)
* Add missing UART instances

* Add SPI to list of peripherals to be created

* Refactor SPI driver to use PeripheralRef
2022-12-13 00:36:18 -08:00

44 lines
570 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! {
UART0,
UART1,
SPI0,
SPI1,
SPI2,
}
}