mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
kinetis:flexcan fixed compile error clock_systimespec->clock_systime_timespec
This commit is contained in:
committed by
Xiang Xiao
parent
8f9cd8832d
commit
a907e2ad63
@@ -642,7 +642,7 @@ static int kinetis_transmit(FAR struct kinetis_driver_s *priv)
|
||||
|
||||
#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
|
||||
struct timespec ts;
|
||||
clock_systimespec(&ts);
|
||||
clock_systime_timespec(&ts);
|
||||
|
||||
if (priv->dev.d_sndlen > priv->dev.d_len)
|
||||
{
|
||||
@@ -1102,7 +1102,7 @@ static void kinetis_txtimeout_work(FAR void *arg)
|
||||
|
||||
struct timespec ts;
|
||||
struct timeval *now = (struct timeval *)&ts;
|
||||
clock_systimespec(&ts);
|
||||
clock_systime_timespec(&ts);
|
||||
now->tv_usec = ts.tv_nsec / 1000; /* timespec to timeval conversion */
|
||||
|
||||
/* The watchdog timed out, yet we still check mailboxes in case the
|
||||
|
||||
Reference in New Issue
Block a user