mirror of
https://gitee.com/seekfree/TC264_Library.git
synced 2026-06-04 03:32:56 +00:00
修改多核同步函数,防止意外卡顿
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user