zephyr/tests/drivers/can/timing/Kconfig
Henrik Brix Andersen 9f174ec452 tests: drivers: can: timing: add tests for all CiA recommended bitrates
Add tests for all CAN bitrates recommended by CAN in Automation (CiA). The
newly added bitrate tests are guarded by new, local Kconfig option
(CONFIG_TEST_ALL_BITRATES) to avoid breaking existing board tests.

Some boards may need adjustments to their CAN core clock in order to pass
the newly added tests. Once a board is confirmed to meet these additional
checks, this Kconfig can be enabled for that board to avoid future
regressions.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-19 09:47:24 +01:00

41 lines
1.1 KiB
Plaintext

# Copyright (c) 2024 Vestas Wind Systems A/S
# SPDX-License-Identifier: Apache-2.0
mainmenu "CAN timing test"
config TEST_ALL_BITRATES
bool "Test all CAN in Automation (CiA) recommended bitrates"
help
Enable test of all bitrates recommended by CAN in Automation (CiA). Not all CAN
controllers can meet all of the bitrates listed below, and some board configurations may
impose limits on which bitrates can be met due to limitations in the CAN core clock
frequency selection.
CiA 301 lists the following nominal bitrates as recommended:
- 10 kbit/s
- 20 kbit/s
- 50 kbit/s
- 125 kbit/s
- 250 kbit/s
- 500 kbit/s
- 800 kbit/s
- 1 Mbit/s
CiA 601-2 lists the following exemplary CAN FD data phase bitrates:
- 1.0 Mbit/s
- 2.0 Mbit/s
- 4.0 Mbit/s
- 5.0 Mbit/s
- 8.0 Mbit/s
CiA 601-3 recommends the following CAN FD core clock frequencies for good node
interoperability. The higher the frequency, the better:
- 20 MHz
- 40 MHz
- 80 MHz
If this option is not enabled, the tests will be limited to a historical, safe set of CAN
bitrates.
source "Kconfig.zephyr"