Merge pull request #12 from lebrush/core-freq-getters

Implemented getters for the mcu frequencies
This commit is contained in:
mspsim 2013-06-04 22:52:42 -07:00
commit 642799fdcb
1 changed files with 10 additions and 1 deletions

View File

@ -242,7 +242,7 @@ public class MSP430Core extends Chip implements MSP430Constants {
// Maybe for debugging purposes...
ioUnits = new ArrayList<IOUnit>();
ioSegment.setIORange(config.flashControllerOffset, 6, flash);
ioSegment.setIORange(config.flashControllerOffset, Flash.SIZE, flash);
/* Setup special function registers */
sfr = new SFR(this, memory);
@ -2249,4 +2249,13 @@ public class MSP430Core extends Chip implements MSP430Constants {
}
return buf.toString();
}
public int getAclkFrq() {
return aclkFrq;
}
public int getSmclkFrq() {
return smclkFrq;
}
}