修改多核同步函数,防止意外卡顿

This commit is contained in:
SEEKFREE_BUDING
2023-03-08 10:51:17 +08:00
parent 620742250b
commit aed0a8fe9d
15 changed files with 60 additions and 30 deletions

View File

@@ -106,6 +106,8 @@ void clock_init (void)
//-------------------------------------------------------------------------------------------------------------------
void cpu_wait_event_ready (void)
{
IfxCpu_emitEvent(&g_cpuSyncEvent);
IfxCpu_waitEvent(&g_cpuSyncEvent, 0xFFFF);
while(IfxCpu_waitEvent(&g_cpuSyncEvent, 5))
{
IfxCpu_emitEvent(&g_cpuSyncEvent);
}
}