drivers: can: remove CAN_HAS_RX_TIMESTAMP Kconfig helper
Remove the CAN_HAS_RX_TIMESTAMP Kconfig helper symbol in order to allow enabling CAN RX timestamps in the API regardless of driver support. This simplifies application prj.conf settings across board supporting/not supporting RX timestamps considerably. CAN drivers not supporting RX timestamps already initialize the timestamp to 0 for received frames. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
d9662d1706
commit
f1a7ec96db
5 changed files with 1 additions and 11 deletions
|
@ -60,11 +60,6 @@ config CAN_HAS_CANFD
|
||||||
help
|
help
|
||||||
driver supports CAN-FD
|
driver supports CAN-FD
|
||||||
|
|
||||||
config CAN_HAS_RX_TIMESTAMP
|
|
||||||
bool
|
|
||||||
help
|
|
||||||
driver supports RX timestamps
|
|
||||||
|
|
||||||
config CAN_FD_MODE
|
config CAN_FD_MODE
|
||||||
bool "CAN-FD"
|
bool "CAN-FD"
|
||||||
default y
|
default y
|
||||||
|
@ -74,11 +69,10 @@ config CAN_FD_MODE
|
||||||
|
|
||||||
config CAN_RX_TIMESTAMP
|
config CAN_RX_TIMESTAMP
|
||||||
bool "Receiving timestamps"
|
bool "Receiving timestamps"
|
||||||
depends on CAN_HAS_RX_TIMESTAMP
|
|
||||||
help
|
help
|
||||||
This option enables a timestamp value of the CAN free running timer.
|
This option enables a timestamp value of the CAN free running timer.
|
||||||
The value is incremented every bit time and starts when the controller
|
The value is incremented every bit time and starts when the controller
|
||||||
is initialized.
|
is initialized. Not all CAN controllers support timestamps.
|
||||||
|
|
||||||
config CAN_AUTO_BUS_OFF_RECOVERY
|
config CAN_AUTO_BUS_OFF_RECOVERY
|
||||||
bool "Automatic recovery from bus-off"
|
bool "Automatic recovery from bus-off"
|
||||||
|
|
|
@ -8,6 +8,5 @@ config CAN_FAKE
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_ZEPHYR_FAKE_CAN_ENABLED
|
depends on DT_HAS_ZEPHYR_FAKE_CAN_ENABLED
|
||||||
select CAN_HAS_CANFD
|
select CAN_HAS_CANFD
|
||||||
select CAN_HAS_RX_TIMESTAMP
|
|
||||||
help
|
help
|
||||||
Enable support for the FFF-based fake CAN driver.
|
Enable support for the FFF-based fake CAN driver.
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
config CAN_MCAN
|
config CAN_MCAN
|
||||||
bool
|
bool
|
||||||
select CAN_HAS_CANFD
|
select CAN_HAS_CANFD
|
||||||
select CAN_HAS_RX_TIMESTAMP
|
|
||||||
help
|
help
|
||||||
Enable Bosch m_can driver.
|
Enable Bosch m_can driver.
|
||||||
This driver supports the Bosch m_can IP. This IP is built into the
|
This driver supports the Bosch m_can IP. This IP is built into the
|
||||||
|
|
|
@ -8,7 +8,6 @@ config CAN_MCUX_FLEXCAN
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_NXP_KINETIS_FLEXCAN_ENABLED
|
depends on DT_HAS_NXP_KINETIS_FLEXCAN_ENABLED
|
||||||
depends on CLOCK_CONTROL
|
depends on CLOCK_CONTROL
|
||||||
select CAN_HAS_RX_TIMESTAMP
|
|
||||||
help
|
help
|
||||||
Enable support for mcux flexcan driver.
|
Enable support for mcux flexcan driver.
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ config CAN_STM32
|
||||||
bool "STM32 CAN Driver"
|
bool "STM32 CAN Driver"
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_ST_STM32_CAN_ENABLED
|
depends on DT_HAS_ST_STM32_CAN_ENABLED
|
||||||
select CAN_HAS_RX_TIMESTAMP
|
|
||||||
help
|
help
|
||||||
Enable STM32 CAN Driver.
|
Enable STM32 CAN Driver.
|
||||||
Tested on STM32F0, STM32F4, STM32L4 and STM32F7 series.
|
Tested on STM32F0, STM32F4, STM32L4 and STM32F7 series.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue