mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:35:05 +08:00
Update to use 64-bit timer when available
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* drivers/net/enc28j60.c
|
||||
*
|
||||
* Copyright (C) 2010-2012, 2014-2015 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2010-2012, 2014-2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* References:
|
||||
@@ -750,8 +750,8 @@ static void enc_wrbreg(FAR struct enc_driver_s *priv, uint8_t ctrlreg,
|
||||
static int enc_waitbreg(FAR struct enc_driver_s *priv, uint8_t ctrlreg,
|
||||
uint8_t bits, uint8_t value)
|
||||
{
|
||||
uint32_t start = clock_systimer();
|
||||
uint32_t elapsed;
|
||||
systime_t start = clock_systimer();
|
||||
systime_t elapsed;
|
||||
uint8_t rddata;
|
||||
|
||||
/* Loop until the exit condition is met */
|
||||
|
||||
Reference in New Issue
Block a user