blob: a4ddd0a0d90605120965e1f84a0f347ce87fb5ef [file] [log] [blame]
/* --COPYRIGHT--,EPL
* Copyright (c) 2010 Texas Instruments and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Texas Instruments - initial implementation
*
* --/COPYRIGHT--*/
/*
* ======== getAll ========
*/
function getAll() {
var insts = [];
var i = 0;
var peripherals = xdc.module('xdc.cfg.Program').cpu.attrs.peripherals;
for (var key in peripherals) {
if (peripherals[key].$module instanceof this.$orig.Module) {
insts[i++] = peripherals[key];
}
}
return (insts);
}
/*
* ======== getRegisters ========
*/
function getRegisters() {
var regs = [];
for (var prop in this.$orig.params) {
if (prop[0] == prop[0].toUpperCase()) {
regs.push(prop);
}
}
return (regs);
}
/*
* ======== addPeripheralsMap ========
*/
function addPeripheralsMap(cpu) {
//stub for compatibility purposes
}