[processor-sdk/performance-audio-sr.git] / procsdk_audio_x_xx_xx_xx / test_arm / framework / systemInit.c
diff --git a/procsdk_audio_x_xx_xx_xx/test_arm/framework/systemInit.c b/procsdk_audio_x_xx_xx_xx/test_arm/framework/systemInit.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * ======== systemInit.c ========
- */
-
-#include <xdc/std.h>
-#include <xdc/cfg/global.h>
-#include <xdc/runtime/IHeap.h>
-#include <xdc/runtime/Log.h>
-#include <xdc/runtime/System.h>
-#include <ti/ipc/Ipc.h>
-
-#include "pafhjt.h"
-#include "paf_heapMgr.h"
-
-const PAFHJT_t *pafhjt;
-
-#define RAM_REPORT
-#ifdef RAM_REPORT
-#include <audioStreamProc_params.h>
-#include <paf_alg_print.h>
-extern PAF_AST_Fxns PAF_ASDT_params_fxns;
-#endif
-
-#include "aspMsg_common.h"
-#include "aspMsg_slave.h"
-
-#define TASK_ASDP_PRI ( 3 )
-
-#define __TASK_NAME__ "TaskSysInit"
-
-/*
- * ======== taskSysInitFxn ========
- * System Initializations task function
- */
-Void taskSysInitFxn(Void)
-{
- UInt16 remoteProcId;
- Int status;
-
-
- Log_info0("Enter taskSysInitFxn()");
-
- /* Attach IPC */
- Log_info0("taskSysInitFxn:Ipc_attach()");
- remoteProcId = MultiProc_getId(MASTER_NAME);
- if (remoteProcId == MultiProc_INVALIDID) {
- System_abort("Improper MultiProc ID\n");
- }
- do {
- status = Ipc_attach(remoteProcId);
- //} while ((status < 0) && (status == Ipc_E_NOTREADY));
- } while (status != Ipc_S_SUCCESS);
-
- /* Initialize (IPC) ASP slave messaging */
- Log_info0("taskSysInitFxn:AspMsgSlave_init()");
- status = AspMsgSlave_init(
- hAspMsgSlave,
- remoteProcId);
- if (status < 0)
- {
- Log_info1("%s: Unable to initialize ASP messaging. Exiting.", (IArg)__TASK_NAME__);
- return;
- }
-
- /* Initialize PAF heap manager */
- Log_info0("taskSysInitFxn:pafHeapMgr_init()");
- pafHeapMgr_init((IHeap_Handle)heapMemL2Sram,
- (IHeap_Handle)heapMemMsmcSram,
- (IHeap_Handle)heapMemDdr3,
- NULL,
- NULL);
-
- /* Initialize HJT */
- pafhjt = &PAFHJT_RAM;
-
-#ifdef RAM_REPORT
- PAF_ASDT_params_fxns.headerPrint = PAF_ALG_headerPrint;
- PAF_ASDT_params_fxns.allocPrint = PAF_ALG_allocPrint;
- PAF_ASDT_params_fxns.commonPrint = PAF_ALG_commonPrint;
- PAF_ASDT_params_fxns.bufMemPrint = PAF_ALG_bufMemPrint;
- PAF_ASDT_params_fxns.memStatusPrint = PAF_ALG_memStatusPrint;
-#endif
-
- Task_setPri(TaskAsdp, TASK_ASDP_PRI);
-
- Log_info0("Exit taskSysInitFxn()");
-}