mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +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:
@@ -110,7 +110,7 @@ static void uart_pollnotify(FAR uart_dev_t *dev, pollevent_t eventset);
|
||||
static int uart_putxmitchar(FAR uart_dev_t *dev, int ch, bool oktoblock);
|
||||
static inline ssize_t uart_irqwrite(FAR uart_dev_t *dev, FAR const char *buffer,
|
||||
size_t buflen);
|
||||
static int uart_tcdrain(FAR uart_dev_t *dev, systime_t timeout);
|
||||
static int uart_tcdrain(FAR uart_dev_t *dev, clock_t timeout);
|
||||
|
||||
/* Character driver methods */
|
||||
|
||||
@@ -397,7 +397,7 @@ static inline ssize_t uart_irqwrite(FAR uart_dev_t *dev, FAR const char *buffer,
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
static int uart_tcdrain(FAR uart_dev_t *dev, systime_t timeout)
|
||||
static int uart_tcdrain(FAR uart_dev_t *dev, clock_t timeout)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -412,7 +412,7 @@ static int uart_tcdrain(FAR uart_dev_t *dev, systime_t timeout)
|
||||
if (ret >= 0)
|
||||
{
|
||||
irqstate_t flags;
|
||||
systime_t start;
|
||||
clock_t start;
|
||||
|
||||
/* Trigger emission to flush the contents of the tx buffer */
|
||||
|
||||
@@ -487,7 +487,7 @@ static int uart_tcdrain(FAR uart_dev_t *dev, systime_t timeout)
|
||||
{
|
||||
while (!uart_txempty(dev))
|
||||
{
|
||||
systime_t elapsed;
|
||||
clock_t elapsed;
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
nxsig_usleep(POLL_DELAY_USEC);
|
||||
|
||||
Reference in New Issue
Block a user