summaryrefslogtreecommitdiffstats
path: root/nuttx/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-29 18:30:48 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-29 18:30:48 +0000
commit5d66bdcdf2d7127c6fabb9a2cd341d48ed0222a5 (patch)
treecbdb5c1080982d7ba1ef48411a51b061f3e7571e /nuttx/configs
parent908d7b4d75360194163be289e194bccbd2c2e373 (diff)
Review and update some board configurations
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4991 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/avr32dev1/Kconfig7
-rw-r--r--nuttx/configs/hymini-stm32v/Kconfig7
-rw-r--r--nuttx/configs/olimex-lpc1766stk/Kconfig7
-rw-r--r--nuttx/configs/sam3u-ek/Kconfig7
-rw-r--r--nuttx/configs/stm3210e-eval/Kconfig82
-rw-r--r--nuttx/configs/stm3210e-eval/src/up_pmbuttons.c99
-rw-r--r--nuttx/configs/stm3220g-eval/Kconfig7
-rw-r--r--nuttx/configs/stm3220g-eval/README.txt6
-rw-r--r--nuttx/configs/stm3220g-eval/dhcpd/defconfig5
-rw-r--r--nuttx/configs/stm3220g-eval/nettest/defconfig5
-rw-r--r--nuttx/configs/stm3220g-eval/nsh/defconfig5
-rw-r--r--nuttx/configs/stm3220g-eval/nsh2/defconfig5
-rw-r--r--nuttx/configs/stm3220g-eval/nxwm/defconfig5
-rw-r--r--nuttx/configs/stm3220g-eval/ostest/defconfig5
-rw-r--r--nuttx/configs/stm3220g-eval/telnetd/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/Kconfig7
-rwxr-xr-xnuttx/configs/stm3240g-eval/README.txt6
-rw-r--r--nuttx/configs/stm3240g-eval/dhcpd/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/nettest/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/nsh/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/nsh2/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/nxconsole/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/nxwm/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/ostest/defconfig5
-rw-r--r--nuttx/configs/stm3240g-eval/telnetd/defconfig5
-rw-r--r--nuttx/configs/stm32f4discovery/Kconfig56
-rwxr-xr-xnuttx/configs/stm32f4discovery/README.txt6
-rw-r--r--nuttx/configs/stm32f4discovery/nsh/defconfig5
-rw-r--r--nuttx/configs/stm32f4discovery/nxlines/defconfig5
-rw-r--r--nuttx/configs/stm32f4discovery/ostest/defconfig5
-rw-r--r--nuttx/configs/stm32f4discovery/pm/defconfig5
-rwxr-xr-xnuttx/configs/stm32f4discovery/src/up_pmbuttons.c63
-rw-r--r--nuttx/configs/sure-pic32mx/Kconfig7
-rw-r--r--nuttx/configs/twr-k60n512/Kconfig7
-rw-r--r--nuttx/configs/ubw32/Kconfig22
35 files changed, 237 insertions, 254 deletions
diff --git a/nuttx/configs/avr32dev1/Kconfig b/nuttx/configs/avr32dev1/Kconfig
index 9fe07d799d..017aaf5124 100644
--- a/nuttx/configs/avr32dev1/Kconfig
+++ b/nuttx/configs/avr32dev1/Kconfig
@@ -16,5 +16,12 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support interrupts on button presses and releases."
+
endif
diff --git a/nuttx/configs/hymini-stm32v/Kconfig b/nuttx/configs/hymini-stm32v/Kconfig
index 2d6b612ebe..f6bc7f233d 100644
--- a/nuttx/configs/hymini-stm32v/Kconfig
+++ b/nuttx/configs/hymini-stm32v/Kconfig
@@ -16,4 +16,11 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support EXTI interrupts on button presses and releases."
+
endif
diff --git a/nuttx/configs/olimex-lpc1766stk/Kconfig b/nuttx/configs/olimex-lpc1766stk/Kconfig
index b51ab0d9e7..659e49e41f 100644
--- a/nuttx/configs/olimex-lpc1766stk/Kconfig
+++ b/nuttx/configs/olimex-lpc1766stk/Kconfig
@@ -16,4 +16,11 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support interrupts on button presses and releases."
+
endif
diff --git a/nuttx/configs/sam3u-ek/Kconfig b/nuttx/configs/sam3u-ek/Kconfig
index d39ff246eb..79559a3d1e 100644
--- a/nuttx/configs/sam3u-ek/Kconfig
+++ b/nuttx/configs/sam3u-ek/Kconfig
@@ -16,4 +16,11 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support interrupts on button presses and releases."
+
endif
diff --git a/nuttx/configs/stm3210e-eval/Kconfig b/nuttx/configs/stm3210e-eval/Kconfig
index 98a45f97a2..a40a7548ba 100644
--- a/nuttx/configs/stm3210e-eval/Kconfig
+++ b/nuttx/configs/stm3210e-eval/Kconfig
@@ -18,6 +18,13 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support EXTI interrupts on button presses and releases."
+
config STM3210E_LCD
bool "Select support for the STM3210E-EVAL LCD"
default y
@@ -105,4 +112,79 @@ config STM32_R61580_DISABLE
endif
+config PM_BUTTONS
+ bool "PM Button support"
+ default n
+ depends on PM && ARCH_IRQBUTTONS
+ ---help---
+ Enable PM button EXTI interrupts to support PM testing
+
+config PM_BUTTONS_MIN
+ int "Minimum button number"
+ default 0
+ depends on PM_BUTTONS
+ ---help---
+ The lowest button code to use for PM testing (see board.h)
+config PM_BUTTONS_MAX
+ int "Maximum button number"
+ default 7
+ depends on PM_BUTTONS
+ ---help---
+ The highest button code to use for PM testing (see board.h)
+
+config PM_IRQBUTTONS_MIN
+ int "Minimum interrupting button number"
+ default 0
+ depends on PM_BUTTONS
+ ---help---
+ The lowest interrupting button code to use for PM testing (see board.h)
+
+config PM_IRQBUTTONS_MAX
+ int "Maximum interrupting button number"
+ default 7
+ depends on PM_BUTTONS
+ ---help---
+ The highest interrupting button code to use for PM testing (see board.h)
+
+config PM_BUTTON_ACTIVITY
+ int "Button PM activity weight"
+ default 10
+ depends on PM_BUTTONS
+ ---help---
+ The activity weight to report to the power management subsystem when a button is pressed.
+
+config PM_ALARM_SEC
+ int "PM_STANDBY delay (seconds)"
+ default 15
+ depends on PM && RTC_ALARM
+ --help---
+ Number of seconds to wait in PM_STANDBY before going to PM_STANDBY mode.
+
+config PM_ALARM_NSEC
+ int "PM_STANDBY delay (nanoseconds)"
+ default 0
+ depends on PM && RTC_ALARM
+ --help---
+ Number of additional nanoseconds to wait in PM_STANDBY before going to PM_STANDBY mode.
+
+config PM_SLEEP_WAKEUP
+ bool "PM_SLEEP wake-up alarm"
+ default n
+ depends on PM && RTC_ALARM
+ --help---
+ Wake-up of PM_SLEEP mode after a delay and resume normal operation.
+
+config PM_SLEEP_WAKEUP_SEC
+ int "PM_SLEEP delay (seconds)"
+ default 10
+ depends on PM && RTC_ALARM
+ --help---
+ Number of seconds to wait in PM_SLEEP before going to PM_STANDBY mode.
+
+config PM_SLEEP_WAKEUP_NSEC
+ int "PM_SLEEP delay (nanoseconds)"
+ default 0
+ depends on PM && RTC_ALARM
+ --help---
+ Number of additional nanoseconds to wait in PM_SLEEP before going to PM_STANDBY mode.
diff --git a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c b/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
index 5892ce6267..35a98a00a7 100644
--- a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
+++ b/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
@@ -64,31 +64,6 @@
# error "CONFIG_ARCH_BUTTONS is not defined in the configuration"
#endif
-#ifndef CONFIG_PM_BUTTONS_NAME0
-# define CONFIG_PM_BUTTONS_NAME0 "BUTTON0"
-#endif
-#ifndef CONFIG_PM_BUTTONS_NAME1
-# define CONFIG_PM_BUTTONS_NAME1 "BUTTON1"
-#endif
-#ifndef CONFIG_PM_BUTTONS_NAME2
-# define CONFIG_PM_BUTTONS_NAME2 "BUTTON2"
-#endif
-#ifndef CONFIG_PM_BUTTONS_NAME3
-# define CONFIG_PM_BUTTONS_NAME3 "BUTTON3"
-#endif
-#ifndef CONFIG_PM_BUTTONS_NAME4
-# define CONFIG_PM_BUTTONS_NAME4 "BUTTON4"
-#endif
-#ifndef CONFIG_PM_BUTTONS_NAME5
-# define CONFIG_PM_BUTTONS_NAME5 "BUTTON5"
-#endif
-#ifndef CONFIG_PM_BUTTONS_NAME6
-# define CONFIG_PM_BUTTONS_NAME6 "BUTTON6"
-#endif
-#ifndef CONFIG_PM_BUTTONS_NAME7
-# define CONFIG_PM_BUTTONS_NAME7 "BUTTON7"
-#endif
-
#define BUTTON_MIN 0
#define BUTTON_MAX 7
@@ -106,6 +81,10 @@
# error "CONFIG_PM_BUTTONS_MAX > 7"
#endif
+#ifndef CONFIG_ARCH_IRQBUTTONS
+# warning "CONFIG_ARCH_IRQBUTTONS is not defined in the configuration"
+#endif
+
#ifndef CONFIG_PM_IRQBUTTONS_MIN
# define CONFIG_PM_IRQBUTTONS_MIN CONFIG_PM_BUTTONS_MIN
#endif
@@ -143,14 +122,6 @@
* Private Types
****************************************************************************/
-struct button_info_s
-{
- FAR const char *name; /* Name for the button */
-#ifdef CONFIG_ARCH_IRQBUTTONS
- xcpt_t handler; /* Button interrupt handler */
-#endif
-};
-
/****************************************************************************
* Private Function Prototypes
****************************************************************************/
@@ -188,72 +159,34 @@ static int button7_handler(int irq, FAR void *context);
* Private Data
****************************************************************************/
-/* Button Names */
+/* Button interrupt handlers */
-static const struct button_info_s g_buttoninfo[NUM_PMBUTTONS] =
+#ifdef CONFIG_ARCH_IRQBUTTONS
+static const xcpt_t g_buttonhandlers[NUM_PMBUTTONS] =
{
#if MIN_BUTTON < 1
- {
- CONFIG_PM_BUTTONS_NAME0,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button0_handler
-#endif
- },
+ button0_handler,
#endif
#if MIN_BUTTON < 2 && MAX_BUTTON > 0
- {
- CONFIG_PM_BUTTONS_NAME1,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button1_handler
-#endif
- },
+ button1_handler,
#endif
#if MIN_BUTTON < 3 && MAX_BUTTON > 1
- {
- CONFIG_PM_BUTTONS_NAME2,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button2_handler
-#endif
- },
+ button2_handler,
#endif
#if MIN_BUTTON < 4 && MAX_BUTTON > 2
- {
- CONFIG_PM_BUTTONS_NAME3,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button3_handler
-#endif
- },
+ button3_handler,
#endif
#if MIN_BUTTON < 5 && MAX_BUTTON > 3
- {
- CONFIG_PM_BUTTONS_NAME4,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button4_handler
-#endif
- },
+ button4_handler,
#endif
#if MIN_BUTTON < 6 && MAX_BUTTON > 4
- {
- CONFIG_PM_BUTTONS_NAME5,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button5_handler
-#endif
- },
+ button5_handler,
#endif
#if MIN_BUTTON < 7 && MAX_BUTTON > 5
- {
- CONFIG_PM_BUTTONS_NAME6,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button6_handler
-#endif
- },
+ button6_handler,
#endif
#if MAX_BUTTON > 6
- {
- CONFIG_PM_BUTTONS_NAME7,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button7_handler
-#endif
+ button7_handler,
}
#endif
};
@@ -371,7 +304,7 @@ void up_pmbuttons(void)
int i;
for (i = CONFIG_PM_IRQBUTTONS_MIN; i <= CONFIG_PM_IRQBUTTONS_MAX; i++)
{
- xcpt_t oldhandler = up_irqbutton(i, g_buttoninfo[BUTTON_INDEX(i)].handler);
+ xcpt_t oldhandler = up_irqbutton(i, g_buttonhandlers[BUTTON_INDEX(i)]);
if (oldhandler != NULL)
{
diff --git a/nuttx/configs/stm3220g-eval/Kconfig b/nuttx/configs/stm3220g-eval/Kconfig
index 05f0cc5eaf..e248d2e68d 100644
--- a/nuttx/configs/stm3220g-eval/Kconfig
+++ b/nuttx/configs/stm3220g-eval/Kconfig
@@ -16,6 +16,13 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support EXTI interrupts on button presses and releases."
+
config STM3220G_LCD
bool "Select support for the STM3210E-EVAL LCD"
default y
diff --git a/nuttx/configs/stm3220g-eval/README.txt b/nuttx/configs/stm3220g-eval/README.txt
index 6650342546..a064503f1d 100644
--- a/nuttx/configs/stm3220g-eval/README.txt
+++ b/nuttx/configs/stm3220g-eval/README.txt
@@ -573,12 +573,6 @@ STM3220G-EVAL-specific Configuration Options
CONFIG_STM32_TIM10
CONFIG_STM32_TIM11
- Timer and I2C devices may need to the following to force power to be applied
- unconditionally at power up. (Otherwise, the device is powered when it is
- initialized).
-
- CONFIG_STM32_FORCEPOWER
-
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If CONFIG_STM32_TIMn
is defined (as above) then the following may also be defined to indicate that
diff --git a/nuttx/configs/stm3220g-eval/dhcpd/defconfig b/nuttx/configs/stm3220g-eval/dhcpd/defconfig
index 192628a5d2..e01d3cf91d 100644
--- a/nuttx/configs/stm3220g-eval/dhcpd/defconfig
+++ b/nuttx/configs/stm3220g-eval/dhcpd/defconfig
@@ -192,11 +192,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F20xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3220g-eval/nettest/defconfig b/nuttx/configs/stm3220g-eval/nettest/defconfig
index deee0e789b..3be35afa4f 100644
--- a/nuttx/configs/stm3220g-eval/nettest/defconfig
+++ b/nuttx/configs/stm3220g-eval/nettest/defconfig
@@ -192,11 +192,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F20xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3220g-eval/nsh/defconfig b/nuttx/configs/stm3220g-eval/nsh/defconfig
index 6513d2ca11..09462fc564 100644
--- a/nuttx/configs/stm3220g-eval/nsh/defconfig
+++ b/nuttx/configs/stm3220g-eval/nsh/defconfig
@@ -192,11 +192,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F20xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3220g-eval/nsh2/defconfig b/nuttx/configs/stm3220g-eval/nsh2/defconfig
index 11233ffb47..8a9dbf07fa 100644
--- a/nuttx/configs/stm3220g-eval/nsh2/defconfig
+++ b/nuttx/configs/stm3220g-eval/nsh2/defconfig
@@ -193,11 +193,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F20xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3220g-eval/nxwm/defconfig b/nuttx/configs/stm3220g-eval/nxwm/defconfig
index ba55a2b952..bf5569a9c8 100644
--- a/nuttx/configs/stm3220g-eval/nxwm/defconfig
+++ b/nuttx/configs/stm3220g-eval/nxwm/defconfig
@@ -192,11 +192,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F20xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3220g-eval/ostest/defconfig b/nuttx/configs/stm3220g-eval/ostest/defconfig
index 184ca9e529..663efded4b 100644
--- a/nuttx/configs/stm3220g-eval/ostest/defconfig
+++ b/nuttx/configs/stm3220g-eval/ostest/defconfig
@@ -192,11 +192,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F20xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3220g-eval/telnetd/defconfig b/nuttx/configs/stm3220g-eval/telnetd/defconfig
index 0a526bd926..f9d588ad12 100644
--- a/nuttx/configs/stm3220g-eval/telnetd/defconfig
+++ b/nuttx/configs/stm3220g-eval/telnetd/defconfig
@@ -192,11 +192,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F20xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/Kconfig b/nuttx/configs/stm3240g-eval/Kconfig
index fbd4f8cbb5..af84f91920 100644
--- a/nuttx/configs/stm3240g-eval/Kconfig
+++ b/nuttx/configs/stm3240g-eval/Kconfig
@@ -16,6 +16,13 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support EXTI interrupts on button presses and releases."
+
config STM3240G_LCD
bool "Select support for the STM3210E-EVAL LCD"
default y
diff --git a/nuttx/configs/stm3240g-eval/README.txt b/nuttx/configs/stm3240g-eval/README.txt
index 6c1617f55d..59d12a8848 100755
--- a/nuttx/configs/stm3240g-eval/README.txt
+++ b/nuttx/configs/stm3240g-eval/README.txt
@@ -694,12 +694,6 @@ STM3240G-EVAL-specific Configuration Options
CONFIG_STM32_TIM10
CONFIG_STM32_TIM11
- Timer and I2C devices may need to the following to force power to be applied
- unconditionally at power up. (Otherwise, the device is powered when it is
- initialized).
-
- CONFIG_STM32_FORCEPOWER
-
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If CONFIG_STM32_TIMn
is defined (as above) then the following may also be defined to indicate that
diff --git a/nuttx/configs/stm3240g-eval/dhcpd/defconfig b/nuttx/configs/stm3240g-eval/dhcpd/defconfig
index 90d910c4ef..81d1321433 100644
--- a/nuttx/configs/stm3240g-eval/dhcpd/defconfig
+++ b/nuttx/configs/stm3240g-eval/dhcpd/defconfig
@@ -204,11 +204,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/nettest/defconfig b/nuttx/configs/stm3240g-eval/nettest/defconfig
index af31d91020..76f39275fe 100644
--- a/nuttx/configs/stm3240g-eval/nettest/defconfig
+++ b/nuttx/configs/stm3240g-eval/nettest/defconfig
@@ -204,11 +204,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/nsh/defconfig b/nuttx/configs/stm3240g-eval/nsh/defconfig
index a3e31622bc..16c6258f38 100644
--- a/nuttx/configs/stm3240g-eval/nsh/defconfig
+++ b/nuttx/configs/stm3240g-eval/nsh/defconfig
@@ -204,11 +204,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/nsh2/defconfig b/nuttx/configs/stm3240g-eval/nsh2/defconfig
index 5c3d7b5403..9a35fd75fe 100644
--- a/nuttx/configs/stm3240g-eval/nsh2/defconfig
+++ b/nuttx/configs/stm3240g-eval/nsh2/defconfig
@@ -205,11 +205,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/nxconsole/defconfig b/nuttx/configs/stm3240g-eval/nxconsole/defconfig
index 68bc045fbe..57e6a19e5c 100644
--- a/nuttx/configs/stm3240g-eval/nxconsole/defconfig
+++ b/nuttx/configs/stm3240g-eval/nxconsole/defconfig
@@ -204,11 +204,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/nxwm/defconfig b/nuttx/configs/stm3240g-eval/nxwm/defconfig
index 04022367bb..ff44fa2852 100644
--- a/nuttx/configs/stm3240g-eval/nxwm/defconfig
+++ b/nuttx/configs/stm3240g-eval/nxwm/defconfig
@@ -204,11 +204,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/ostest/defconfig b/nuttx/configs/stm3240g-eval/ostest/defconfig
index a10d2369ab..98e3aa3183 100644
--- a/nuttx/configs/stm3240g-eval/ostest/defconfig
+++ b/nuttx/configs/stm3240g-eval/ostest/defconfig
@@ -204,11 +204,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM3240xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm3240g-eval/telnetd/defconfig b/nuttx/configs/stm3240g-eval/telnetd/defconfig
index befd642648..f75fb46397 100644
--- a/nuttx/configs/stm3240g-eval/telnetd/defconfig
+++ b/nuttx/configs/stm3240g-eval/telnetd/defconfig
@@ -204,11 +204,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm32f4discovery/Kconfig b/nuttx/configs/stm32f4discovery/Kconfig
index 808103f2ef..2843352b44 100644
--- a/nuttx/configs/stm32f4discovery/Kconfig
+++ b/nuttx/configs/stm32f4discovery/Kconfig
@@ -16,4 +16,60 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support EXTI interrupts on button presses and releases."
+
+config PM_BUTTONS
+ bool "PM Button support"
+ default n
+ depends on PM && ARCH_IRQBUTTONS
+ ---help---
+ Enable PM button EXTI interrupts to support PM testing
+
+config PM_BUTTON_ACTIVITY
+ int "Button PM activity weight"
+ default 10
+ depends on PM_BUTTONS
+ ---help---
+ The activity weight to report to the power management subsystem when a button is pressed.
+
+config PM_ALARM_SEC
+ int "PM_STANDBY delay (seconds)"
+ default 15
+ depends on PM && RTC_ALARM
+ --help---
+ Number of seconds to wait in PM_STANDBY before going to PM_STANDBY mode.
+
+config PM_ALARM_NSEC
+ int "PM_STANDBY delay (nanoseconds)"
+ default 0
+ depends on PM && RTC_ALARM
+ --help---
+ Number of additional nanoseconds to wait in PM_STANDBY before going to PM_STANDBY mode.
+
+config PM_SLEEP_WAKEUP
+ bool "PM_SLEEP wake-up alarm"
+ default n
+ depends on PM && RTC_ALARM
+ --help---
+ Wake-up of PM_SLEEP mode after a delay and resume normal operation.
+
+config PM_SLEEP_WAKEUP_SEC
+ int "PM_SLEEP delay (seconds)"
+ default 10
+ depends on PM && RTC_ALARM
+ --help---
+ Number of seconds to wait in PM_SLEEP before going to PM_STANDBY mode.
+
+config PM_SLEEP_WAKEUP_NSEC
+ int "PM_SLEEP delay (nanoseconds)"
+ default 0
+ depends on PM && RTC_ALARM
+ --help---
+ Number of additional nanoseconds to wait in PM_SLEEP before going to PM_STANDBY mode.
+
endif
diff --git a/nuttx/configs/stm32f4discovery/README.txt b/nuttx/configs/stm32f4discovery/README.txt
index dddee08177..387a76431f 100755
--- a/nuttx/configs/stm32f4discovery/README.txt
+++ b/nuttx/configs/stm32f4discovery/README.txt
@@ -807,12 +807,6 @@ STM32F4Discovery-specific Configuration Options
CONFIG_STM32_TIM10
CONFIG_STM32_TIM11
- Timer and I2C devices may need to the following to force power to be applied
- unconditionally at power up. (Otherwise, the device is powered when it is
- initialized).
-
- CONFIG_STM32_FORCEPOWER
-
Timer devices may be used for different purposes. One special purpose is
to generate modulated outputs for such things as motor control. If CONFIG_STM32_TIMn
is defined (as above) then the following may also be defined to indicate that
diff --git a/nuttx/configs/stm32f4discovery/nsh/defconfig b/nuttx/configs/stm32f4discovery/nsh/defconfig
index 7ef051e0f1..2280bbf9ab 100644
--- a/nuttx/configs/stm32f4discovery/nsh/defconfig
+++ b/nuttx/configs/stm32f4discovery/nsh/defconfig
@@ -181,11 +181,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm32f4discovery/nxlines/defconfig b/nuttx/configs/stm32f4discovery/nxlines/defconfig
index 12b2919bd1..c5515c426c 100644
--- a/nuttx/configs/stm32f4discovery/nxlines/defconfig
+++ b/nuttx/configs/stm32f4discovery/nxlines/defconfig
@@ -181,11 +181,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm32f4discovery/ostest/defconfig b/nuttx/configs/stm32f4discovery/ostest/defconfig
index c26bcb52c6..a984d26a17 100644
--- a/nuttx/configs/stm32f4discovery/ostest/defconfig
+++ b/nuttx/configs/stm32f4discovery/ostest/defconfig
@@ -181,11 +181,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F4Discovery specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm32f4discovery/pm/defconfig b/nuttx/configs/stm32f4discovery/pm/defconfig
index 94136efb73..dce39ececc 100644
--- a/nuttx/configs/stm32f4discovery/pm/defconfig
+++ b/nuttx/configs/stm32f4discovery/pm/defconfig
@@ -182,11 +182,6 @@ CONFIG_STM32_TIM10=n
CONFIG_STM32_TIM11=n
#
-# Timer and I2C devices may need to the following to force power to be applied:
-#
-#CONFIG_STM32_FORCEPOWER=y
-
-#
# STM32F40xxx specific serial device driver settings
#
# CONFIG_USARTn_SERIAL_CONSOLE - selects the USARTn for the
diff --git a/nuttx/configs/stm32f4discovery/src/up_pmbuttons.c b/nuttx/configs/stm32f4discovery/src/up_pmbuttons.c
index 619eaa91c4..aa72e3da12 100755
--- a/nuttx/configs/stm32f4discovery/src/up_pmbuttons.c
+++ b/nuttx/configs/stm32f4discovery/src/up_pmbuttons.c
@@ -64,12 +64,8 @@
# error "CONFIG_ARCH_BUTTONS is not defined in the configuration"
#endif
-#ifndef CONFIG_PM_BUTTONS_NAME0
-# define CONFIG_PM_BUTTONS_NAME0 "BUTTON0"
-#endif
-
-#ifndef CONFIG_PM_IRQBUTTON
-# define CONFIG_PM_IRQBUTTON 0
+#ifndef CONFIG_ARCH_IRQBUTTONS
+# warning "CONFIG_ARCH_IRQBUTTONS is not defined in the configuration"
#endif
#ifndef CONFIG_PM_BUTTON_ACTIVITY
@@ -80,61 +76,18 @@
* Private Types
****************************************************************************/
-struct button_info_s
-{
- FAR const char *name; /* Name for the button */
-#ifdef CONFIG_ARCH_IRQBUTTONS
- xcpt_t handler; /* Button interrupt handler */
-#endif
-};
-
/****************************************************************************
* Private Function Prototypes
****************************************************************************/
#ifdef CONFIG_ARCH_IRQBUTTONS
-static void button_handler(int id, int irq);
-
-#if MIN_BUTTON < 1
-static int button0_handler(int irq, FAR void *context);
-#endif
-#if MIN_BUTTON < 2 && MAX_BUTTON > 0
-static int button1_handler(int irq, FAR void *context);
-#endif
-#if MIN_BUTTON < 3 && MAX_BUTTON > 1
-static int button2_handler(int irq, FAR void *context);
-#endif
-#if MIN_BUTTON < 4 && MAX_BUTTON > 2
-static int button3_handler(int irq, FAR void *context);
-#endif
-#if MIN_BUTTON < 5 && MAX_BUTTON > 3
-static int button4_handler(int irq, FAR void *context);
-#endif
-#if MIN_BUTTON < 6 && MAX_BUTTON > 4
-static int button5_handler(int irq, FAR void *context);
-#endif
-#if MIN_BUTTON < 7 && MAX_BUTTON > 5
-static int button6_handler(int irq, FAR void *context);
-#endif
-#if MAX_BUTTON > 6
-static int button7_handler(int irq, FAR void *context);
-#endif
+static int button_handler(int irq, FAR void *context);
#endif /* CONFIG_ARCH_IRQBUTTONS */
/****************************************************************************
* Private Data
****************************************************************************/
-/* Button Names */
-
-static const struct button_info_s g_buttoninfo =
-{
- CONFIG_PM_BUTTONS_NAME0,
-#ifdef CONFIG_ARCH_IRQBUTTONS
- button0_handler,
-#endif
-};
-
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -148,7 +101,7 @@ static const struct button_info_s g_buttoninfo =
****************************************************************************/
#ifdef CONFIG_ARCH_IRQBUTTONS
-static void button_handler(int id, int irq)
+static int button_handler(int irq, FAR void *context)
{
/* At this point the MCU should have already awakened. The state
* change will be handled in the IDLE loop when the system is re-awakened
@@ -158,14 +111,8 @@ static void button_handler(int id, int irq)
*/
pm_activity(CONFIG_PM_BUTTON_ACTIVITY);
-}
-
-static int button0_handler(int irq, FAR void *context)
-{
- button_handler(0, irq);
return OK;
}
-
#endif /* CONFIG_ARCH_IRQBUTTONS */
/****************************************************************************
@@ -188,7 +135,7 @@ void up_pmbuttons(void)
up_buttoninit();
#ifdef CONFIG_ARCH_IRQBUTTONS
- xcpt_t oldhandler = up_irqbutton(0, g_buttoninfo.handler);
+ xcpt_t oldhandler = up_irqbutton(0, button_handler);
if (oldhandler != NULL)
{
diff --git a/nuttx/configs/sure-pic32mx/Kconfig b/nuttx/configs/sure-pic32mx/Kconfig
index 1154ca34c0..fd2a5e2597 100644
--- a/nuttx/configs/sure-pic32mx/Kconfig
+++ b/nuttx/configs/sure-pic32mx/Kconfig
@@ -16,4 +16,11 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support interrupts on button presses and releases."
+
endif
diff --git a/nuttx/configs/twr-k60n512/Kconfig b/nuttx/configs/twr-k60n512/Kconfig
index 549e250bd9..e0a0ce5750 100644
--- a/nuttx/configs/twr-k60n512/Kconfig
+++ b/nuttx/configs/twr-k60n512/Kconfig
@@ -16,4 +16,11 @@ config ARCH_BUTTONS
---help---
"Support interfaces to use buttons provided by the board."
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support interrupts on button presses and releases."
+
endif
diff --git a/nuttx/configs/ubw32/Kconfig b/nuttx/configs/ubw32/Kconfig
index ae2bf31307..c0213392c2 100644
--- a/nuttx/configs/ubw32/Kconfig
+++ b/nuttx/configs/ubw32/Kconfig
@@ -2,3 +2,25 @@
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
+
+if ARCH_BOARD_UBW32
+config ARCH_LEDS
+ bool "NuttX LED support"
+ default n
+ ---help---
+ "Support control of board LEDs by NuttX to indicate system state"
+
+config ARCH_BUTTONS
+ bool "Button support"
+ default n
+ ---help---
+ "Support interfaces to use buttons provided by the board."
+
+config ARCH_IRQBUTTONS
+ bool "Button interrupt support"
+ default n
+ depends on ARCH_BUTTONS
+ ---help---
+ "Support interrupts on button presses and releases."
+
+endif