From 4061ed4aab826858aad3c3410dc8920b32d6da6d Mon Sep 17 00:00:00 2001 From: Marc Poulhiès Date: Fri, 22 Jul 2022 21:56:00 +0200 Subject: Update GPIO for rev2 board --- firmware/rust/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/rust') diff --git a/firmware/rust/src/main.rs b/firmware/rust/src/main.rs index dab7512..e3f301b 100644 --- a/firmware/rust/src/main.rs +++ b/firmware/rust/src/main.rs @@ -394,19 +394,19 @@ mod app { let mut timer = timers::Timer::tim3(c.device.TIM3, 1.khz(), &mut rcc); timer.listen(timers::Event::TimeOut); - let pa15 = gpioa.pa15; - let pa1 = gpioa.pa1; let pa0 = gpioa.pa0; + let pa10 = gpioa.pa10; + let pa15 = gpioa.pa15; let matrix = cortex_m::interrupt::free(move |cs| { Matrix::new( [ pa0.into_pull_up_input(cs).downgrade(), - pa1.into_pull_up_input(cs).downgrade(), - gpiob.pb13.into_pull_up_input(cs).downgrade(), gpiob.pb12.into_pull_up_input(cs).downgrade(), + gpiob.pb13.into_pull_up_input(cs).downgrade(), gpiob.pb14.into_pull_up_input(cs).downgrade(), gpiob.pb15.into_pull_up_input(cs).downgrade(), + pa10.into_pull_up_input(cs).downgrade(), pa15.into_pull_up_input(cs).downgrade(), gpiob.pb3.into_pull_up_input(cs).downgrade(), gpiob.pb4.into_pull_up_input(cs).downgrade(), -- cgit v1.2.3