Turn off LPM mode for clock interrupts to avoid rtimer wrapping during extended LPM
This commit is contained in:
parent
4e3268e2e2
commit
ac172a5575
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: clock.c,v 1.23 2010/03/19 13:25:52 adamdunkels Exp $
|
||||
* @(#)$Id: clock.c,v 1.24 2010/03/29 21:53:32 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
@ -53,6 +53,7 @@ static volatile clock_time_t count = 0;
|
|||
static unsigned short last_tar = 0;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
interrupt(TIMERA1_VECTOR) timera1 (void) {
|
||||
ENERGEST_OFF(ENERGEST_TYPE_LPM);
|
||||
ENERGEST_ON(ENERGEST_TYPE_IRQ);
|
||||
|
||||
if(TAIV == 2) {
|
||||
|
@ -95,6 +96,7 @@ interrupt(TIMERA1_VECTOR) timera1 (void) {
|
|||
}*/
|
||||
|
||||
ENERGEST_OFF(ENERGEST_TYPE_IRQ);
|
||||
ENERGEST_ON(ENERGEST_TYPE_LPM);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
clock_time_t
|
||||
|
|
Loading…
Reference in a new issue