-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathKconfig.battery
More file actions
44 lines (35 loc) · 1.2 KB
/
Kconfig.battery
File metadata and controls
44 lines (35 loc) · 1.2 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
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menu "Battery"
config APP_BATTERY
bool "Battery module"
if APP_BATTERY
config APP_BATTERY_THREAD_STACK_SIZE
int "Thread stack size"
default 1536
config APP_BATTERY_WATCHDOG_TIMEOUT_SECONDS
int "Watchdog timeout"
default 120
help
Timeout in seconds for the battery 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_BATTERY_MSG_PROCESSING_TIMEOUT_SECONDS.
Ensure that this value exceeds CONFIG_APP_BATTERY_MSG_PROCESSING_TIMEOUT_SECONDS.
A small difference between the two can mean more frequent watchdog feeds, which increases
power consumption.
config APP_BATTERY_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_BATTERY_WATCHDOG_TIMEOUT_SECONDS.
module = APP_BATTERY
module-str = Battery
source "subsys/logging/Kconfig.template.log_config"
endif # APP_BATTERY
endmenu # Battery