Skip to content

Commit

Permalink
etm doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Nov 21, 2024
1 parent b8e29a9 commit 665ce9e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions esp-hal/src/timer/systimer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,20 +724,7 @@ pub mod etm {
//! The system timer can generate the following ETM events:
//! - SYSTIMER_EVT_CNT_CMPx: Indicates the alarm pulses generated by
//! COMPx
//!
//! ## Example
//! ```rust, no_run
#![doc = crate::before_snippet!()]
//! # use esp_hal::timer::systimer::{etm::Event, SystemTimer};
//! # use fugit::ExtU32;
//! let syst = SystemTimer::new(peripherals.SYSTIMER);
//! let syst_alarms = syst.split();
//! let mut alarm0 = syst_alarms.alarm0.into_periodic();
//! alarm0.set_period(1u32.secs());
//!
//! let timer_event = Event::new(&mut alarm0);
//! # }
//! ```
// FIXME(mabez)

use super::*;

Expand Down

0 comments on commit 665ce9e

Please sign in to comment.