Use LPM4_EXIT to return from sleep on msp430.
This commit is contained in:
parent
e4e3a11b8b
commit
20bac141ca
4 changed files with 8 additions and 14 deletions
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)$Id: button.c,v 1.1 2006/06/17 22:41:21 adamdunkels Exp $
|
||||
* @(#)$Id: button.c,v 1.2 2006/08/17 15:41:13 bg- Exp $
|
||||
*/
|
||||
|
||||
#include <io.h>
|
||||
|
@ -34,8 +34,6 @@
|
|||
|
||||
#include "contiki.h"
|
||||
|
||||
#include "dev/lpm.h"
|
||||
|
||||
#include "dev/button.h"
|
||||
|
||||
#define BUTTON_PORT 2
|
||||
|
@ -75,6 +73,6 @@ __button_interrupt(void)
|
|||
if(selecting_proc != NULL) {
|
||||
process_post(selecting_proc, PROCESS_EVENT_MSG, &button_msg);
|
||||
}
|
||||
LPM_AWAKE();
|
||||
LPM4_EXIT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue