risc-v reduce use 128 bytes irq stack

This commit is contained in:
acevest
2019-10-05 13:09:24 +08:00
parent ce13d33255
commit 1e04f5b344
4 changed files with 45 additions and 50 deletions

View File

@@ -14,11 +14,8 @@ void task1(void *pdata)
{
t1++;
share++;
//k_tick_t delay = tos_millisec2tick(10);
//tos_task_delay(delay);
tos_task_yield();
//osDelay(10);
//asm("wfi;");
tos_task_delay(2);
//tos_task_yield();
}
}
@@ -29,9 +26,9 @@ void task2(void *pdata)
{
t2--;
share--;
//tos_task_delay(10);
tos_task_yield();
asm("wfi;");
tos_task_delay(3);
//tos_task_yield();
//asm("wfi;");
}
}