blob: 06460bda8b1ce1916d9e8e3063a6d92cb87eb445 [file] [edit]
# Copyright (c) 2026, Realtek Semiconductor Corporation
# SPDX-License-Identifier: Apache-2.0
config CAN_REALTEK_BEE
bool "CAN driver for Realtek Bee series SoC"
default y
depends on DT_HAS_REALTEK_BEE_CAN_ENABLED
select HAL_REALTEK_BEE_CAN
select PINCTRL
help
This option enables the CAN driver for Realtek Bee SoCs.
if CAN_REALTEK_BEE
config CAN_REALTEK_BEE_TX_MSG_BUF_NUM
int "Number of message buffers used for tx"
default 6
range 0 15
help
Defines the number of message buffers used for tx in the application.
The tx and rx share 16 message buffers in total.
Each rx message buffer can filter one standard or extended ID.
The following equation determines the maximum total number for tx and rx:
CAN_REALTEK_BEE_TX_MSG_BUF_NUM + CAN_REALTEK_BEE_RX_MSG_BUF_NUM <= 16
config CAN_REALTEK_BEE_RX_MSG_BUF_NUM
int "Number of message buffers used for rx"
default 10
range 0 15
help
Defines the number of message buffers used for rx in the application.
The tx and rx share 16 message buffers in total.
Each rx message buffer can filter one standard or extended ID.
The following equation determines the maximum total number for tx and rx:
CAN_REALTEK_BEE_TX_MSG_BUF_NUM + CAN_REALTEK_BEE_RX_MSG_BUF_NUM <= 16
endif # CAN_REALTEK_BEE