diff --git a/packages/ti/ipc/family/tci6638/Interrupt.xs b/packages/ti/ipc/family/tci6638/Interrupt.xs
index 9864e8077fdf0a8ea55e8f6c28ea5721c3a9bed5..d2ddc169a2959d4f15a73ea345990d7cd0ff7622 100644 (file)
/*
- * Copyright (c) 2013, Texas Instruments Incorporated
+ * Copyright (c) 2013-2015 Texas Instruments Incorporated - http://www.ti.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
KICK1: 0x0262003C,
INTERDSPINT: 105,
DSPINT: 5
+ },
+ 'TMS320TCI6630K2L' : {
+ IPCGR0: 0x02620240,
+ IPCAR0: 0x02620280,
+ IPCGRH: 0x02620260,
+ IPCARH: 0x026202A0,
+ KICK0: 0x02620038,
+ KICK1: 0x0262003C,
+ INTERDSPINT: 105,
+ DSPINT: 5
+ },
+ 'TMS320C66AK2H12' : {
+ IPCGR0: 0x02620240,
+ IPCAR0: 0x02620280,
+ IPCGRH: 0x02620260,
+ IPCARH: 0x026202A0,
+ KICK0: 0x02620038,
+ KICK1: 0x0262003C,
+ INTERDSPINT: 105,
+ DSPINT: 5,
+ },
+ 'TMS320C66AK2E05' : {
+ IPCGR0: 0x02620240,
+ IPCAR0: 0x02620280,
+ IPCGRH: 0x02620260,
+ IPCARH: 0x026202A0,
+ KICK0: 0x02620038,
+ KICK1: 0x0262003C,
+ INTERDSPINT: 105,
+ DSPINT: 5
}
}
var Settings = xdc.loadCapsule('ti/sdo/ipc/family/Settings.xs');
this.INTERDSPINT = settings.INTERDSPINT;
this.DSPINT = settings.DSPINT;
}
+
/*
* ======== module$use ========
*/
function module$use()
{
- Interrupt = this;
+ Interrupt = this;
+
+ Hwi = xdc.useModule("ti.sysbios.family.c64p.Hwi");
+ MultiProc = xdc.useModule("ti.sdo.utils.MultiProc");
- Hwi = xdc.useModule("ti.sysbios.family.c64p.Hwi");
- MultiProc = xdc.useModule("ti.sdo.utils.MultiProc");
+}
+
+/*
+ * ======== module$validate ========
+ */
+function module$validate()
+{
+ /* verify the host is first in the multiproc name list */
+ if (MultiProc.getIdMeta("HOST") != 0) {
+ this.$logError("Processor HOST is missing from MultiProc name list",
+ MultiProc, null);
+ }
}
/*
* ======== module$static$init ========
*/
-function module$static$init(mod, params)
+function module$static$init(state, mod)
{
- var fxnTable = Interrupt.$object.fxnTable;
+
+ state.numPlugged = 0;
+ state.clusterId = MultiProc.baseIdOfCluster;
/* The function table length should be the number of IPCAR bits */
- fxnTable.length = 32;
- for (var i = 0; i < fxnTable.length; i++) {
- fxnTable[i].func = null;
- fxnTable[i].arg = 0;
- }
+ state.fxnTable.length = 32;
- mod.numPlugged = 0;
+ for (var i = 0; i < state.fxnTable.length; i++) {
+ state.fxnTable[i].func = null;
+ state.fxnTable[i].arg = 0;
+ }
}