kinetis:flexcan fixed compile error clock_systimespec->clock_systime_timespec

This commit is contained in:
David Sidrane
2020-10-14 04:02:03 -07:00
committed by Xiang Xiao
parent 8f9cd8832d
commit a907e2ad63
+2 -2
View File
@@ -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