diff --git a/tests/can_trx/Makefile b/tests/can_trx/Makefile index 7e4331e898..d7e734c7ee 100644 --- a/tests/can_trx/Makefile +++ b/tests/can_trx/Makefile @@ -10,10 +10,14 @@ USEMODULE += ps USEMODULE += can_trx -TRX_TO_BUILD ?= tja1042 +TRX_TO_BUILD ?= tja1042 ncv7356 ifneq (,$(filter tja1042,$(TRX_TO_BUILD))) - USEMODULE += tja1042 + USEMODULE += tja1042 +endif + +ifneq (,$(filter ncv7356,$(TRX_TO_BUILD))) + USEMODULE += ncv7356 endif include $(RIOTBASE)/Makefile.include diff --git a/tests/can_trx/main.c b/tests/can_trx/main.c index ed61126292..b1e410d864 100644 --- a/tests/can_trx/main.c +++ b/tests/can_trx/main.c @@ -32,9 +32,19 @@ static can_trx_t tja1042 = { }; #endif +#ifdef MODULE_NCV7356 +#include "ncv7356.h" +static can_trx_t ncv7356 = { + .driver = &ncv7356_driver, +}; +#endif + static can_trx_t *devs[] = { #ifdef MODULE_TJA1042 &tja1042, +#endif +#ifdef MODULE_NCV7356 + &ncv7356, #endif NULL, };