esp-hal 1.2.0

Bare-metal HAL for Espressif devices
Documentation
//! # SOC (System-on-Chip) module (ESP32-C3)
//!
//! ## Overview
//!
//! The `SOC` module provides access, functions and structures that are useful
//! for interacting with various system-related peripherals on `ESP32-C3` chip.

crate::unstable_module! {
    pub mod clocks;
    pub mod trng;
}
pub(crate) mod regi2c;

pub(crate) use esp32c3 as pac;

#[cfg(i2s_driver_supported)]
#[cfg_attr(not(feature = "unstable"), allow(unused))]
pub(crate) fn i2s_sclk_frequency() -> u32 {
    clocks::pll_160m_frequency()
}

#[cfg(feature = "rt")]
pub(crate) fn riscv_preinit() {}
pub(crate) fn pre_init() {}