summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_pmstop.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-22 14:07:45 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-22 14:07:45 +0000
commitbc9e9610965af3e3c00dfa604dcc33a55aaadae0 (patch)
tree433a83ad007b7ff22d900f2178dc1235420002f7 /nuttx/arch/arm/src/stm32/stm32_pmstop.c
parent0c7804b74dcec7d746e95425157bd6afc1435de6 (diff)
downloadpx4-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_pmstop.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_pmstop.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_pmstop.c b/nuttx/arch/arm/src/stm32/stm32_pmstop.c
index 259f0d7df..55e8201c6 100644
--- a/nuttx/arch/arm/src/stm32/stm32_pmstop.c
+++ b/nuttx/arch/arm/src/stm32/stm32_pmstop.c
@@ -46,8 +46,6 @@
#include "stm32_pwr.h"
#include "stm32_pm.h"
-#ifdef CONFIG_PM
-
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@@ -82,7 +80,8 @@
* 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.
*
****************************************************************************/
@@ -117,5 +116,3 @@ int stm32_pmstop(bool lpds)
asm("WFI");
return OK;
}
-
-#endif /* CONFIG_PM */