Skip to content

Commit d010b54

Browse files
committed
Update to Mynewt-NimBLE version 1.9
This will update to the mainline Mynewt-nimble repo and pull in esp device support from the esp-nimble fork. Doing this allows for simplified maintenance and avoids having too much additional/unsupported upstream changes. This also allows for using more recent NimBLE versions and being able to pull in important updates that are not in esp-nimble.
1 parent 8e2d33f commit d010b54

283 files changed

Lines changed: 11247 additions & 54462 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.

src/NimBLEUtils.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,14 +542,22 @@ const char* NimBLEUtils::gapEventToString(uint8_t eventType) {
542542
return "BLE_GAP_EVENT_PARING_COMPLETE";
543543
case BLE_GAP_EVENT_SUBRATE_CHANGE: // 28
544544
return "BLE_GAP_EVENT_SUBRATE_CHANGE";
545+
# ifdef BLE_GAP_EVENT_VS_HCI
545546
case BLE_GAP_EVENT_VS_HCI: // 29
546547
return "BLE_GAP_EVENT_VS_HCI";
548+
# endif
549+
# ifdef BLE_GAP_EVENT_REATTEMPT_COUNT
547550
case BLE_GAP_EVENT_REATTEMPT_COUNT: // 31
548551
return "BLE_GAP_EVENT_REATTEMPT_COUNT";
552+
# endif
553+
# ifdef BLE_GAP_EVENT_AUTHORIZE
549554
case BLE_GAP_EVENT_AUTHORIZE: // 32
550555
return "BLE_GAP_EVENT_AUTHORIZE";
556+
# endif
557+
# ifdef BLE_GAP_EVENT_TEST_UPDATE
551558
case BLE_GAP_EVENT_TEST_UPDATE: // 33
552559
return "BLE_GAP_EVENT_TEST_UPDATE";
560+
# endif
553561
# ifdef BLE_GAP_EVENT_DATA_LEN_CHG
554562
case BLE_GAP_EVENT_DATA_LEN_CHG: // 34
555563
return "BLE_GAP_EVENT_DATA_LEN_CHG";

src/nimble/CODING_STANDARDS.md

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

src/nimble/LICENSE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,6 @@ missing licensing information. The BSD license was subsequently added to
225225
these files in later releases. These files are:
226226
* babblesim/hw/mcu/nordic/nrf52_bsim/include/mcu/cmsis_nvic.h
227227

228+
This product bundles part of linker scripts from Nordic Semiconductor,
229+
which is available under the "modified Tcl/Tk" license. Bundled files are:
230+
* targets/auracast_usb/nrf5340-mcu.ld

src/nimble/NOTICE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Apache Mynewt NimBLE
2-
Copyright 2015-2022 The Apache Software Foundation
3-
Modifications Copyright 2017-2022 Espressif Systems (Shanghai) CO., LTD.
2+
Copyright 2015-2025 The Apache Software Foundation
43

54
This product includes software developed at
65
The Apache Software Foundation (http://www.apache.org/).

src/nimble/RELEASE_NOTES.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RELEASE NOTES
22

3-
09 August 2023 - Apache NimBLE v1.6.0
3+
15 December 2025 - Apache NimBLE v1.9.0
44

55
For full release notes, please visit the
66
[Apache Mynewt Wiki](https://cwiki.apache.org/confluence/display/MYNEWT/Release+Notes).
@@ -10,11 +10,8 @@ replaces the proprietary SoftDevice on Nordic chipsets.
1010

1111
New features in this version of NimBLE include:
1212

13-
* Initial support for ISO broacaster
14-
* Support for Bluetooth Core Specification 5.4
15-
* FEM antenna control
16-
* nRF PHY driver unification
17-
* IPC HCI transport improvements
13+
* Characteristic Extended Properties descriptor in GATT server
14+
* Framed PDUs in ISO Adaptation Layer
1815

1916
If working on next-generation RTOS and Bluetooth protocol stack
2017
sounds exciting to you, get in touch, by sending a mail to the Apache Mynewt

src/nimble/esp_port/esp-hci/src/esp_nimble_hci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
#define BLE_HCI_EVENT_HDR_LEN (2)
3333
#define BLE_HCI_CMD_HDR_LEN (3)
3434

35+
typedef int ble_hci_trans_rx_cmd_fn(uint8_t *cmd, void *arg);
36+
typedef int ble_hci_trans_rx_acl_fn(struct os_mbuf *om, void *arg);
37+
3538
static ble_hci_trans_rx_cmd_fn *ble_hci_rx_cmd_hs_cb;
3639
static void *ble_hci_rx_cmd_hs_arg;
3740

src/nimble/nimble/transport/esp_ipc/src/hci_esp_ipc.c renamed to src/nimble/esp_port/esp_ipc/src/hci_esp_ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <string.h>
1313
#include <errno.h>
1414
#include <stdint.h>
15-
#include <nimble/porting/nimble/include/sysinit/sysinit.h>
15+
#include "nimble/porting/nimble/include/sysinit/sysinit.h"
1616
#include "nimble/porting/nimble/include/os/os_mbuf.h"
1717
#include "nimble/nimble/transport/include/nimble/transport.h"
1818
#include "nimble/esp_port/port/transport/include/esp_hci_transport.h"

src/nimble/nimble/transport/esp_ipc_legacy/src/hci_esp_ipc_legacy.c renamed to src/nimble/esp_port/esp_ipc_legacy/src/hci_esp_ipc_legacy.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
#include <string.h>
1111
#include <errno.h>
1212
#include <stdint.h>
13-
#include <nimble/porting/nimble/include/sysinit/sysinit.h>
13+
#include "nimble/porting/nimble/include/sysinit/sysinit.h"
1414
#include "nimble/nimble/transport/include/nimble/transport.h"
1515
#include "nimble/esp_port/esp-hci/include/esp_nimble_hci.h"
1616

17+
extern int ble_hci_trans_hs_acl_tx(struct os_mbuf *om);
18+
extern int ble_hci_trans_hs_cmd_tx(void *buf);
19+
1720
/* This file is only used by ESP32, ESP32C3 and ESP32S3. */
1821
int
1922
ble_transport_to_ll_cmd_impl(void *buf)

src/nimble/ext/tinycrypt/include/tinycrypt/cbc_mode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
#ifndef __TC_CBC_MODE_H__
7575
#define __TC_CBC_MODE_H__
7676

77-
#include <nimble/ext/tinycrypt/include/tinycrypt/aes.h>
77+
#include "nimble/ext/tinycrypt/include/tinycrypt/aes.h"
7878

7979
#ifdef __cplusplus
8080
extern "C" {

src/nimble/ext/tinycrypt/include/tinycrypt/ccm_mode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
#ifndef __TC_CCM_MODE_H__
7575
#define __TC_CCM_MODE_H__
7676

77-
#include <nimble/ext/tinycrypt/include/tinycrypt/aes.h>
77+
#include "nimble/ext/tinycrypt/include/tinycrypt/aes.h"
7878
#include <stddef.h>
7979

8080
#ifdef __cplusplus

0 commit comments

Comments
 (0)