From: <jo...@us...> - 2008-08-29 20:53:15
|
Revision: 293 http://mspsim.svn.sourceforge.net/mspsim/?rev=293&view=rev Author: joxe Date: 2008-08-29 20:53:13 +0000 (Fri, 29 Aug 2008) Log Message: ----------- made some constants final Modified Paths: -------------- mspsim/se/sics/mspsim/core/Timer.java Modified: mspsim/se/sics/mspsim/core/Timer.java =================================================================== --- mspsim/se/sics/mspsim/core/Timer.java 2008-08-29 20:34:19 UTC (rev 292) +++ mspsim/se/sics/mspsim/core/Timer.java 2008-08-29 20:53:13 UTC (rev 293) @@ -133,7 +133,7 @@ // Number of cycles passed since current counter value was set // useful for setting expected compare and capture times to correct time. // valid for timer A - private int timerOverflow = 0x0a; + private final int timerOverflow; private long counterStart = 0; private long nextTimerTrigger = 0; @@ -185,7 +185,7 @@ private int[] tccr = new int[7]; // Support variables Max 7 compare regs... (timer b) - private int noCompare = 0; + private final int noCompare; private int[] expCompare = new int[7]; private int[] expCapInterval = new int[7]; private long[] expCaptureTime = new long[7]; @@ -199,10 +199,10 @@ private boolean interruptEnable = false; private boolean interruptPending = false; - private int ccr1Vector; - private int ccr0Vector; - private MSP430Core core; + private final int ccr1Vector; + private final int ccr0Vector; + private final MSP430Core core; private TimeEvent timerTrigger = new TimeEvent(0) { public void execute(long t) { @@ -213,7 +213,7 @@ private int lastTIV; - private int[] srcMap; + private final int[] srcMap; /** * Creates a new <code>Timer</code> instance. * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |