stm32h7\stm32_fdcan_sock: reserve space for timeval struct in the intermediate storage of tx and rx CAN frames when timestamp is enabled

This commit is contained in:
Rajvinder Kaur 2022-09-26 14:06:58 -04:00 committed by Alan Carvalho de Assis
parent aa51629bd2
commit 2e1c522a79

View File

@ -43,7 +43,7 @@
#include <nuttx/net/can.h>
#include <netpacket/can.h>
#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFIG_NET_TIMESTAMP)
#include <sys/time.h>
#endif
@ -112,7 +112,7 @@
#define POOL_SIZE 1
#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
#if defined(CONFIG_NET_CAN_RAW_TX_DEADLINE) || defined(CONFIG_NET_TIMESTAMP)
#define MSG_DATA sizeof(struct timeval)
#else
#define MSG_DATA 0