Skip to content

Commit 599f334

Browse files
[nrf noup] Changed ICD mode names from interval to duration
The naming convention in Matter spec changed, so aligning of Kconfig names was required. Signed-off-by: Kamil Kasperczyk <kamil.kasperczyk@nordicsemi.no>
1 parent 1a5e5e5 commit 599f334

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

config/zephyr/Kconfig

+7-7
Original file line numberDiff line numberDiff line change
@@ -347,21 +347,21 @@ config CHIP_ICD_FAST_POLLING_INTERVAL
347347
Provides the Intermittently Connected Device fast polling interval in milliseconds while the
348348
device is in the active mode. It determines the fastest frequency at which the device will be able
349349
to receive the messages in the active mode. The CHIP_ICD_FAST_POLLING_INTERVAL shall be smaller than
350-
CHIP_ICD_ACTIVE_MODE_INTERVAL.
350+
CHIP_ICD_ACTIVE_MODE_DURATION.
351351

352-
config CHIP_ICD_IDLE_MODE_INTERVAL
353-
int "Intermittently Connected Device idle mode interval (s)"
352+
config CHIP_ICD_IDLE_MODE_DURATION
353+
int "Intermittently Connected Device idle mode duration (s)"
354354
default 120
355355
help
356-
Provides the Intermittently Connected Device idle mode interval in seconds.
356+
Provides the Intermittently Connected Device idle mode duration in seconds.
357357
It determines the maximum amount of time the device can stay in the idle mode, which means the
358358
device may be unreachable and not able to receive messages.
359359

360-
config CHIP_ICD_ACTIVE_MODE_INTERVAL
361-
int "Intermittently Connected Device active mode interval (ms)"
360+
config CHIP_ICD_ACTIVE_MODE_DURATION
361+
int "Intermittently Connected Device active mode duration (ms)"
362362
default 300
363363
help
364-
Provides the Intermittently Connected Device active mode interval in milliseconds.
364+
Provides the Intermittently Connected Device active mode duration in milliseconds.
365365
It determines the minimum amount of time the device shall stay in the active mode.
366366

367367
config CHIP_ICD_ACTIVE_MODE_THRESHOLD

src/platform/nrfconnect/CHIPPlatformConfig.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@
113113
#endif // CHIP_CONFIG_MRP_LOCAL_IDLE_RETRY_INTERVAL
114114

115115
#ifndef CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC
116-
#ifdef CONFIG_CHIP_ICD_IDLE_MODE_INTERVAL
117-
#define CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC CONFIG_CHIP_ICD_IDLE_MODE_INTERVAL
118-
#endif // CONFIG_CHIP_ICD_IDLE_MODE_INTERVAL
116+
#ifdef CONFIG_CHIP_ICD_IDLE_MODE_DURATION
117+
#define CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC CONFIG_CHIP_ICD_IDLE_MODE_DURATION
118+
#endif // CONFIG_CHIP_ICD_IDLE_MODE_DURATION
119119
#endif // CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC
120120

121121
#ifndef CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS
122-
#ifdef CONFIG_CHIP_ICD_ACTIVE_MODE_INTERVAL
123-
#define CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS CONFIG_CHIP_ICD_ACTIVE_MODE_INTERVAL
124-
#endif // CONFIG_CHIP_ICD_ACTIVE_MODE_INTERVAL
122+
#ifdef CONFIG_CHIP_ICD_ACTIVE_MODE_DURATION
123+
#define CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS CONFIG_CHIP_ICD_ACTIVE_MODE_DURATION
124+
#endif // CONFIG_CHIP_ICD_ACTIVE_MODE_DURATION
125125
#endif // CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS
126126

127127
#ifndef CHIP_CONFIG_ICD_ACTIVE_MODE_THRESHOLD_MS

0 commit comments

Comments
 (0)