fix:Provide a CPU delay interface

Close #I3NT3Y

Change-Id: I30c984a95a77cbddabdae2900ab8fcf9d7eac1ac
This commit is contained in:
zhushengle
2021-04-23 14:50:27 +08:00
parent 18aa697589
commit 583d177de0
2 changed files with 15 additions and 1 deletions

View File

@@ -639,7 +639,7 @@ osStatus_t osDelay(uint32_t ticks)
return osOK;
}
if (osKernelGetState() != osKernelRunning) {
HalDelay(ticks);
LOS_SysDelay(ticks);
} else {
uwRet = LOS_TaskDelay(ticks);
}