tests/can_trx: add ncv7356 build
This commit is contained in:
parent
42c5c40da9
commit
cb15c86024
@ -10,10 +10,14 @@ USEMODULE += ps
|
|||||||
|
|
||||||
USEMODULE += can_trx
|
USEMODULE += can_trx
|
||||||
|
|
||||||
TRX_TO_BUILD ?= tja1042
|
TRX_TO_BUILD ?= tja1042 ncv7356
|
||||||
|
|
||||||
ifneq (,$(filter tja1042,$(TRX_TO_BUILD)))
|
ifneq (,$(filter tja1042,$(TRX_TO_BUILD)))
|
||||||
USEMODULE += tja1042
|
USEMODULE += tja1042
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter ncv7356,$(TRX_TO_BUILD)))
|
||||||
|
USEMODULE += ncv7356
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -32,9 +32,19 @@ static can_trx_t tja1042 = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MODULE_NCV7356
|
||||||
|
#include "ncv7356.h"
|
||||||
|
static can_trx_t ncv7356 = {
|
||||||
|
.driver = &ncv7356_driver,
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static can_trx_t *devs[] = {
|
static can_trx_t *devs[] = {
|
||||||
#ifdef MODULE_TJA1042
|
#ifdef MODULE_TJA1042
|
||||||
&tja1042,
|
&tja1042,
|
||||||
|
#endif
|
||||||
|
#ifdef MODULE_NCV7356
|
||||||
|
&ncv7356,
|
||||||
#endif
|
#endif
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user