fix: 解除net对cmsis的依赖,net属于内核模块,不应该依赖内核对外接口

Signed-off-by: SimonLi <likailong@huawei.com>
This commit is contained in:
SimonLi 2021-12-09 21:06:24 +08:00
parent 4a95944fc5
commit 99826240d9
2 changed files with 2 additions and 3 deletions

View File

@ -391,7 +391,6 @@ config NET_LWIP
bool "Enable Lwip"
default n
select NET_LWIP_SACK
select KAL_CMSIS
help
Answer Y to enable LiteOS support lwip.

View File

@ -37,7 +37,6 @@
#include <los_queue.h>
#include <los_sem.h>
#include <los_mux.h>
#include "cmsis_os2.h"
#include <los_tick.h>
#include <los_config.h>
@ -94,7 +93,8 @@ void sys_init(void)
u32_t sys_now(void)
{
/* Lwip docs mentioned like wraparound is not a problem in this funtion */
return (u32_t)osKernelGetTickCount();
return (u32_t)((LOS_TickCountGet() * OS_SYS_MS_PER_SECOND) /
LOSCFG_BASE_CORE_TICK_PER_SECOND);
}
/**