mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
Elimate use of the non-standard type systime_t and replace it the equivalent, standard type clock_t
Squashed commit of the following:
sched: Rename all use of system_t to clock_t.
syscall: Rename all use of system_t to clock_t.
net: Rename all use of system_t to clock_t.
libs: Rename all use of system_t to clock_t.
fs: Rename all use of system_t to clock_t.
drivers: Rename all use of system_t to clock_t.
arch: Rename all use of system_t to clock_t.
include: Remove definition of systime_t; rename all use of system_t to clock_t.
This commit is contained in:
@@ -136,7 +136,7 @@ static void sixlowpan_reass_expire(void)
|
||||
{
|
||||
FAR struct sixlowpan_reassbuf_s *reass;
|
||||
FAR struct sixlowpan_reassbuf_s *next;
|
||||
systime_t elapsed;
|
||||
clock_t elapsed;
|
||||
|
||||
/* If reassembly timed out, cancel it */
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ struct sixlowpan_send_s
|
||||
sem_t s_waitsem; /* Supports waiting for driver events */
|
||||
int s_result; /* The result of the transfer */
|
||||
uint16_t s_timeout; /* Send timeout in deciseconds */
|
||||
systime_t s_time; /* Last send time for determining timeout */
|
||||
clock_t s_time; /* Last send time for determining timeout */
|
||||
FAR const struct ipv6_hdr_s *s_ipv6hdr; /* IPv6 header, followed by UDP or ICMP header. */
|
||||
FAR const struct netdev_varaddr_s *s_destmac; /* Destination MAC address */
|
||||
FAR const void *s_buf; /* Data to send */
|
||||
@@ -120,8 +120,8 @@ static inline bool send_timeout(FAR struct sixlowpan_send_s *sinfo)
|
||||
{
|
||||
/* Check if the configured timeout has elapsed */
|
||||
|
||||
systime_t timeo_ticks = DSEC2TICK(sinfo->s_timeout);
|
||||
systime_t elapsed = clock_systimer() - sinfo->s_time;
|
||||
clock_t timeo_ticks = DSEC2TICK(sinfo->s_timeout);
|
||||
clock_t elapsed = clock_systimer() - sinfo->s_time;
|
||||
|
||||
if (elapsed >= timeo_ticks)
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ struct sixlowpan_send_s
|
||||
sem_t s_waitsem; /* Supports waiting for driver events */
|
||||
int s_result; /* The result of the transfer */
|
||||
uint16_t s_timeout; /* Send timeout in deciseconds */
|
||||
systime_t s_time; /* Last send time for determining timeout */
|
||||
clock_t s_time; /* Last send time for determining timeout */
|
||||
FAR const struct netdev_varaddr_s *s_destmac; /* Destination MAC address */
|
||||
FAR const uint8_t *s_buf; /* Data to send */
|
||||
size_t s_buflen; /* Length of data in buf */
|
||||
@@ -307,8 +307,8 @@ static inline bool send_timeout(FAR struct sixlowpan_send_s *sinfo)
|
||||
{
|
||||
/* Check if the configured timeout has elapsed */
|
||||
|
||||
systime_t timeo_ticks = DSEC2TICK(sinfo->s_timeout);
|
||||
systime_t elapsed = clock_systimer() - sinfo->s_time;
|
||||
clock_t timeo_ticks = DSEC2TICK(sinfo->s_timeout);
|
||||
clock_t elapsed = clock_systimer() - sinfo->s_time;
|
||||
|
||||
if (elapsed >= timeo_ticks)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user