Skip to content

Commit d3f9cd6

Browse files
author
Rafal Miecznik
committed
CI/CD: Synchronize ncs-aliro@012abed5a364 and ncs-door-lock-app
Source commit ID: @012abed5a364 sync-ncs-aliro-012abed5a364 Signed-off-by: Rafal Miecznik <rafal.miecznik@nordicsemi.com>
1 parent f962efa commit d3f9cd6

283 files changed

Lines changed: 12297 additions & 6875 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: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -6,77 +6,4 @@
66

77
rsource "drivers/Kconfig"
88
rsource "lib/Kconfig"
9-
10-
menuconfig NCS_DOOR_LOCK
11-
bool "NCS Door Lock Application [EXPERIMENTAL]"
12-
depends on (SOC_SERIES_NRF54LX || SOC_SERIES_NRF53X || SOC_SERIES_NRF52X)
13-
select EXPERIMENTAL
14-
imply NFC_T4T_APDU
15-
imply POLL
16-
# storage
17-
imply SETTINGS
18-
imply FLASH
19-
imply FLASH_MAP
20-
imply REQUIRES_FULL_LIBCPP
21-
imply REQUIRES_FULL_LIBC
22-
imply NEWLIB_LIBC_NANO if NEWLIB_LIBC
23-
help
24-
This option enables the Door Lock Application which uses the Aliro reader stack.
25-
26-
if NCS_DOOR_LOCK
27-
28-
orsource "lib/aliro/interfaces/logger/Kconfig"
29-
30-
config DOOR_LOCK_BLE_UWB
31-
bool "Aliro Bluetooth LE (BLE) transport together with ultra wideband (UWB)"
32-
help
33-
Enable the Aliro BLE transport protocol (TP). This is the transport layer
34-
used by the Reader to communicate with the User Device. It is used to send and
35-
receive packets over BLE. Additionally the UWB is enabled in order to manage the
36-
ranging between the Reader and the User Device.
37-
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-
43-
if DOOR_LOCK_BLE_UWB
44-
45-
config DOOR_LOCK_BLE_UWB_MAX_SESSIONS
46-
int "Maximum number of BLE and UWB sessions"
47-
range 1 BT_MAX_CONN
48-
default BT_MAX_CONN
49-
help
50-
The maximum number of BLE and UWB sessions that can be established.
51-
52-
endif # DOOR_LOCK_BLE_UWB
53-
54-
rsource "lib/aliro/Kconfig.defconfig"
55-
56-
config DOOR_LOCK_DFU_BLE_SMP
57-
bool "Enable DFU over SMP"
58-
depends on !CHIP
59-
help
60-
Enables Device Firmware Upgrade over Bluetooth LE.
61-
62-
config DOOR_LOCK_DFU_BLE_SMP_STANDALONE
63-
bool
64-
default y if DOOR_LOCK_DFU_BLE_SMP && !DOOR_LOCK_BLE_UWB && !DOOR_LOCK_BLE_NUS
65-
help
66-
Automatically enabled when DFU over SMP is enabled standalone (without DOOR_LOCK_BLE_UWB or DOOR_LOCK_BLE_NUS).
67-
This simplifies conditional compilation checks in the code.
68-
69-
config DOOR_LOCK_BLE_NUS
70-
bool "Enable Nordic Uart Service (NUS)"
71-
depends on !CHIP
72-
help
73-
Enables the Bluetooth LE Nordic Uart Service (NUS). Using NUS service you can control a door lock using pre-defined BLE commands.
74-
75-
# Source BLE defconfig when any BLE feature is enabled
76-
if DOOR_LOCK_BLE_UWB || DOOR_LOCK_DFU_BLE_SMP || DOOR_LOCK_BLE_NUS
77-
78-
rsource "lib/aliro/Kconfig.ble.defconfig"
79-
80-
endif # DOOR_LOCK_BLE_UWB || DOOR_LOCK_DFU_BLE_SMP || DOOR_LOCK_BLE_NUS
81-
82-
endif # NCS_DOOR_LOCK
9+
rsource "subsys/Kconfig"

app/Kconfig

Lines changed: 18 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,65 +4,39 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7+
mainmenu "nRF Door Lock and Access Control Add-on"
8+
79
module = DOOR_LOCK_APP
810
module-str = NCS_DOOR_LOCK_APP
911
module-dep = LOG
1012
module-help = Enables nRF Connect SDK Door Lock Application log messages.
1113
source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"
1214

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-
3115
config DOOR_LOCK_CLI
32-
bool "Door Lock CLI support"
33-
default y
16+
bool "CLI support"
17+
default y if (!DOOR_LOCK_RELEASE || !CHIP)
3418
select SHELL
3519
select REBOOT
3620
help
3721
Enable support for Door Lock CLI.
3822

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.
23+
config DOOR_LOCK_RELEASE
24+
bool "Release configuration"
25+
help
26+
In this configuration:
27+
Aliro stack logs are disabled.
28+
RFAL NFC driver logs are disabled.
29+
Shell commands are disabled.
30+
Device reset automatically on fatal error.
5631

57-
rsource "src/aliro/Kconfig"
32+
rsource "src/Kconfig"
5833

