Skip to content

Commit cf43d8d

Browse files
thenguyenyfKhiemNguyenT
authored andcommitted
hal: renesas: ra: update r_canfd configuration
Update new values ​​for AFL rule count configuration based on Zephyr CAN driver update Signed-off-by: The Nguyen <[email protected]>
1 parent 1ec8891 commit cf43d8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zephyr/ra/ra_cfg/fsp_cfg/r_canfd_cfg.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ extern "C" {
1212

1313
#define CANFD_CFG_PARAM_CHECKING_ENABLE ((BSP_CFG_PARAM_CHECKING_ENABLE))
1414

15-
#define CANFD_CFG_AFL_CH0_RULE_NUM (DT_PROP_OR(DT_NODELABEL(canfd0), rx_max_filters, 0) * 2)
16-
#define CANFD_CFG_AFL_CH1_RULE_NUM (DT_PROP_OR(DT_NODELABEL(canfd1), rx_max_filters, 0) * 2)
15+
#define CANFD_CFG_AFL_CH0_RULE_NUM (DT_PROP_OR(DT_NODELABEL(canfd0), rx_max_filters, 0))
16+
#define CANFD_CFG_AFL_CH1_RULE_NUM (DT_PROP_OR(DT_NODELABEL(canfd1), rx_max_filters, 0))
1717

18-
#define CANFD_CFG_GLOBAL_ERROR_CH ((0U))
18+
#define CANFD_CFG_GLOBAL_ERROR_CH (DT_PROP(DT_INST(0, renesas_ra_canfd), channel))
1919

2020
#define CANFD_CFG_FD_PROTOCOL_EXCEPTION (0)
2121

0 commit comments

Comments
 (0)