Use LPM4_EXIT to return from sleep on msp430.

This commit is contained in:
bg- 2006-08-17 15:41:13 +00:00
parent e4e3a11b8b
commit 20bac141ca
4 changed files with 8 additions and 14 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: clock.c,v 1.2 2006/08/17 15:25:46 bg- Exp $
* @(#)$Id: clock.c,v 1.3 2006/08/17 15:41:13 bg- Exp $
*/
@ -37,8 +37,6 @@
#include "contiki-conf.h"
#include "dev/lpm.h"
#include "sys/clock.h"
#include "sys/etimer.h"
@ -58,7 +56,7 @@ interrupt(TIMERA1_VECTOR) timera1 (void) {
if(etimer_pending()
&& (etimer_next_expiration_time() - count) >= MAX_TICKS) {
etimer_request_poll();
LPM_AWAKE();
LPM4_EXIT;
}
}
}