Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Dec 27, 2023
1 parent 338b9fc commit 8d64f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/teensy4_blinky/examples/with_logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ mod app {

// Initialize Monotonic
gpt1.set_clock_source(hal::gpt::ClockSource::PeripheralClock);
let gpt1_mono_token = rtic_monotonics::create_imxrt_gpt1_token!();
Mono::start(board::PERCLK_FREQUENCY, gpt1.release(), gpt1_mono_token);
Mono::start(gpt1.release());

// Setup LED
let led = board::led(&mut gpio2, pins.p13);
Expand Down
2 changes: 1 addition & 1 deletion examples/teensy4_blinky/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn panic(_: &::core::panic::PanicInfo) -> ! {
use teensy4_bsp::{board, hal};

use rtic_monotonics::imxrt::prelude::*;
setup_imxrt_gpt1_mono!(Mono, board::PERCLK_FREQUENCY);
imxrt_gpt1_monotonic!(Mono, board::PERCLK_FREQUENCY);

#[rtic::app(device = teensy4_bsp, dispatchers = [LPSPI1])]
mod app {
Expand Down

0 comments on commit 8d64f3d

Please sign in to comment.