esp-hal/esp-hal-common/src/peripherals/esp32s2.rs
Scott Mabin 80996e3b6e
Add RADIO peripheral (#397)
* Allow the creation of peripherals _not_ from the pac in the peripherals macro

* Add RADIO peripheral

- Remove DerefMut hack, replace with proper Sealed impls
- Add RADIO peripheral for all chips

* Add RADIO peripheral with split method into each radio feature
2023-02-21 07:08:08 -08:00

52 lines
1019 B
Rust

use esp32s2 as pac;
// We need to export this for users to use
pub use pac::Interrupt;
// We need to export this in the hal for the drivers to use
pub(crate) use self::peripherals::*;
crate::peripherals! {
AES => true,
APB_SARADC => true,
DEDICATED_GPIO => true,
DS => true,
EFUSE => true,
EXTMEM => true,
GPIO => true,
GPIO_SD => true,
HMAC => true,
I2C0 => true,
I2C1 => true,
I2S => true,
INTERRUPT_CORE0 => true,
IO_MUX => true,
LEDC => true,
PCNT => true,
PMS => true,
RMT => true,
RNG => true,
RSA => true,
RTCIO => true,
RTC_CNTL => true,
RTC_I2C => true,
SENS => true,
SHA => true,
SPI0 => true,
SPI1 => true,
SPI2 => true,
SPI3 => true,
SPI4 => true,
SYSTEM => true,
SYSTIMER => true,
TIMG0 => true,
TIMG1 => true,
TWAI => true,
UART0 => true,
UART1 => true,
UHCI0 => true,
USB0 => true,
USB_WRAP => true,
XTS_AES => true,
RADIO => false
}