From 70adaaca5e7618969bf3b8ab548eb1f15dda5126 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 8 Aug 2022 12:33:58 -0400 Subject: imports --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 48fffea..2b0bde2 100755 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ use gd32vf103xx_hal::{ rcu::RcuExt, serial::Serial, time::Hertz, - timer, + timer::Timer, }; use riscv::asm::wfi; use riscv_rt::entry; @@ -38,7 +38,7 @@ fn main(_hartid: usize) -> ! { let mut rcu = p.RCU.configure().freeze(); let mut afio = p.AFIO.constrain(&mut rcu); - let timer = timer::Timer::::timer6(p.TIMER6, Hertz(1), &mut rcu); + let timer = Timer::::timer6(p.TIMER6, Hertz(1), &mut rcu); let gpioa = p.GPIOA.split(&mut rcu); let led = LED::new(gpioa.pa7); let mut blink = blink::Task::new(timer, Hertz(5), led); -- cgit v1.2.3