Hi Antonio,

Check the driver hpls in the atm128rfa1 directory (which is only in
the svn for now).

Basicly, you should write an McuPowerOverride.lowestState() function
which will returns ATM128_POWER_IDLE (or whatever state the PWM needs)
if the buzzer is on, and ATM128_POWER_DOWN if not, and call the
McuPowerState.update() command if the buzzer turns on or off. Both of
them should be wired to McuSleepC.

Andris


On Mon, Jan 23, 2012 at 5:28 PM, antonio rosa
<antoniorosarodrig...@gmail.com> wrote:
> Hi to all,
> I want to ask if there is another  example of how to  use the
> McuPowerOverride interface than the example that you can  find in the
> atmega128 timer system. I am using a buzzer and I need  the buzzer sounds
> during several seconds without interrupts. I can't  do it because of the
> McuSleepC component sleeps the microcontroler and stops the PWM mode. With
> TinyOS-1.x and Moteworks I used the HPLPowermanager enable and disable
> commands, but now in TinyOS-2.1.1 there is not these commands..
>
> Bests Regards, Antonio Rosa.
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to