diff options
author | Brian Cully <bjc@kublai.com> | 2022-08-08 12:33:58 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-08-08 12:33:58 -0400 |
commit | 70adaaca5e7618969bf3b8ab548eb1f15dda5126 (patch) | |
tree | a8f470e93380f72b958deca23b785b827d55942b /src/main.rs | |
parent | cb0d9c9c38945404272b89c3c6d8166c194a01f8 (diff) | |
download | luchie-70adaaca5e7618969bf3b8ab548eb1f15dda5126.tar.gz luchie-70adaaca5e7618969bf3b8ab548eb1f15dda5126.zip |
imports
Diffstat (limited to 'src/main.rs')
-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); |