File tree Expand file tree Collapse file tree 11 files changed +538
-419
lines changed
include/bluetooth/services
samples/mcumgr/ble_mcumgr
subsys/bluetooth/services Expand file tree Collapse file tree 11 files changed +538
-419
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) 2025 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
+ */
6
+
7
+ /** @file
8
+ *
9
+ * @defgroup ble_mcumgr BLE MCUmgr Service library
10
+ * @{
11
+ * @brief Library for handling MCUmgr over BLE.
12
+ */
13
+
14
+ #ifndef BLE_MCUMGR_H__
15
+ #define BLE_MCUMGR_H__
16
+
17
+ #include <stdint.h>
18
+ #include <stdbool.h>
19
+ #include <ble.h>
20
+ #include <nrf_sdh_ble.h>
21
+
22
+ #ifdef __cplusplus
23
+ extern "C" {
24
+ #endif
25
+
26
+ /**
27
+ * @brief Function for initializing the MCUmgr Bluetooth service.
28
+ *
29
+ * @retval 0 On success.
30
+ * @retval -EINVAL Invalid parameters.
31
+ */
32
+ int ble_mcumgr_init (void );
33
+
34
+ #ifdef __cplusplus
35
+ }
36
+ #endif
37
+
38
+ #endif /* BLE_MCUMGR_H__ */
39
+
40
+ /** @} */
Original file line number Diff line number Diff line change @@ -9,11 +9,6 @@ cmake_minimum_required(VERSION 3.20.0)
9
9
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
10
10
project (ble_mcumgr )
11
11
12
- zephyr_include_directories (${ZEPHYR_BASE} /subsys/mgmt/mcumgr/util/include )
13
- zephyr_include_directories (${ZEPHYR_BASE} /subsys/mgmt/mcumgr/grp/img_mgmt/include )
14
- zephyr_include_directories (${ZEPHYR_BASE} /subsys/mgmt/mcumgr/transport/include )
15
12
target_sources (app PRIVATE
16
13
src/main.c
17
14
)
18
- zephyr_linker_sources (SECTIONS mcumgr_handler.ld )
19
- zephyr_link_libraries (MCUBOOT_BOOTUTIL )
Original file line number Diff line number Diff line change 6
6
7
7
menu "BLE MCUmgr sample"
8
8
9
- module=BLE_MCUMGR
9
+ module=APP
10
10
module-dep=LOG
11
11
module-str=BLE MCUmgr Sample
12
12
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS=y
39
39
CONFIG_MCUMGR_GRP_OS_BOOTLOADER_INFO=y
40
40
CONFIG_NRF_SDH_BLE=y
41
41
CONFIG_NRF_SDH=y
42
+ CONFIG_BLE_MCUMGR=y
42
43
43
44
CONFIG_LOG=y
44
45
CONFIG_LOG_MODE_MINIMAL=y
You can’t perform that action at this time.
0 commit comments