59-
if DOOR_LOCK_BLE_NUS
60-
rsource "src/bt_nus/Kconfig"
61-
endif # DOOR_LOCK_BLE_NUS
34+
rsource "Kconfig.defconfig"
6235

63-
if DOOR_LOCK_DFU_BLE_SMP
64-
rsource "src/dfu_smp/Kconfig"
65-
endif # DOOR_LOCK_DFU_BLE_SMP
36+
# Source BLE defconfig when any BLE feature is enabled
37+
if DOOR_LOCK_BLE_UWB || DOOR_LOCK_DFU_BLE_SMP || DOOR_LOCK_BLE_NUS
38+
rsource "Kconfig.ble.defconfig"
39+
endif # DOOR_LOCK_BLE_UWB || DOOR_LOCK_DFU_BLE_SMP || DOOR_LOCK_BLE_NUS
6640

6741
if CHIP
6842

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
config BT
88
default y
99

10-
config BT_DEVICE_NAME
11-
default "AliroDL"
12-
1310
config BT_PERIPHERAL
1411
default y
1512

@@ -48,3 +45,7 @@ config BT_BONDABLE
4845

4946
config BT_ID_MAX
5047
default 2 if BT_BONDABLE
48+
49+
config BT_MAX_CONN
50+
default 2 if DOOR_LOCK_BLE_UWB && (DOOR_LOCK_BLE_NUS || DOOR_LOCK_DFU_BLE_SMP)
51+
default 1
Lines changed: 5 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,8 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
# crypto default configuration
8-
config MBEDTLS_PSA_CRYPTO_C
9-
default y
10-
11-
config MBEDTLS_ENABLE_HEAP
12-
default y
13-
14-
config MBEDTLS_HEAP_SIZE
15-
default 8192
16-
17-
config MBEDTLS_X509_LIBRARY
18-
default y
19-
20-
config PSA_WANT_ALG_ECDSA
21-
default y
22-
23-
config PSA_WANT_ALG_ECDH
24-
default y
25-
26-
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
27-
default y
28-
29-
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
30-
default y
31-
32-
config PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT
33-
default y
34-
35-
config PSA_WANT_ECC_SECP_R1_256
36-
default y
37-
38-
config PSA_WANT_ALG_SHA_256
39-
default y
40-
41-
config PSA_WANT_ALG_HKDF
42-
default y
43-
44-
config PSA_WANT_ALG_HMAC
45-
default y
46-
47-
config PSA_WANT_KEY_TYPE_HMAC
48-
default y
49-
50-
config PSA_WANT_KEY_TYPE_AES
51-
default y
52-
53-
config PSA_WANT_ALG_ECB_NO_PADDING
54-
default y
55-
56-
config PSA_WANT_GENERATE_RANDOM
57-
default y
58-
59-
config PSA_WANT_ALG_GCM
60-
default y
7+
config BT_DEVICE_NAME
8+
default "AliroDL"
619

6210
config TRUSTED_STORAGE
6311
default y
@@ -73,10 +21,6 @@ endchoice
7321
config HW_UNIQUE_KEY_WRITE_ON_CRYPTO_INIT
7422
default y if (SOC_NRF5340_CPUAPP || SOC_SERIES_NRF54LX)
7523

76-
# APDU library
77-
config NFC_T4T_APDU
78-
default y
79-
8024
# required by Aliro persistent storage
8125
config FLASH
8226
default y
@@ -91,39 +35,23 @@ config NVS_LOOKUP_CACHE_SIZE
9135
default 512 if NVS
9236

9337
config NVS_LOOKUP_CACHE_FOR_SETTINGS
94-
default y if NVS
38+
default y if SETTINGS_NVS
9539

9640
config ZMS
9741
default y if SOC_FLASH_NRF_RRAM
9842

9943
config ZMS_LOOKUP_CACHE_SIZE
100-
default 512 if ZMS
44+
default 512 if SETTINGS_ZMS
10145

10246
config ZMS_LOOKUP_CACHE_FOR_SETTINGS
103-
default y if ZMS
47+
default y if SETTINGS_ZMS
10448

10549
config SETTINGS
10650
default y
10751

108-
# required by Aliro CLI
109-
config REBOOT
110-
default y
111-
112-
config SHELL
113-
default y
114-
11552
config EVENTS
11653
default y
11754

118-
config SMF
119-
default y
120-
121-
config SMF_ANCESTOR_SUPPORT
122-
default y
123-
124-
config SMF_INITIAL_TRANSITION
125-
default y
126-
12755
config NRF_SECURITY
12856
default y
12957

@@ -150,12 +78,6 @@ endchoice
15078
config SHELL_CMD_BUFF_SIZE
15179
default 256
15280

153-
config ZCBOR
154-
default y
155-
156-
config ZCBOR_CANONICAL
157-
default y
158-
15981
if !CHIP
16082

16183
config MAIN_STACK_SIZE

app/boards/nrf52840dk_nrf52840.overlay

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@
6363
};
6464

6565
aliases {
66-
access-decision-indicator = &led1; /* green LED2 on nRF52840DK */
66+
lock-sim-indicator = &led1; /* green LED2 on nRF52840DK */
6767
};
6868
};
6969

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+

0 commit comments

Comments
 (0)