esp-hal/esp-hal-common/src/soc/esp32c3/peripherals.rs
Jesse Braham 0b26d3851c 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-07-04 11:47:21 +01:00

49 lines
973 B
Rust

//! Peripheral instance singletons
use esp32c3 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,
APB_SARADC => true,
ASSIST_DEBUG => true,
DMA => true,
DS => true,
EFUSE => true,
EXTMEM => true,
GPIO => true,
GPIO_SD => true,
HMAC => true,
I2C0 => true,
I2S0 => true,
INTERRUPT_CORE0 => true,
IO_MUX => true,
LEDC => true,
RMT => true,
RNG => true,
RSA => true,
RTC_CNTL => true,
SENSITIVE => true,
SHA => true,
SPI0 => true,
SPI1 => true,
SPI2 => true,
SYSTEM => true,
SYSTIMER => true,
TIMG0 => true,
TIMG1 => true,
TWAI0 => true,
UART0 => true,
UART1 => true,
UHCI0 => true,
UHCI1 => true,
USB_DEVICE => true,
XTS_AES => true,
RADIO => false
}