summaryrefslogtreecommitdiff
path: root/firmware/rust
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2022-07-22 21:56:00 +0200
committerMarc Poulhiès <dkm@kataplop.net>2022-07-22 22:13:01 +0200
commit4061ed4aab826858aad3c3410dc8920b32d6da6d (patch)
treeb763394d994e9a7f4e38ed4cf3f15fc44a28532a /firmware/rust
parentea57bd91c369560a1bc9bb8443acbecf717a3c0f (diff)
Update GPIO for rev2 board
Diffstat (limited to 'firmware/rust')
-rw-r--r--firmware/rust/src/main.rs8
1 files changed, 4 insertions, 4 deletions
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(),