[Tinyos Core WG] MSP430/LPM4
Vlado Handziski
handzisk at tkn.tu-berlin.de
Wed Jul 1 14:11:59 PDT 2009
On Wed, Jul 1, 2009 at 21:32, Philip Levis <pal at cs.stanford.edu> wrote:
> I'm going through the change so that the MSP430 defaults to LPM4 but
> the timer system brings it to LPM3 with an override. I don't know the
> MSP430 well enough to answer this question:
>
> Where should the override occur? That is, what configuration should
> wire in the component that does the override?
>
> I'm assuming in Msp430TimerC, but wanted to check.
>
> Phil
>
No, Msp430TimerC deals with the counters/capture registers. This should be
done lower, in Msp430ClockP, because that is where the clock system is
initialized. In other words, the override is correlated with the interrupts
for the ACLK being enabled.
Ideally we should keep state in the component and only return LPM3 if the
timer is running and LPM4 if not. But since this code will be reorganized
anyhow, for the time being we can couple the override with the fact that
this component is wired or not.
Patch is attached, I am at home with no scope and no DMM to test it out, but
it should work.
Vlado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-2.0wg/attachments/20090701/88f74d04/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lpm4.patch
Type: text/x-patch
Size: 1088 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-2.0wg/attachments/20090701/88f74d04/attachment.bin
More information about the Tinyos-2.0wg
mailing list