Merge branch 'bugfix/sync_reporting_files' into 'master'

NimBLE : Sync common porting and nimble submodule files

See merge request espressif/esp-idf!23655
pull/11655/head
Rahul Tank 2023-06-07 18:53:34 +08:00
commit 6ace246ba2
7 zmienionych plików z 22 dodań i 29 usunięć

@ -1 +1 @@
Subproject commit ca668cf0aa11704f3fde4b641cb2a30758792975
Subproject commit c03504a4a4f504fff3895ff77baf83c2cba59f74

Wyświetl plik

@ -34,8 +34,8 @@
extern "C" {
#endif
#define BLE_HCI_MAX_DATA_LEN (MYNEWT_VAL(BLE_TRANSPORT_EVT_SIZE) - \
sizeof(struct ble_hci_ev))
#define BLE_HCI_MAX_DATA_LEN (MYNEWT_VAL(BLE_TRANSPORT_EVT_SIZE) - \
sizeof(struct ble_hci_ev))
/* Generic command header */
struct ble_hci_cmd {
@ -490,20 +490,20 @@ struct ble_hci_le_rd_resolv_list_size_rp {
} __attribute__((packed));
#define BLE_HCI_OCF_LE_RD_PEER_RESOLV_ADDR (0x002B)
struct ble_hci_le_rd_peer_recolv_addr_cp {
struct ble_hci_le_rd_peer_resolv_addr_cp {
uint8_t peer_addr_type;
uint8_t peer_id_addr[6];
} __attribute__((packed));
struct ble_hci_le_rd_peer_recolv_addr_rp {
struct ble_hci_le_rd_peer_resolv_addr_rp {
uint8_t rpa[6];
} __attribute__((packed));
#define BLE_HCI_OCF_LE_RD_LOCAL_RESOLV_ADDR (0x002C)
struct ble_hci_le_rd_local_recolv_addr_cp {
struct ble_hci_le_rd_local_resolv_addr_cp {
uint8_t peer_addr_type;
uint8_t peer_id_addr[6];
} __attribute__((packed));
struct ble_hci_le_rd_local_recolv_addr_rp {
struct ble_hci_le_rd_local_resolv_addr_rp {
uint8_t rpa[6];
} __attribute__((packed));
@ -1129,8 +1129,9 @@ struct ble_hci_le_subrate_req_cp {
uint16_t supervision_tmo;
} __attribute__((packed));
/* --- Vendor specific commands (OGF 0x00FF) */
#define BLE_HCI_OCF_VS_RD_STATIC_ADDR (0x0001)
/* --- Vendor specific commands (OGF 0x003F) */
/* Read Random Static Address */
#define BLE_HCI_OCF_VS_RD_STATIC_ADDR (MYNEWT_VAL(BLE_HCI_VS_OCF_OFFSET) + (0x0001))
struct ble_hci_vs_rd_static_addr_rp {
uint8_t addr[6];
} __attribute__((packed));
@ -1520,8 +1521,8 @@ struct ble_hci_ev_auth_pyld_tmo {
#define BLE_HCI_EVCODE_SAM_STATUS_CHG (0x58)
#define BLE_HCI_EVCODE_VENDOR_DEBUG (0xFF)
struct ble_hci_ev_vendor_debug {
#define BLE_HCI_EVCODE_VS_DEBUG (0xFF)
struct ble_hci_ev_vs_debug {
uint8_t id;
uint8_t data[0];
} __attribute__((packed));
@ -1959,7 +1960,9 @@ struct ble_hci_ev_le_subev_subrate_change {
#elif MYNEWT_VAL(BLE_VERSION) == 52
#define BLE_HCI_VER_BCS BLE_HCI_VER_BCS_5_2
#define BLE_LMP_VER_BCS BLE_LMP_VER_BCS_5_2
#elif MYNEWT_VAL(BLE_VERSION) == 53
#define BLE_HCI_VER_BCS BLE_HCI_VER_BCS_5_3
#define BLE_LMP_VER_BCS BLE_LMP_VER_BCS_5_3
#endif
#define BLE_HCI_DATA_HDR_SZ 4
@ -1967,7 +1970,8 @@ struct ble_hci_ev_le_subev_subrate_change {
#define BLE_HCI_DATA_PB(handle_pb_bc) (((handle_pb_bc) & 0x3000) >> 12)
#define BLE_HCI_DATA_BC(handle_pb_bc) (((handle_pb_bc) & 0xc000) >> 14)
struct hci_data_hdr {
struct hci_data_hdr
{
uint16_t hdh_handle_pb_bc;
uint16_t hdh_len;
};

Wyświetl plik

@ -38,15 +38,6 @@ extern "C" {
#define static_assert _Static_assert
#endif
#ifndef min
#define min(a, b) ((a)<(b)?(a):(b))
#endif
#ifndef max
#define max(a, b) ((a)>(b)?(a):(b))
#endif
#include "soc/soc_caps.h"
#include "nimble/nimble_npl.h"
#define OS_ALIGN(__n, __a) ( \

Wyświetl plik

@ -27,7 +27,7 @@
#ifndef H_OS_ERROR_
#define H_OS_ERROR_
#include <stdbool.h>
#include "os/os.h"
#ifdef __cplusplus
extern "C" {

Wyświetl plik

@ -36,7 +36,6 @@
#ifndef _OS_MBUF_H
#define _OS_MBUF_H
#include <stdbool.h>
#include "os/os.h"
#ifdef __cplusplus
@ -141,11 +140,11 @@ struct os_mqueue {
/** Get a packet header pointer given an mbuf pointer */
#define OS_MBUF_PKTHDR(__om) ((struct os_mbuf_pkthdr *) \
((uint8_t *)&(__om)->om_data + sizeof(struct os_mbuf)))
(void *)((uint8_t *)&(__om)->om_data + sizeof(struct os_mbuf)))
/** Given a mbuf packet header pointer, return a pointer to the mbuf */
#define OS_MBUF_PKTHDR_TO_MBUF(__hdr) \
(struct os_mbuf *)((uint8_t *)(__hdr) - sizeof(struct os_mbuf))
(struct os_mbuf *)(void *)((uint8_t *)(__hdr) - sizeof(struct os_mbuf))
/**
* Gets the length of an entire mbuf chain. The specified mbuf must have a

Wyświetl plik

@ -148,7 +148,6 @@ struct os_mempool_info {
struct os_mempool *os_mempool_info_get_next(struct os_mempool *,
struct os_mempool_info *);
#if (OS_ALIGNMENT == 4)
typedef uint32_t os_membuf_t;
#elif (OS_ALIGNMENT == 8)

Wyświetl plik

@ -66,7 +66,7 @@ static struct os_mempool os_msys_init_2_mempool;
#define OS_MSYS_SANITY_ENABLED \
(OS_MSYS_1_SANITY_MIN_COUNT > 0 || \
OS_MSYS_1_SANITY_MIN_COUNT > 0)
OS_MSYS_2_SANITY_MIN_COUNT > 0)
#if OS_MSYS_SANITY_ENABLED
static struct os_sanity_check os_msys_sc;
@ -91,7 +91,7 @@ IRAM_ATTR os_msys_sanity_min_count(int idx)
return OS_MSYS_1_SANITY_MIN_COUNT;
case 1:
return OS_MSYS_1_SANITY_MIN_COUNT;
return OS_MSYS_2_SANITY_MIN_COUNT;
default:
BLE_LL_ASSERT(0);