fix:Provide a CPU delay interface
Close #I3NT3Y Change-Id: I30c984a95a77cbddabdae2900ab8fcf9d7eac1ac
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user