git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@608 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
6ed1607bcb
commit
48c87272fe
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue