PM updates (missed last night)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4983 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
596484ea54
commit
16d5da9203
|
@ -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
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue