1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00
Gilles DOFFE 0bf08aa89b tests/conn_can: make test support CAN FD
Increase Shell buffer size for 64 bytes payload length of CAN FD frame.
This also implies to increase main thread stack size and especially for
native architectures.
Add two new sub-commands to test_can command:
* fdsend: to send a CAN FD frame
* fdsendrtr: to send a CAN FD RTR frame (payload length = 0).

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:23 +01:00

24 lines
636 B
Makefile

include ../Makefile.drivers_common
FEATURES_OPTIONAL += periph_can
USEMODULE += shell
USEMODULE += can
USEMODULE += isrpipe
include $(RIOTBASE)/Makefile.include
# Loop delay
ifneq (,$(filter fdcan,$(USEMODULE)))
ifneq (1,$(RIOT_CI_BUILD))
# Check your CAN transceiver datasheet to apply the good loop delay in nanoseconds.
# This configuration is mandatory if you are using CAN FD with bitrate switching.
# Can be configured here or through Kconfig
#CFLAGS += -DCONFIG_FDCAN_DEVICE_TRANSCEIVER_LOOP_DELAY=0
# Allow only a default value for CI
else
CFLAGS += -DCONFIG_FDCAN_DEVICE_TRANSCEIVER_LOOP_DELAY=0
endif
endif