From f3f05c779132e9696f9ef810f6363d8ef83767a4 Mon Sep 17 00:00:00 2001 From: lebrush Date: Thu, 16 May 2013 17:14:31 +0200 Subject: [PATCH] Implemented getters for the mcu frequencies --- se/sics/mspsim/core/MSP430Core.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/se/sics/mspsim/core/MSP430Core.java b/se/sics/mspsim/core/MSP430Core.java index 6a9b06e..da7ed56 100644 --- a/se/sics/mspsim/core/MSP430Core.java +++ b/se/sics/mspsim/core/MSP430Core.java @@ -242,7 +242,7 @@ public class MSP430Core extends Chip implements MSP430Constants { // Maybe for debugging purposes... ioUnits = new ArrayList(); - 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; + } + }