From cb15c8602472aa3ee48c6e4af75c4083418b06a6 Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Thu, 18 Jan 2018 09:53:26 +0100 Subject: [PATCH] tests/can_trx: add ncv7356 build --- tests/can_trx/Makefile | 8 ++++++-- tests/can_trx/main.c | 10 ++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) 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, };