Skip to content
Browse files

tests: drivers: can: api: define DT_CAN_1_NAME if not defined

Define DT_CAN_1_NAME as an empty string if it is not defined.
This is useful for buildtest where no HW is available.

Signed-off-by: Alexander Wachter <>
  • Loading branch information...
alexanderwachter authored and nashif committed Mar 17, 2019
1 parent 54d065c commit f1b89eda8ec09a8c8bfa174212a7bd65a0831e7c
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/drivers/can/api/src/main.c
@@ -40,6 +40,10 @@
#define TEST_CAN_EXT_MASK_ID 0x1555555A

#ifndef DT_CAN_1_NAME
#define DT_CAN_1_NAME ""

CAN_DEFINE_MSGQ(can_msgq, 5);
struct k_sem rx_isr_sem;

0 comments on commit f1b89ed

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