esp-hal/esp-hal-common/src/peripherals/esp32s2.rs
Scott Mabin c7f420199e
Peripheral ref/systimer (#302)
* impl Peripheral for SYSTIMER

* PeripheralRef the Systimer driver
2022-12-13 06:52:51 -08:00

63 lines
771 B
Rust

pub use pac::Interrupt;
use crate::pac; // We need to export this for users to use
crate::peripherals! {
AES,
APB_SARADC,
DEDICATED_GPIO,
DS,
EFUSE,
EXTMEM,
GPIO,
GPIO_SD,
HMAC,
I2C0,
I2C1,
I2S,
INTERRUPT,
IO_MUX,
LEDC,
PCNT,
PMS,
RMT,
RNG,
RSA,
RTCIO,
RTC_CNTL,
RTC_I2C,
SENS,
SHA,
SPI0,
SPI1,
SPI2,
SPI3,
SPI4,
SYSTEM,
SYSTIMER,
TIMG0,
TIMG1,
TWAI,
UART0,
UART1,
UHCI0,
USB0,
USB_WRAP,
XTS_AES,
}
mod peripherals {
pub use super::pac::*;
crate::create_peripherals! {
UART0,
UART1,
SPI0,
SPI1,
SPI2,
SPI3,
SPI4,
SYSTIMER,
}
}