/* Calls a Local CPU function with a single optional parameter and return value. */
void IPCLiteRtoLFunctionCall(uint32_t ulFlag, uint32_t ulStatusFlag)
/* Calls a Local CPU function with a single optional parameter and return value. */
void IPCLiteRtoLFunctionCall(uint32_t ulFlag, uint32_t ulStatusFlag)
{
    while (!(IpcRegs.IPCSTS.all & ulFlag))
    {
    }
    if (IpcRegs.IPCRECVCOM == IPC_FUNC_CALL)
    {
        tfIpcFuncCall func_call = (tfIpcFuncCall)IpcRegs.IPCRECVADDR;
        IpcRegs.IPCLOCALREPLY = func_call(IpcRegs.IPCRECVDATA);
        IpcRegs.IPCACK.all |= (ulStatusFlag | ulFlag);
    }
    else
    {
        IpcRegs.IPCACK.all |= (ulFlag);
    }
}