diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-22 14:07:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-22 14:07:45 +0000 |
commit | bc9e9610965af3e3c00dfa604dcc33a55aaadae0 (patch) | |
tree | 433a83ad007b7ff22d900f2178dc1235420002f7 /nuttx/arch/arm/src/stm32/stm32_pm.h | |
parent | 0c7804b74dcec7d746e95425157bd6afc1435de6 (diff) | |
download | px4-nuttx-bc9e9610965af3e3c00dfa604dcc33a55aaadae0.tar.gz px4-nuttx-bc9e9610965af3e3c00dfa604dcc33a55aaadae0.tar.bz2 px4-nuttx-bc9e9610965af3e3c00dfa604dcc33a55aaadae0.zip |
Change STM32 so that stm32_pmstop.c and stm32_pmstandby are built even if CONFIG_PM is not defined
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4502 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_pm.h')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_pm.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_pm.h b/nuttx/arch/arm/src/stm32/stm32_pm.h index 87af09cb9..25c56ecbb 100644 --- a/nuttx/arch/arm/src/stm32/stm32_pm.h +++ b/nuttx/arch/arm/src/stm32/stm32_pm.h @@ -48,8 +48,6 @@ #include "chip.h" #include "up_internal.h" -#ifdef CONFIG_PM - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -75,7 +73,9 @@ extern "C" { * state activities. */ +#ifdef CONFIG_PM EXTERN sem_t g_pmsem; +#endif /**************************************************************************** * Public Function Prototypes @@ -99,7 +99,8 @@ EXTERN sem_t g_pmsem; * errno value is returned to indicate the cause of the failure. * * Assumptions: - * The caller holds the PM semaphore (g_pmsem). + * The caller holds the PM semaphore (g_pmsem) if this function is used + * as part of the NuttX power management logic. * ****************************************************************************/ @@ -121,7 +122,8 @@ EXTERN int stm32_pmstop(bool lpds); * failure. * * Assumptions: - * The caller holds the PM semaphore (g_pmsem). + * The caller holds the PM semaphore (g_pmsem) if this function is used + * as part of the NuttX power management logic. * ****************************************************************************/ @@ -133,5 +135,4 @@ EXTERN int stm32_pmstandby(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* CONFIG_PM */ #endif /* __ARCH_ARM_SRC_STM32_STM32_PM_H */ |