Skip to content

Commit

Permalink
tests: drivers: can: api: define DT_CAN_1_NAME if not defined
Browse files Browse the repository at this point in the history
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 <alexander.wachter@student.tugraz.at>
  • Loading branch information
Alexander Wachter authored and nashif committed May 12, 2019
1 parent 54d065c commit f1b89ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/drivers/can/api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
#define TEST_CAN_EXT_MASK_ID 0x1555555A
#define TEST_CAN_EXT_MASK 0x1FFFFFF0

#ifndef DT_CAN_1_NAME
#define DT_CAN_1_NAME ""
#endif

CAN_DEFINE_MSGQ(can_msgq, 5);
struct k_sem rx_isr_sem;

Expand Down

0 comments on commit f1b89ed

Please sign in to comment.