Skip to content

Commit 9711d34

Browse files
author
Adrian Gielniewski
committed
CI/CD: Synchronize ncs-aliro@d052b7129f5e and ncs-door-lock-app
Source commit ID: @d052b7129f5e sync-ncs-aliro-d052b7129f5e Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.com>
1 parent f962efa commit 9711d34

251 files changed

Lines changed: 11407 additions & 6258 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66

77
add_subdirectory(drivers)
88
add_subdirectory(lib)
9+
add_subdirectory(subsys)

CODEOWNERS

Lines changed: 0 additions & 13 deletions
This file was deleted.

Kconfig

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
rsource "drivers/Kconfig"
88
rsource "lib/Kconfig"
9+
rsource "subsys/Kconfig"
910

1011
menuconfig NCS_DOOR_LOCK
1112
bool "NCS Door Lock Application [EXPERIMENTAL]"
1213
depends on (SOC_SERIES_NRF54LX || SOC_SERIES_NRF53X || SOC_SERIES_NRF52X)
1314
select EXPERIMENTAL
15+
select NCS_ALIRO
1416
imply NFC_T4T_APDU
1517
imply POLL
1618
# storage
@@ -25,21 +27,15 @@ menuconfig NCS_DOOR_LOCK
2527

2628
if NCS_DOOR_LOCK
2729

28-
orsource "lib/aliro/interfaces/logger/Kconfig"
29-
3030
config DOOR_LOCK_BLE_UWB
3131
bool "Aliro Bluetooth LE (BLE) transport together with ultra wideband (UWB)"
32+
select NCS_ALIRO_BLE_UWB
3233
help
3334
Enable the Aliro BLE transport protocol (TP). This is the transport layer
3435
used by the Reader to communicate with the User Device. It is used to send and
3536
receive packets over BLE. Additionally the UWB is enabled in order to manage the
3637
ranging between the Reader and the User Device.
3738

38-
config DISABLE_ALIRO_NFC_TP
39-
bool "Disable NFC transport protocol for development purposes"
40-
help
41-
Disable the NFC transport protocol. This is useful if you want to use Aliro with BLE only.
42-
4339
if DOOR_LOCK_BLE_UWB
4440

4541
config DOOR_LOCK_BLE_UWB_MAX_SESSIONS
@@ -79,4 +75,14 @@ rsource "lib/aliro/Kconfig.ble.defconfig"
7975

8076
endif # DOOR_LOCK_BLE_UWB || DOOR_LOCK_DFU_BLE_SMP || DOOR_LOCK_BLE_NUS
8177

78+
config DOOR_LOCK_RELEASE
79+
bool "Enable Aliro release configuration"
80+
help
81+
In this configuration:
82+
Aliro stack logs are disabled.
83+
RFAL NFC driver logs are disabled.
84+
Shell commands are disabled.
85+
Device reset automatically on fatal error.
86+
8287
endif # NCS_DOOR_LOCK
88+

app/Kconfig

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,14 @@ module-dep = LOG
1010
module-help = Enables nRF Connect SDK Door Lock Application log messages.
1111
source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"
1212

13-
choice DOOR_LOCK_ACCESS_MANAGER_IMPLEMENTATION
14-
prompt "Access Manager implementation"
15-
default DOOR_LOCK_ACCESS_MANAGER_IMPLEMENTATION_DEFAULT
16-
17-
config DOOR_LOCK_ACCESS_MANAGER_IMPLEMENTATION_DEFAULT
18-
bool "Access Manager default implementation"
19-
help
20-
Uses the default implementation of the Access Manager
21-
provided by the Door Lock Reference Application.
22-
23-
config DOOR_LOCK_ACCESS_MANAGER_IMPLEMENTATION_CUSTOM
24-
bool "Access Manager custom implementation"
25-
help
26-
Uses a custom implementation of the Access Manager.
27-
This implementation is based on provided template
28-
that can be tailored to specific requirements.
29-
endchoice
30-
3113
config DOOR_LOCK_CLI
3214
bool "Door Lock CLI support"
33-
default y
15+
default y if (!DOOR_LOCK_RELEASE || !CHIP)
3416
select SHELL
3517
select REBOOT
3618
help
3719
Enable support for Door Lock CLI.
3820

39-
config DOOR_LOCK_PRINT_READER_GROUP_IDENTIFIER
40-
bool "Print reader group identifier that should be provisioned into the User Device"
41-
default y
42-
help
43-
Enable printing of the reader group identifier that should be provisioned into the User Device.
44-
45-
config DOOR_LOCK_USE_TEST_READER_IDENTIFIER
46-
bool "Use test reader identifier"
47-
default y
48-
help
49-
Initialize the reader Group Identifier and Group Sub Identifier to test values.
50-
51-
config DOOR_LOCK_USE_TEST_KEYS
52-
bool "Use test keys"
53-
default y
54-
help
55-
Initialize the reader keys to test values.
56-
5721
rsource "src/aliro/Kconfig"
5822

5923
if DOOR_LOCK_BLE_NUS

app/boards/nrf52840dk_nrf52840.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@
7070
&mx25r64 {
7171
status = "okay";
7272
};
73+
74+
&gpio0 {
75+
status = "okay";
76+
/* Use PORT event rather than GPIOTE IN event, to save power */
77+
sense-edge-mask = <0x00000008>; /* P0.03 */
78+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf52840dk_nrf52840.overlay"
8+
9+
&uart1 {
10+
status = "disabled";
11+
};
12+
13+
&adc {
14+
status = "disabled";
15+
};
16+
17+
&i2c0 {
18+
status = "disabled";
19+
};
20+
21+
&i2c1 {
22+
status = "disabled";
23+
};
24+
25+
&pwm0 {
26+
status = "disabled";
27+
};
28+
29+
&nfct {
30+
status = "disabled";
31+
};
32+
33+
&usbd {
34+
status = "disabled";
35+
};
36+

app/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@
5454
&mx25r64 {
5555
status = "okay";
5656
};
57+
58+
&gpio0 {
59+
status = "okay";
60+
/* Use PORT event rather than GPIOTE IN event, to save power */
61+
sense-edge-mask = <0x00000010>; /* P0.04 */
62+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf5340dk_nrf5340_cpuapp.overlay"
8+
9+
&uart1 {
10+
status = "disabled";
11+
};
12+
13+
&adc {
14+
status = "disabled";
15+
};
16+
17+
&i2c1 {
18+
status = "disabled";
19+
};
20+
21+
&pwm0 {
22+
status = "disabled";
23+
};
24+
25+
&nfct {
26+
status = "disabled";
27+
};
28+
29+
&usbd {
30+
status = "disabled";
31+
};
32+
33+
&spi4 {
34+
status = "disabled";
35+
};
36+

app/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,9 @@
9191
&mx25r64 {
9292
status = "okay";
9393
};
94+
95+
&gpio0 {
96+
status = "okay";
97+
/* Use PORT event rather than GPIOTE IN event, to save power */
98+
sense-edge-mask = <0x00000010>; /* P0.04 */
99+
};
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
8+
9+
&uart30 {
10+
status = "disabled";
11+
};
12+
13+
&adc {
14+
status = "disabled";
15+
};
16+
17+
&pwm20 {
18+
status = "disabled";
19+
};
20+
21+
&nfct {
22+
status = "disabled";
23+
};
24+
25+
&spi22 {
26+
status = "disabled";
27+
};
28+

0 commit comments

Comments
 (0)