diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-27 13:32:21 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-27 13:32:21 +0000 |
commit | 30cabc02d49b348d93a5cdbe56aafb46b38d946c (patch) | |
tree | 344b18e6f8092ab5105661c5a1a0d662cf96471d /nuttx/configs | |
parent | 9b7cbb006a09a72f3299497cc9f1c60454e35776 (diff) | |
download | px4-firmware-30cabc02d49b348d93a5cdbe56aafb46b38d946c.tar.gz px4-firmware-30cabc02d49b348d93a5cdbe56aafb46b38d946c.tar.bz2 px4-firmware-30cabc02d49b348d93a5cdbe56aafb46b38d946c.zip |
PM updates (missed last night)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4983 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs')
-rw-r--r-- | nuttx/configs/stm3210e-eval/src/up_idle.c | 12 | ||||
-rw-r--r-- | nuttx/configs/stm32f4discovery/src/stm32f4discovery-internal.h | 13 |
2 files changed, 19 insertions, 6 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_idle.c b/nuttx/configs/stm3210e-eval/src/up_idle.c index b73b88c08..983089d4a 100644 --- a/nuttx/configs/stm3210e-eval/src/up_idle.c +++ b/nuttx/configs/stm3210e-eval/src/up_idle.c @@ -104,17 +104,17 @@ # error "CONFIG_RTC_ALARM should be enabled to use CONFIG_PM_SLEEP_WAKEUP" # endif - /* If CONFIG_PM_SLEEP_WAKEUP is defined, then ifndefCONFIG_PM_SLEEP_WAKEUP_SEC - * and ifndefCONFIG_PM_SLEEP_WAKEUP_NSEC define the delay until the STM32 + /* If CONFIG_PM_SLEEP_WAKEUP is defined, then CONFIG_PM_SLEEP_WAKEUP_SEC + * and CONFIG_PM_SLEEP_WAKEUP_NSEC define the delay until the STM32 * awakens from PM_SLEEP mode. */ -# ifndefCONFIG_PM_SLEEP_WAKEUP_SEC -# defineCONFIG_PM_SLEEP_WAKEUP_SEC 10 +# ifndef CONFIG_PM_SLEEP_WAKEUP_SEC +# define CONFIG_PM_SLEEP_WAKEUP_SEC 10 # endif -# ifndefCONFIG_PM_SLEEP_WAKEUP_NSEC -# defineCONFIG_PM_SLEEP_WAKEUP_NSEC 0 +# ifndef CONFIG_PM_SLEEP_WAKEUP_NSEC +# define CONFIG_PM_SLEEP_WAKEUP_NSEC 0 # endif #endif diff --git a/nuttx/configs/stm32f4discovery/src/stm32f4discovery-internal.h b/nuttx/configs/stm32f4discovery/src/stm32f4discovery-internal.h index 917ccbd98..5d16f8caf 100644 --- a/nuttx/configs/stm32f4discovery/src/stm32f4discovery-internal.h +++ b/nuttx/configs/stm32f4discovery/src/stm32f4discovery-internal.h @@ -209,6 +209,19 @@ void stm32_disablefsmc(void); void up_ledpminitialize(void); #endif +/**************************************************************************** + * Name: up_pmbuttons + * + * Description: + * Configure the user button of the STM32f4discovery board as EXTI, + * so it is able to wakeup the MCU from the PM_STANDBY mode + * + ****************************************************************************/ + +#if defined(CONFIG_PM) && defined(CONFIG_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS) +void up_pmbuttons(void); +#endif + #endif /* __ASSEMBLY__ */ #endif /* __CONFIGS_STM3240G_EVAL_SRC_STM3240G_INTERNAL_H */ |