Skip to content

Commit 4575585

Browse files
committed
cpu/stm32/periph/fdcan: reread bittiming max values
1 parent 90d7b0b commit 4575585

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpu/stm32/periph/fdcan.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@ static const struct can_bittiming_const bittiming_const = {
8080
.tseg1_max = 256,
8181
.tseg2_min = 1,
8282
.tseg2_max = 128,
83-
.sjw_max = 1,
83+
.sjw_max = 128,
8484
.brp_min = 1,
85-
.brp_max = 1024,
85+
.brp_max = 512,
8686
.brp_inc = 1,
8787
};
8888

8989
/* FDCAN data bittiming */
9090
static const struct can_bittiming_const fd_data_bittiming_const = {
9191
.tseg1_min = 1,
92-
.tseg1_max = 16,
92+
.tseg1_max = 31,
9393
.tseg2_min = 1,
94-
.tseg2_max = 8,
95-
.sjw_max = 1,
94+
.tseg2_max = 16,
95+
.sjw_max = 16,
9696
.brp_min = 1,
9797
.brp_max = 32,
9898
.brp_inc = 1,

0 commit comments

Comments
 (0)