diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_pmstop.c')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_pmstop.c | 7 |
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 */ |