esp_hal/analog/mod.rs
1//! # Analog Peripherals
2//!
3//! ## Overview
4//! The `analog` module provides drivers for the various analog peripherals
5//! available on the device. For more information about a peripheral driver,
6//! please refer to the relevant module documentation.
7
8#[cfg(adc_driver_supported)]
9pub mod adc;
10#[cfg(dac_driver_supported)]
11pub mod dac;
12
13// DAC channels share control registers. On ESP32-S2, ADC initialization
14// also modifies SAR_AMP_CTRL3.
15#[cfg(dac_driver_supported)]
16static ADC_DAC_LOCK: esp_sync::RawMutex = esp_sync::RawMutex::new();