mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
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:
committed by
Alan Carvalho de Assis
parent
aa51629bd2
commit
2e1c522a79
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user