mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +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:
+1
-1
@@ -297,7 +297,7 @@ EXTERN uint8_t g_reassembly_timer;
|
||||
|
||||
/* Time of last poll */
|
||||
|
||||
EXTERN systime_t g_polltime;
|
||||
EXTERN clock_t g_polltime;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
|
||||
@@ -82,7 +82,7 @@ enum devif_packet_type
|
||||
|
||||
/* Time of last poll */
|
||||
|
||||
systime_t g_polltime;
|
||||
clock_t g_polltime;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
@@ -708,8 +708,8 @@ int devif_poll(FAR struct net_driver_s *dev, devif_poll_callback_t callback)
|
||||
|
||||
int devif_timer(FAR struct net_driver_s *dev, devif_poll_callback_t callback)
|
||||
{
|
||||
systime_t now;
|
||||
systime_t elapsed;
|
||||
clock_t now;
|
||||
clock_t elapsed;
|
||||
int bstop = false;
|
||||
|
||||
/* Get the elapsed time since the last poll in units of half seconds
|
||||
@@ -733,7 +733,7 @@ int devif_timer(FAR struct net_driver_s *dev, devif_poll_callback_t callback)
|
||||
* boundary to avoid error build-up).
|
||||
*/
|
||||
|
||||
g_polltime += (TICK_PER_HSEC * (systime_t)hsec);
|
||||
g_polltime += (TICK_PER_HSEC * (clock_t)hsec);
|
||||
|
||||
/* Perform periodic activitives that depend on hsec > 0 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user