LPC1549 CAN compile error: #if with no expression

11 Jun 2018

Hello, I am using an LPC1549 with mbed library version 160 (as in mbed.h) and I get the following errors on compiling:

mbed/hal/can_api.h:24:15: error: #if with no expression

#if DEVICE_CAN

mbed/hal/can_helper.h:22:15: error: #if with no expression

#if DEVICE_CAN

Greetings, Andy

13 Jun 2018

Hi,

I could not reproduce the problem. Can you please publish your test code?

15 Jun 2018

The issue resolved itself. I mistakingly defined DEVICE_CAN the wrong way, simply writing #define DEVICE_CAN and not #define DEVICE_CAN 1.

Thank you for looking into it though.

Andy