mirror of
https://github.com/jam422470459/EPD-nRF52-hema213.git
synced 2025-12-17 05:48:12 +08:00
disable sleep if no wakeup pin
This commit is contained in:
@@ -3426,6 +3426,132 @@
|
||||
#define NRF_QUEUE_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <e> NRF_PWR_MGMT_ENABLED - nrf_pwr_mgmt - Power management module
|
||||
//==========================================================
|
||||
#ifndef NRF_PWR_MGMT_ENABLED
|
||||
#define NRF_PWR_MGMT_ENABLED 1
|
||||
#endif
|
||||
#if NRF_PWR_MGMT_ENABLED
|
||||
// <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
|
||||
//==========================================================
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
|
||||
#define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
|
||||
#endif
|
||||
#if NRF_PWR_MGMT_CONFIG_LOG_ENABLED
|
||||
// <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
|
||||
|
||||
// <0=> Off
|
||||
// <1=> Error
|
||||
// <2=> Warning
|
||||
// <3=> Info
|
||||
// <4=> Debug
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
|
||||
#define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 4
|
||||
#endif
|
||||
|
||||
// <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
|
||||
|
||||
// <0=> Default
|
||||
// <1=> Black
|
||||
// <2=> Red
|
||||
// <3=> Green
|
||||
// <4=> Yellow
|
||||
// <5=> Blue
|
||||
// <6=> Magenta
|
||||
// <7=> Cyan
|
||||
// <8=> White
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
|
||||
#define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
|
||||
#endif
|
||||
|
||||
// <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
|
||||
|
||||
// <0=> Default
|
||||
// <1=> Black
|
||||
// <2=> Red
|
||||
// <3=> Green
|
||||
// <4=> Yellow
|
||||
// <5=> Blue
|
||||
// <6=> Magenta
|
||||
// <7=> Cyan
|
||||
// <8=> White
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
|
||||
#define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
|
||||
#endif
|
||||
|
||||
#endif //NRF_PWR_MGMT_CONFIG_LOG_ENABLED
|
||||
// </e>
|
||||
|
||||
// <e> NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED - Enables pin debug in the module.
|
||||
|
||||
// <i> Selected pin will be set when CPU is in sleep mode.
|
||||
//==========================================================
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED
|
||||
#define NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED 0
|
||||
#endif
|
||||
#if NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED
|
||||
// <o> NRF_PWR_MGMT_SLEEP_DEBUG_PIN - Pin number <0-31>
|
||||
|
||||
|
||||
#ifndef NRF_PWR_MGMT_SLEEP_DEBUG_PIN
|
||||
#define NRF_PWR_MGMT_SLEEP_DEBUG_PIN 31
|
||||
#endif
|
||||
|
||||
#endif //NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED
|
||||
// </e>
|
||||
|
||||
// <q> NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED - Enables CPU usage monitor.
|
||||
|
||||
|
||||
// <i> Module will trace percentage of CPU usage in one second intervals.
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED
|
||||
#define NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <e> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED - Enable standby timeout.
|
||||
//==========================================================
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED
|
||||
#define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED 0
|
||||
#endif
|
||||
#if NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED
|
||||
// <o> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S - Standby timeout (in seconds).
|
||||
// <i> Shutdown procedure will begin no earlier than after this number of seconds.
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S
|
||||
#define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S 3
|
||||
#endif
|
||||
|
||||
#endif //NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED
|
||||
// </e>
|
||||
|
||||
// <q> NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED - Enables FPU event cleaning.
|
||||
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED
|
||||
#define NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY - Blocked shutdown procedure will be retried every second.
|
||||
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY
|
||||
#define NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY 0
|
||||
#endif
|
||||
|
||||
// <q> NRF_PWR_MGMT_CONFIG_USE_SCHEDULER - Module will use @ref app_scheduler.
|
||||
|
||||
|
||||
#ifndef NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
|
||||
#define NRF_PWR_MGMT_CONFIG_USE_SCHEDULER 1
|
||||
#endif
|
||||
|
||||
#endif //NRF_PWR_MGMT_ENABLED
|
||||
// </e>
|
||||
|
||||
// <q> RETARGET_ENABLED - retarget - Retargeting stdio functions
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user