]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
Make Msp430ClockC a generic so that the target DCO clock and the ACLK can be
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Tue, 9 Sep 2008 14:17:06 +0000 (14:17 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:00:52 +0000 (20:00 -0700)
commit4032fd4f0aca0fbcf920c01e553bb8e7cca163fa
tree99dd3956182795d8ad40731dd881bd419e846426
parent346f6f7b48d1ebed9d5048f0e7b4d297a15aeb4d
Make Msp430ClockC a generic so that the target DCO clock and the ACLK can be
passed in as instantiation variables.  This provides a more TinyOS savvy
mechanism to set desired clocks as opposed to the prior method which involved
overriding macros defined in Msp430DcoSpec.h.  This and other enhancements to
the clock initialization has also slightly reduced executable sizes.  Below
is the Blink application from TinyOS 2.1.0, compiled with the plain vanilla
2.1.0 and with the clock init modifications for all msp430 platforms in the
standard distribution:

Compiled ROM sizes in bytes

|| Platform  || 2.1.0 || updated ||
||           ||       ||         ||
|| eyesIFX   || 2570  || 2510    ||
|| shimmer   || 2522  || 2462    ||
|| telosa    || 2538  || 2478    ||
|| telosb    || 2634  || 2574    ||
|| tinynode  || 2896  || 2838    ||
tos/chips/msp430/clock/Msp430ClockC.nc
tos/chips/msp430/clock/Msp430ClockP.nc
tos/chips/msp430/clock/Msp430DcoSpec.h [deleted file]
tos/platforms/eyesIFX/.family
tos/platforms/eyesIFX/PlatformC.nc
tos/platforms/shimmer/MoteClockC.nc
tos/platforms/telosa/MoteClockC.nc
tos/platforms/telosb/MoteClockC.nc
tos/platforms/tinynode/PlatformC.nc
tos/platforms/tmicore/MoteClockC.nc
tos/platforms/tmicore/MoteClockP.nc