add function rt_hw_1ms_tick_get()

This commit is contained in:
Meco Man
2020-12-29 00:08:24 +08:00
parent 3bca2cfb41
commit c2e15e003c
6 changed files with 29 additions and 4 deletions

View File

@@ -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

View File

@@ -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();
}

View File

@@ -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