!452 解除net对cmsis的依赖,net属于内核模块,不应该依赖内核对外接口
Merge pull request !452 from SimonLi/master
This commit is contained in:
commit
ff11e86c42
1
Kconfig
1
Kconfig
|
@ -391,7 +391,6 @@ config NET_LWIP
|
||||||
bool "Enable Lwip"
|
bool "Enable Lwip"
|
||||||
default n
|
default n
|
||||||
select NET_LWIP_SACK
|
select NET_LWIP_SACK
|
||||||
select KAL_CMSIS
|
|
||||||
|
|
||||||
help
|
help
|
||||||
Answer Y to enable LiteOS support lwip.
|
Answer Y to enable LiteOS support lwip.
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include <los_queue.h>
|
#include <los_queue.h>
|
||||||
#include <los_sem.h>
|
#include <los_sem.h>
|
||||||
#include <los_mux.h>
|
#include <los_mux.h>
|
||||||
#include "cmsis_os2.h"
|
|
||||||
#include <los_tick.h>
|
#include <los_tick.h>
|
||||||
#include <los_config.h>
|
#include <los_config.h>
|
||||||
|
|
||||||
|
@ -94,7 +93,8 @@ void sys_init(void)
|
||||||
u32_t sys_now(void)
|
u32_t sys_now(void)
|
||||||
{
|
{
|
||||||
/* Lwip docs mentioned like wraparound is not a problem in this funtion */
|
/* 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue