Implemented getters for the mcu frequencies

This commit is contained in:
lebrush 2013-05-16 17:14:31 +02:00
parent 968187d8f3
commit f3f05c7791
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;
}
}