diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-12 14:12:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-12 14:12:18 +0000 |
commit | 7769a6798482804a666bcd734b511795e53b33ff (patch) | |
tree | 62b38a0f5071c19c9b061722a2ebd9c7992caabd /nuttx/configs/stm3210e-eval/src/up_idle.c | |
parent | dc7c79d7f673a8c641ad6c3e567b321a924af675 (diff) | |
download | px4-nuttx-7769a6798482804a666bcd734b511795e53b33ff.tar.gz px4-nuttx-7769a6798482804a666bcd734b511795e53b33ff.tar.bz2 px4-nuttx-7769a6798482804a666bcd734b511795e53b33ff.zip |
STM32: remove pm_unregister buttons. Initialize PM buttons only once
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4935 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3210e-eval/src/up_idle.c')
-rw-r--r-- | nuttx/configs/stm3210e-eval/src/up_idle.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_idle.c b/nuttx/configs/stm3210e-eval/src/up_idle.c index f68574bd8..bc5be2bdc 100644 --- a/nuttx/configs/stm3210e-eval/src/up_idle.c +++ b/nuttx/configs/stm3210e-eval/src/up_idle.c @@ -150,41 +150,11 @@ static void up_idlepm(void) case PM_IDLE: { - /* The wake-up event is really dependent upon the application - * an resources provided by the application. However, - * CONFIG_PM_BUTTONS may defined to support PM testing. - */ - -#ifdef CONFIG_PM_BUTTONS - /* Check if the buttons have already been registered */ - - up_unregisterbuttons(); - - /* Initialize the buttons to wake up the system from the idle - * mode - */ - - up_pmbuttons(); -#endif } break; case PM_STANDBY: { - /* The wake-up event is really dependent upon the application - * an resources provided by the application. However, - * CONFIG_PM_BUTTONS may defined to support PM testing. - */ - -#ifdef CONFIG_PM_BUTTONS - /* Check if the buttons have already been registered */ - - up_unregisterbuttons(); - - /* Configure all the buttons as wakeup EXTI */ - - up_pmbuttons(); -#endif #ifdef CONFIG_RTC_ALARM /* Configure the RTC alarm to Auto Wake the system */ |