mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 10:00:24 +00:00
add function rt_hw_1ms_tick_get()
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rthw.h>
|
||||
|
||||
#include "lwip/sys.h"
|
||||
#include "lwip/opt.h"
|
||||
@@ -617,7 +618,7 @@ u32_t sys_jiffies(void)
|
||||
|
||||
u32_t sys_now(void)
|
||||
{
|
||||
return rt_tick_get() * (1000 / RT_TICK_PER_SECOND);
|
||||
return rt_hw_1ms_tick_get();
|
||||
}
|
||||
|
||||
#ifdef RT_LWIP_PPP
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rthw.h>
|
||||
|
||||
#include "lwip/sys.h"
|
||||
#include "lwip/opt.h"
|
||||
@@ -627,7 +628,7 @@ u32_t sys_jiffies(void)
|
||||
|
||||
u32_t sys_now(void)
|
||||
{
|
||||
return rt_tick_get() * (1000 / RT_TICK_PER_SECOND);
|
||||
return rt_hw_1ms_tick_get();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rthw.h>
|
||||
|
||||
#include "lwip/sys.h"
|
||||
#include "lwip/opt.h"
|
||||
@@ -641,7 +642,7 @@ u32_t sys_jiffies(void)
|
||||
|
||||
u32_t sys_now(void)
|
||||
{
|
||||
return rt_tick_get() * (1000 / RT_TICK_PER_SECOND);
|
||||
return rt_hw_1ms_tick_get();
|
||||
}
|
||||
|
||||
#if MEM_OVERFLOW_CHECK || MEMP_OVERFLOW_CHECK
|
||||
|
||||
Reference in New Issue
Block a user