diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<pac::TIMER6>::timer6(p.TIMER6, Hertz(1), &mut rcu); + let timer = Timer::<pac::TIMER6>::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); |