Skip to content

Commit

Permalink
fdcan: add missing pins for FDCAN1
Browse files Browse the repository at this point in the history
From DS12712 Rev 5

Signed-off-by: Jean-Baptiste Theou <[email protected]>
  • Loading branch information
jbtheou committed Jan 22, 2024
1 parent fd7f03a commit 4dbb717
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/can.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -104,11 +104,13 @@ mod fdcan1 {
pins! {
FDCAN1 => (
tx: [
PA10<AF9>,
PA12<AF9>,
PB9<AF9>,
PD1<AF9>,
],
rx: [
PA9<AF11>,
PA11<AF9>,
PB8<AF9>,
PD0<AF9>,
Expand Down
6 changes: 4 additions & 2 deletions src/fdcan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -1685,11 +1685,13 @@ mod impls {
pins! {
FDCAN1 => (
tx: [
PA10<AF9>,
PA12<AF9>,
PB9<AF9>,
PD1<AF9>,
],
rx: [
PA9<AF11>,
PA11<AF9>,
PB8<AF9>,
PD0<AF9>,
Expand Down

0 comments on commit 4dbb717

Please sign in to comment.