Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cpu/stm32/periph/fdcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@
.tseg1_max = 256,
.tseg2_min = 1,
.tseg2_max = 128,
.sjw_max = 1,
.sjw_max = 128,
.brp_min = 1,
.brp_max = 1024,
.brp_max = 512,
.brp_inc = 1,
};

/* FDCAN data bittiming */
static const struct can_bittiming_const fd_data_bittiming_const = {
.tseg1_min = 1,
.tseg1_max = 16,
.tseg1_max = 31,
.tseg2_min = 1,
.tseg2_max = 8,
.sjw_max = 1,
.tseg2_max = 16,
.sjw_max = 16,
.brp_min = 1,
.brp_max = 32,
.brp_inc = 1,
Expand Down Expand Up @@ -1408,7 +1408,7 @@
&& !(filter->can_mask & ~CAN_SFF_MASK)))) { /* or the filter is standard */
can_mode_t mode = get_mode(can);
set_mode(can, MODE_INIT);
res = set_filter(can, filter->can_id, filter->can_mask, i, i % FDCAN_STM32_RX_MAILBOXES);

Check warning on line 1411 in cpu/stm32/periph/fdcan.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
set_mode(can, mode);
if (res) {
return -EINVAL;
Expand Down