git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@608 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2009-01-10 15:02:43 +00:00
parent 6ed1607bcb
commit 48c87272fe
4 changed files with 13 additions and 2 deletions

View File

@ -48,7 +48,9 @@ void sys_puts(char *msg) {
__attribute__((weak))
void sys_wait_for_interrupt(void) {
#if ENABLE_WFI_IDLE != 0
PCON = 1;
#endif
}
/**

View File

@ -48,7 +48,9 @@ void sys_puts(char *msg) {
__attribute__((weak))
void sys_wait_for_interrupt(void) {
#if ENABLE_WFI_IDLE != 0
PCON = 1;
#endif
}
/**

View File

@ -25,6 +25,13 @@
#ifndef _CHCORE_H_
#define _CHCORE_H_
/**
* If enabled allows the idle thread to enter a low power mode.
*/
#ifndef ENABLE_WFI_IDLE
#define ENABLE_WFI_IDLE 0
#endif
/**
* Macro defining the ARM7 architecture.
*/

View File

@ -28,8 +28,8 @@
#include <iomacros.h>
#include <msp430/common.h>
/*
* Port-related configuration parameters.
/**
* If enabled allows the idle thread to enter a low power mode.
*/
#ifndef ENABLE_WFI_IDLE
#define ENABLE_WFI_IDLE 0