avr_config/
lib.rs

1//! Foundational crate for retrieving details about the target AVR being compiled for.
2//!
3//! This crate currently exposes the CPU frequency that is being configured for.
4//!
5//! # The `AVR_CPU_FREQUENCY_HZ` environment variable
6//!
7//! All crates that depend on this crate (with the `cpu-frequency` feature enabled) require `$AVR_CPU_FREQUENCY_HZ` when targeting
8//! AVR. The frequency will then be available in the `CPU_FREQUENCY_HZ` constant.
9//!
10//! It is not necessary to set this variable when AVR is not being targeted, for example,
11//! when running integration tests on the host machine.
12
13#![no_std]
14
15#[cfg(feature = "cpu-frequency")]
16mod cpu_frequency;
17
18#[cfg(feature = "cpu-frequency")]
19pub use self::cpu_frequency::*;