-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathKconfig.power
More file actions
69 lines (57 loc) · 1.91 KB
/
Kconfig.power
File metadata and controls
69 lines (57 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menu "Power"
config APP_POWER
bool "Power module"
depends on NRF_FUEL_GAUGE
depends on NPM13XX_CHARGER
if APP_POWER
config APP_POWER_SHELL
bool "Power module shell commands"
default y if SHELL
help
Enable shell commands for the power module.
config APP_POWER_DISABLE_UART_ON_VBUS_REMOVED
bool "Disable UART when VBUS is removed"
default y
help
Disable UART when VBUS is removed to save power.
The UART is re-enabled when VBUS is connected again.
This option is disabled by default due to UART hanging when being re-enabled.
config APP_POWER_THREAD_STACK_SIZE
int "Thread stack size"
default 1344
config APP_POWER_WATCHDOG_TIMEOUT_SECONDS
int "Watchdog timeout"
default 120
help
Timeout in seconds for the power module watchdog.
The timeout given in this option covers both:
* Waiting for an incoming message in zbus_sub_wait_msg().
* Time spent processing the message, defined by
CONFIG_APP_POWER_MSG_PROCESSING_TIMEOUT_SECONDS.
Ensure that this value exceeds CONFIG_APP_POWER_MSG_PROCESSING_TIMEOUT_SECONDS.
A small difference between the two can mean more frequent watchdog feeds, which increases
power consumption.
config APP_POWER_MSG_PROCESSING_TIMEOUT_SECONDS
int "Maximum message processing time"
default 3
help
Maximum time allowed for processing a single message in the module's state machine.
The value must be smaller than CONFIG_APP_POWER_WATCHDOG_TIMEOUT_SECONDS.
config APP_POWER_TIMESTAMP
bool "Include timestamp in power message"
depends on DATE_TIME
default y
help
Include a timestamp in the power message of POWER_BATTERY_PERCENTAGE_SAMPLE_RESPONSE
type.
The timestamp is the current time in milliseconds since epoch.
module = APP_POWER
module-str = Power
source "subsys/logging/Kconfig.template.log_config"
endif # APP_POWER
endmenu # Power