Skip to content

Commit

Permalink
fix: Doc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Sep 18, 2024
1 parent 84ecf45 commit 30feb87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion esp-hal/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@
//! ### Default initialization
//!
//! ```rust, no_run
#![doc = crate::before_snippet!()]
//! let peripherals = esp_hal::init(esp_hal::config::Config::default());
//! # }
//! ```
//!
//! ### Custom initialization
//!
//! ```rust, no_run
#![doc = crate::before_snippet!()]
//! let mut config = esp_hal::config::Config::default();
//! config.cpu_clock = CpuClock::max()
//! config.cpu_clock = CpuClock::max();
//! config.watchdog.rwdt =
//! esp_hal::config::WatchdogStatus::Enabled(fugit::MicrosDurationU64::millis(1000 as u64));
//! let peripherals = esp_hal::init(config);
//! # }
//! ```

use crate::clock::CpuClock;
Expand Down

0 comments on commit 30feb87

Please sign in to comment.