mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
arch/arm/imxrt: replace clock_systimespec with clock_systime_timespec
since clock_systimespec doesn't exist anymore Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
David Sidrane
parent
6158b6b77b
commit
73d4832c15
@@ -609,7 +609,7 @@ static int imxrt_transmit(FAR struct imxrt_driver_s *priv)
|
|||||||
|
|
||||||
#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
|
#ifdef CONFIG_NET_CAN_RAW_TX_DEADLINE
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
clock_systimespec(&ts);
|
clock_systime_timespec(&ts);
|
||||||
|
|
||||||
if (priv->dev.d_sndlen > priv->dev.d_len)
|
if (priv->dev.d_sndlen > priv->dev.d_len)
|
||||||
{
|
{
|
||||||
@@ -1069,7 +1069,7 @@ static void imxrt_txtimeout_work(FAR void *arg)
|
|||||||
|
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
struct timeval *now = (struct timeval *)&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 */
|
now->tv_usec = ts.tv_nsec / 1000; /* timespec to timeval conversion */
|
||||||
|
|
||||||
/* The watchdog timed out, yet we still check mailboxes in case the
|
/* The watchdog timed out, yet we still check mailboxes in case the
|
||||||
|
|||||||
Reference in New Issue
Block a user