diff --git a/arch/arm/src/s32k1xx/s32k1xx_flexcan.c b/arch/arm/src/s32k1xx/s32k1xx_flexcan.c index 7e5bceae8d..7bc9a7c59c 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_flexcan.c +++ b/arch/arm/src/s32k1xx/s32k1xx_flexcan.c @@ -90,7 +90,11 @@ #define POOL_SIZE 1 +#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFIG_NET_TIMESTAMP) #define MSG_DATA sizeof(struct timeval) +#else +#define MSG_DATA 0 +#endif /* CAN bit timing values */ #define CLK_FREQ 80000000