[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] Timers in 2.x
Joe Polastre
joe at polastre.com
Tue Oct 18 13:14:12 PDT 2005
> - I'd like to suggest merging the components which offer the Alarm and
> Counter interfaces (this basically means cutting the number of
> components above by two). We would keep the option of using a hardware
> timer as a Counter only, though.
I'd actually propose the opposite. For example, having
Alarm32khz32bitC and Alarm32khz16bitC instead of Alarm32khzC allows
you to not include 32-bit libraries if you're only using a 16-bit
alarm. This saves significant code space, since the 32bitC component
isn't included and neither are the 32-bit arithmetic operations within
it.
By keeping Alarm and Counter separate, you save space too.
-Joe
_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg
More information about the Tinyos-host-mote-wg
mailing list