forked from xuos/xiuos
add LwIP network stack
This commit is contained in:
@@ -236,12 +236,12 @@ x_err_t _MdelayKTask(KTaskDescriptorType task, uint32 ms)
|
||||
*/
|
||||
x_err_t _KTaskPrioSet(KTaskDescriptorType task, uint8 prio)
|
||||
{
|
||||
extern long ShowTask(void);
|
||||
x_base lock = 0;
|
||||
int ret = EOK;
|
||||
uint8 task_stat = 0;
|
||||
|
||||
NULL_PARAM_CHECK(task);
|
||||
|
||||
lock = CriticalAreaLock();
|
||||
|
||||
if (0 == strncmp("ktaskidle",task->task_base_info.name, strlen("ktaskidle")))
|
||||
@@ -269,11 +269,11 @@ x_err_t _KTaskPrioSet(KTaskDescriptorType task, uint8 prio)
|
||||
case KTASK_INIT:
|
||||
case KTASK_SUSPEND:
|
||||
case KTASK_RUNNING:
|
||||
task->task_dync_sched_member.cur_prio = prio;
|
||||
__BitmapSiteMask(task);
|
||||
break;
|
||||
task->task_dync_sched_member.cur_prio = prio; KTaskDescriptorType tid;
|
||||
case KTASK_CLOSE:
|
||||
ShowTask();
|
||||
KPrintf("the close stat task is forbidden to change priority.\n");
|
||||
|
||||
ret = -ERROR;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#include <xs_spinlock.h>
|
||||
#include <xs_delay.h>
|
||||
|
||||
extern void Time_Update_LwIP(void);
|
||||
|
||||
#ifdef ARCH_SMP
|
||||
static x_ticks_t heartbeat_ticks[CPU_NUMBERS] = {0};
|
||||
#else
|
||||
@@ -78,6 +80,10 @@ void TickAndTaskTimesliceUpdate(void)
|
||||
#ifdef KERNEL_SOFTTIMER
|
||||
CheckTimerList();
|
||||
#endif
|
||||
#ifdef BSP_USING_LWIP
|
||||
Time_Update_LwIP();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user