tcl: [2/3] prepare for jimtcl 0.81 'expr' syntax change
[fw/openocd] / tcl / chip / atmel / at91 / rtt.tcl
index 3e3d414f4124c3784db62c17851a8f8ba193d0b6..d49ce7114868c54b15d37a4e22d259a443d6f5da 100644 (file)
@@ -17,7 +17,7 @@ proc show_RTTC_RTMR_helper { NAME ADDR VAL } {
     global AT91C_SLOWOSC_FREQ
     # Nasty hack, make this a float by tacking a .0 on the end
     # otherwise, jim makes the value an integer
-    set f [expr $AT91C_SLOWOSC_FREQ.0 / $rtpres.0]
+    set f [expr "$AT91C_SLOWOSC_FREQ.0 / $rtpres.0"]
     echo [format "\tPrescale value: 0x%04x (%5d) => %f Hz" $rtpres $rtpres $f]
     if { $VAL & $BIT16 } {
        echo "\tBit16 -> Alarm IRQ Enabled"