esp-hal/esp-hal-common/src/soc/esp32/peripherals.rs
Jesse Braham 5af8b6387a
Clean up re-exports and make small improvements to documentation (#607)
* Create issue_handler.yml

* No longer re-export `embedded-hal`, hide exported macros in documentation

* Add simple package-level documentation for each HAL package

* Clean up/simplify re-exports

* Fix the examples that I broke

* Ensure top-level modules/types/functions have doc comments

* Update CHANGELOG

* Re-export the `soc::psram` module where available

---------

Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com>
2023-06-22 06:46:50 -07:00

57 lines
1.1 KiB
Rust

//! Peripheral instance singletons
use esp32 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_CTRL => true,
BB => true,
DPORT => true,
EFUSE => true,
FLASH_ENCRYPTION => true,
FRC_TIMER => true,
GPIO => true,
GPIO_SD => true,
HINF => true,
I2C0 => true,
I2C1 => true,
I2S0 => true,
I2S1 => true,
IO_MUX => true,
LEDC => true,
MCPWM0 => true,
MCPWM1 => true,
NRX => true,
PCNT => true,
RMT => true,
RNG => true,
RSA => true,
RTC_CNTL => true,
RTC_IO => true,
RTC_I2C => true,
SDMMC => true,
SENS => true,
SHA => true,
SLC => true,
SLCHOST => true,
SPI0 => true,
SPI1 => true,
SPI2 => true,
SPI3 => true,
TIMG0 => true,
TIMG1 => true,
TWAI0 => true,
UART0 => true,
UART1 => true,
UART2 => true,
UHCI0 => true,
UHCI1 => true,
RADIO => false,
PSRAM => false,
}