Skip to content

Commit 8446601

Browse files
committed
Add additional filter rule to let standard messages pass through the filter.
1 parent e48879d commit 8446601

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

libraries/Arduino_CAN/src/R7FA6M5_CAN_AFL.c

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@ canfd_afl_entry_t const CANFD0_AFL[CANFD_CFG_AFL_CH0_RULE_NUM] = {
2323
.rx_buffer = (canfd_rx_mb_t) CANFD_RX_MB_0,
2424
.fifo_select_flags = CANFD_RX_FIFO_0,
2525
}
26+
},
27+
{
28+
.id =
29+
{
30+
.id = 0x1FFFFFFF,
31+
.frame_type = CAN_FRAME_TYPE_DATA,
32+
.id_mode = CAN_ID_MODE_STANDARD,
33+
},
34+
.mask =
35+
{
36+
.mask_id = 0,
37+
.mask_frame_type = 1,
38+
.mask_id_mode = 1,
39+
},
40+
.destination =
41+
{
42+
.minimum_dlc = CANFD_MINIMUM_DLC_0,
43+
.rx_buffer = (canfd_rx_mb_t) CANFD_RX_MB_1,
44+
.fifo_select_flags = CANFD_RX_FIFO_1,
45+
}
2646
}
2747
};
2848

@@ -46,6 +66,26 @@ canfd_afl_entry_t const CANFD1_AFL[CANFD_CFG_AFL_CH1_RULE_NUM] = {
4666
.rx_buffer = (canfd_rx_mb_t) CANFD_RX_MB_1,
4767
.fifo_select_flags = CANFD_RX_FIFO_1,
4868
}
69+
},
70+
{
71+
.id =
72+
{
73+
.id = 0x1FFFFFFF,
74+
.frame_type = CAN_FRAME_TYPE_DATA,
75+
.id_mode = CAN_ID_MODE_STANDARD,
76+
},
77+
.mask =
78+
{
79+
.mask_id = 0,
80+
.mask_frame_type = 1,
81+
.mask_id_mode = 1,
82+
},
83+
.destination =
84+
{
85+
.minimum_dlc = CANFD_MINIMUM_DLC_0,
86+
.rx_buffer = (canfd_rx_mb_t) CANFD_RX_MB_1,
87+
.fifo_select_flags = CANFD_RX_FIFO_1,
88+
}
4989
}
5090
};
5191

0 commit comments

Comments
 (0)