Skip to content
Permalink
Browse files

tests: drivers: can: api: add support for CAN_0

Add support for using CAN_0 interface in the CAN API tests.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information...
henrikbrixandersen authored and MaureenHelm committed Jun 16, 2019
1 parent 64a9a04 commit d2f5a2c1dcb56995964999c4411b2f5f3e98ac58
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/drivers/can/api/src/main.c
@@ -43,6 +43,8 @@

#if defined(CONFIG_CAN_LOOPBACK_DEV_NAME)
#define CAN_DEVICE_NAME CONFIG_CAN_LOOPBACK_DEV_NAME
#elif defined(DT_CAN_0_NAME)
#define CAN_DEVICE_NAME DT_CAN_0_NAME
#elif defined(DT_CAN_1_NAME)
#define CAN_DEVICE_NAME DT_CAN_1_NAME
#else

0 comments on commit d2f5a2c

Please sign in to comment.
You can’t perform that action at this time.