summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-03-04 08:58:01 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-03-04 08:58:01 -0600
commit4c45e1d61f52b056bd650d3db6b9a4c3acd12130 (patch)
tree7197832d5ac4165b84a3669bee70317173e5a948 /nuttx/arch
parent1f05e8673cafe0e6d45893cdd170f65c454d1635 (diff)
downloadpx4-nuttx-4c45e1d61f52b056bd650d3db6b9a4c3acd12130.tar.gz
px4-nuttx-4c45e1d61f52b056bd650d3db6b9a4c3acd12130.tar.bz2
px4-nuttx-4c45e1d61f52b056bd650d3db6b9a4c3acd12130.zip
configs/stm32f4discovery/pm: Configuration converted to use the kconfig-frontends tools
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/Kconfig32
-rw-r--r--nuttx/arch/arm/src/lpc43xx/Make.defs2
-rw-r--r--nuttx/arch/arm/src/stm32/Make.defs4
3 files changed, 35 insertions, 3 deletions
diff --git a/nuttx/arch/Kconfig b/nuttx/arch/Kconfig
index 2a63c61d7..e36975355 100644
--- a/nuttx/arch/Kconfig
+++ b/nuttx/arch/Kconfig
@@ -170,6 +170,38 @@ config ENDIAN_BIG
---help---
Select if architecture operates using big-endian byte ordering.
+config ARCH_IDLE_CUSTOM
+ bool "Custom IDLE loop"
+ default n
+ ---help---
+ Each architecture provides a "default" IDLE loop that exits when the
+ MCU has nothing else to do. This default IDLE loop can be replaced
+ by a custom, board-specific IDLE loop by setting this option. Such
+ a custom IDLE loop may do things like a continuous built-in test or
+ perhaps or IDLE low power operations.
+
+ NOTE: As of this writing, this capability is only supported by the
+ STM32. However, the implementation is trivial: If CONFIG_ARCH_IDLE_CUSTOM,
+ then the default IDLE loop file is not included in the MCU-specific
+ Make.defs file.
+
+config ARCH_CUSTOM_PMINIT
+ bool "Custom PM initialization"
+ default n
+ depends on PM
+ ---help---
+ Each architecture provides default power management (PM)
+ initialization that is called automatically when the system is
+ started. This default PM initialization can be replaced by custom,
+ board-specific PM initialization by setting this option. Such a
+ custom initialization may do additional PM-related initialization
+ that is unique to the board power management requirements.
+
+ NOTE: As of this writing, this capability is only supported by the
+ STM32. However, the implementation is trivial: If CONFIG_ARCH_CUSTOM_PMINIT,
+ then the default PM initialization is not included in the MCU-specific
+ Make.defs file.
+
config ARCH_HAVE_RAMFUNCS
bool
default n
diff --git a/nuttx/arch/arm/src/lpc43xx/Make.defs b/nuttx/arch/arm/src/lpc43xx/Make.defs
index 7b7a7e8c4..e2d5ea0b1 100644
--- a/nuttx/arch/arm/src/lpc43xx/Make.defs
+++ b/nuttx/arch/arm/src/lpc43xx/Make.defs
@@ -91,7 +91,7 @@ ifeq ($(CONFIG_NUTTX_KERNEL),y)
CHIP_CSRCS += lpc43_userspace.c lpc43_mpuinit.c
endif
-ifneq ($(CONFIG_IDLE_CUSTOM),y)
+ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
CHIP_CSRCS += lpc43_idle.c
endif
diff --git a/nuttx/arch/arm/src/stm32/Make.defs b/nuttx/arch/arm/src/stm32/Make.defs
index 47e6a91cc..c65a227b5 100644
--- a/nuttx/arch/arm/src/stm32/Make.defs
+++ b/nuttx/arch/arm/src/stm32/Make.defs
@@ -132,13 +132,13 @@ CHIP_CSRCS += stm32_otgfshost.c
endif
endif
-ifneq ($(CONFIG_IDLE_CUSTOM),y)
+ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
CHIP_CSRCS += stm32_idle.c
endif
CHIP_CSRCS += stm32_pmstop.c stm32_pmstandby.c stm32_pmsleep.c
-ifneq ($(CONFIG_PM_CUSTOMINIT),y)
+ifneq ($(CONFIG_ARCH_CUSTOM_PMINIT),y)
CHIP_CSRCS += stm32_pminitialize.c
endif