static void Pcount3DDemo_DPC_RadarProc_dpmTask(UArg arg0, UArg arg1)
{
int32_t retVal;
// DPC_ObjectDetection_ExecuteResult *result;
volatile uint32_t startTime;
while (1)
{
/* Execute the DPM module: */
// DebugP_log0("DSS main: Pcount3DDemo_DPC_RadarProc_dpmTask\n");
retVal = DPM_execute(gPcount3DDssMCB.dataPathObj.radarProcDpmHandle, &resultBuffer);
if (retVal < 0)
{
DEBUG(System_printf("Error: DPM execution failed [Error code %d]\n", retVal);)
Pcount3DDemo_debugAssert(0);
}
else
{
if ((resultBuffer.size[0] == sizeof(DPC_ObjectDetection_ExecuteResult)))
{
retVal = DPM_sendResult(gPcount3DDssMCB.dataPathObj.radarProcDpmHandle, true, &resultBuffer);
if (retVal < 0)
{
DEBUG(System_printf("Error: Failed to send results [Error: %d] to remote\n", retVal);)
}
}
}
// writeback all the data shared with R4 in L3, and prepare cache for next frames radar cube from R4.
cache_wbInvAllL2Wait();
}
}