-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathKconfig.environmental
More file actions
42 lines (35 loc) · 1.27 KB
/
Kconfig.environmental
File metadata and controls
42 lines (35 loc) · 1.27 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
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menuconfig APP_ENVIRONMENTAL
bool "Environmental module"
depends on BME680
default y
if APP_ENVIRONMENTAL
config APP_ENVIRONMENTAL_THREAD_STACK_SIZE
int "Thread stack size"
default 1024
config APP_ENVIRONMENTAL_WATCHDOG_TIMEOUT_SECONDS
int "Watchdog timeout"
default 120
help
Timeout in seconds for the environmental 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_ENVIRONMENTAL_MSG_PROCESSING_TIMEOUT_SECONDS.
Ensure that this value exceeds CONFIG_APP_ENVIRONMENTAL_MSG_PROCESSING_TIMEOUT_SECONDS.
A small difference between the two can mean more frequent watchdog feeds, which increases
power consumption.
config APP_ENVIRONMENTAL_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_ENVIRONMENTAL_WATCHDOG_TIMEOUT_SECONDS.
module = APP_ENVIRONMENTAL
module-str = ENVIRONMENTAL
source "subsys/logging/Kconfig.template.log_config"
endif # APP_ENVIRONMENTAL