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_pmbuttons.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_pmbuttons.c')
-rw-r--r-- | nuttx/configs/stm3210e-eval/src/up_pmbuttons.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c b/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c index 0a214d709..5892ce626 100644 --- a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c +++ b/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c @@ -281,10 +281,6 @@ static void button_handler(int id, int irq) */ pm_activity(CONFIG_PM_BUTTON_ACTIVITY); - - /* Un-register button handlers */ - - up_unregisterbuttons(); } #if MIN_BUTTON < 1 @@ -387,23 +383,4 @@ void up_pmbuttons(void) #endif } -/**************************************************************************** - * Name: up_unregisterbuttons - * - * Description: - * Un-register button handlers - * - ****************************************************************************/ - -void up_unregisterbuttons(void) -{ -#ifdef CONFIG_ARCH_IRQBUTTONS -int i; - for (i = CONFIG_PM_IRQBUTTONS_MIN; i <= CONFIG_PM_IRQBUTTONS_MAX; i++) - { - (void)up_irqbutton(i, NULL); - } -#endif -} - #endif /* defined(CONFIG_PM) && defined(CONFIG_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS) */ |