Skip to content

Commit adc00ee

Browse files
pirunnordicjm
authored andcommitted
gazell: Add user gzp config file
Add capability to override gzp_config.h. Signed-off-by: Pirun Lee <pirun.lee@nordicsemi.no>
1 parent 7e318ac commit adc00ee

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

+8
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ Zigbee
171171

172172
|no_changes_yet_note|
173173

174+
Gazell
175+
------
176+
177+
* Added:
178+
179+
* :kconfig:option:`CONFIG_GAZELL_PAIRING_USER_CONFIG_ENABLE` and :kconfig:option:`CONFIG_GAZELL_PAIRING_USER_CONFIG_FILE`.
180+
The options allow to use user-specific file as Gazell pairing configuration header to override the pairing configuration.
181+
174182
Enhanced ShockBurst (ESB)
175183
-------------------------
176184

include/gzp.h

+4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
#include <stdint.h>
1616
#include <stdbool.h>
1717
#include <nrf_gzll.h>
18+
#if defined(CONFIG_GAZELL_PAIRING_USER_CONFIG_ENABLE)
19+
#include CONFIG_GAZELL_PAIRING_USER_CONFIG_FILE
20+
#else
1821
#include "gzp_config.h"
22+
#endif /* CONFIG_GAZELL_PAIRING_USER_CONFIG_ENABLE */
1923

2024
#ifdef __cplusplus
2125
extern "C" {

subsys/gazell/Kconfig

+13-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,19 @@ config GAZELL_PAIRING_HOST
3434
bool "Host"
3535
depends on ENTROPY_GENERATOR
3636

37-
endchoice
37+
endchoice # GAZELL_PAIRING_ROLE
38+
39+
config GAZELL_PAIRING_USER_CONFIG_ENABLE
40+
bool "Use application-specific Gazell Pairing configuration file"
41+
42+
if GAZELL_PAIRING_USER_CONFIG_ENABLE
43+
config GAZELL_PAIRING_USER_CONFIG_FILE
44+
string "Gazell Pairing configuration file name"
45+
default "gzp_user_config.h"
46+
help
47+
Modify the file name to use an application-specific Gazell Pairing configuration file.
48+
49+
endif # GAZELL_PAIRING_USER_CONFIG_ENABLE
3850

3951
if GAZELL_PAIRING_DEVICE
4052

0 commit comments

Comments
 (0)