From 4dbb717c7281682e5642f3b7a968e3beeb3820c0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Theou Date: Tue, 9 Jan 2024 08:22:04 -1000 Subject: [PATCH] fdcan: add missing pins for FDCAN1 From DS12712 Rev 5 Signed-off-by: Jean-Baptiste Theou --- src/can.rs | 6 ++++-- src/fdcan.rs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/can.rs b/src/can.rs index b70eb04d..071b8c89 100644 --- a/src/can.rs +++ b/src/can.rs @@ -92,10 +92,10 @@ mod fdcan1 { use super::sealed; use super::{Can, CanExt}; use crate::gpio::{ - gpioa::{PA11, PA12}, + gpioa::{PA10, PA11, PA12, PA9}, gpiob::{PB8, PB9}, gpiod::{PD0, PD1}, - AF9, + AF11, AF9, }; use crate::stm32::FDCAN1; use fdcan; @@ -104,11 +104,13 @@ mod fdcan1 { pins! { FDCAN1 => ( tx: [ + PA10, PA12, PB9, PD1, ], rx: [ + PA9, PA11, PB8, PD0, diff --git a/src/fdcan.rs b/src/fdcan.rs index 24e42088..da500f42 100644 --- a/src/fdcan.rs +++ b/src/fdcan.rs @@ -1673,10 +1673,10 @@ mod impls { use crate::fdcan; use crate::fdcan::message_ram; use crate::gpio::{ - gpioa::{PA11, PA12}, + gpioa::{PA9, PA10, PA11, PA12}, gpiob::{PB8, PB9}, gpiod::{PD0, PD1}, - AF9, + AF9,AF11 }; use crate::stm32; use crate::stm32::FDCAN1; @@ -1685,11 +1685,13 @@ mod impls { pins! { FDCAN1 => ( tx: [ + PA10, PA12, PB9, PD1, ], rx: [ + PA9, PA11, PB8, PD0,