Skip to content

Commit

Permalink
style: Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Sep 18, 2024
1 parent f78e9cb commit 84ecf45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/clock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ pub trait Clock {
pub enum CpuClock {
/// 80MHz CPU clock
#[cfg(not(esp32h2))]
Clock80MHz = 80,
Clock80MHz = 80,

/// 96MHz CPU clock
#[cfg(esp32h2)]
Clock96MHz = 96,
Clock96MHz = 96,

/// 120MHz CPU clock
#[cfg(esp32c2)]
Expand Down
3 changes: 2 additions & 1 deletion esp-hal/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
//! This module contains the initial configuation for the system.
//!
//! ## Configuration
//! In the esp_hal::init method, we can configure different parameters for the system:
//! In the esp_hal::init method, we can configure different parameters for the
//! system:
//! - CPU clock configuration.
//! - Watchdog configuration.
//!
Expand Down
3 changes: 2 additions & 1 deletion esp-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,8 @@ use crate::{

/// Initialize the system.
///
/// This function sets up the CPU clock and watchdog, then, returns the peripherals and clocks.
/// This function sets up the CPU clock and watchdog, then, returns the
/// peripherals and clocks.
pub fn init(config: Config) -> Peripherals {
let mut peripherals = Peripherals::take();

Expand Down

0 comments on commit 84ecf45

Please sign in to comment.