mirror of https://github.com/ARMmbed/mbed-os.git
Namespace softdevice headers to avoid conflict wih other headers.
parent
7ad0af3265
commit
1b826f286b
|
@ -44,16 +44,16 @@
|
|||
|
||||
*/
|
||||
|
||||
#ifndef BLE_H__
|
||||
#define BLE_H__
|
||||
#ifndef NRF_BLE_H__
|
||||
#define NRF_BLE_H__
|
||||
|
||||
#include "ble_ranges.h"
|
||||
#include "ble_types.h"
|
||||
#include "ble_gap.h"
|
||||
#include "ble_l2cap.h"
|
||||
#include "ble_gatt.h"
|
||||
#include "ble_gattc.h"
|
||||
#include "ble_gatts.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf_ble_l2cap.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
#include "nrf_ble_gattc.h"
|
||||
#include "nrf_ble_gatts.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -624,7 +624,7 @@ SVCALL(SD_BLE_OPT_GET, uint32_t, sd_ble_opt_get(uint32_t opt_id, ble_opt_t *p_op
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* BLE_H__ */
|
||||
#endif /* NRF_BLE_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,11 +40,11 @@
|
|||
@brief Definitions and prototypes for the GAP interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GAP_H__
|
||||
#define BLE_GAP_H__
|
||||
#ifndef NRF_BLE_GAP_H__
|
||||
#define NRF_BLE_GAP_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -1735,7 +1735,7 @@ SVCALL(SD_BLE_GAP_CONNECT_CANCEL, uint32_t, sd_ble_gap_connect_cancel(void));
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_GAP_H__
|
||||
#endif // NRF_BLE_GAP_H__
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,11 +40,11 @@
|
|||
@brief Common definitions and prototypes for the GATT interfaces.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GATT_H__
|
||||
#define BLE_GATT_H__
|
||||
#ifndef NRF_BLE_GATT_H__
|
||||
#define NRF_BLE_GATT_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -202,7 +202,7 @@ typedef struct
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_GATT_H__
|
||||
#endif // NRF_BLE_GATT_H__
|
||||
|
||||
/** @} */
|
||||
|
|
@ -40,12 +40,12 @@
|
|||
@brief Definitions and prototypes for the GATT Client interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GATTC_H__
|
||||
#define BLE_GATTC_H__
|
||||
#ifndef NRF_BLE_GATTC_H__
|
||||
#define NRF_BLE_GATTC_H__
|
||||
|
||||
#include "ble_gatt.h"
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -561,7 +561,7 @@ SVCALL(SD_BLE_GATTC_ATTR_INFO_DISCOVER, uint32_t, sd_ble_gattc_attr_info_discove
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* BLE_GATTC_H__ */
|
||||
#endif /* NRF_BLE_GATTC_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,14 +40,14 @@
|
|||
@brief Definitions and prototypes for the GATTS interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GATTS_H__
|
||||
#define BLE_GATTS_H__
|
||||
#ifndef NRF_BLE_GATTS_H__
|
||||
#define NRF_BLE_GATTS_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "ble_l2cap.h"
|
||||
#include "ble_gap.h"
|
||||
#include "ble_gatt.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_ble_l2cap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -715,7 +715,7 @@ SVCALL(SD_BLE_GATTS_ATTR_GET, uint32_t, sd_ble_gatts_attr_get(uint16_t handle, b
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_GATTS_H__
|
||||
#endif // NRF_BLE_GATTS_H__
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,8 +40,8 @@
|
|||
*/
|
||||
|
||||
|
||||
#ifndef BLE_HCI_H__
|
||||
#define BLE_HCI_H__
|
||||
#ifndef NRF_BLE_HCI_H__
|
||||
#define NRF_BLE_HCI_H__
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -126,6 +126,6 @@ extern "C" {
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_HCI_H__
|
||||
#endif // NRF_BLE_HCI_H__
|
||||
|
||||
/** @} */
|
|
@ -40,12 +40,12 @@
|
|||
@brief Definitions and prototypes for the L2CAP interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_L2CAP_H__
|
||||
#define BLE_L2CAP_H__
|
||||
#ifndef NRF_BLE_L2CAP_H__
|
||||
#define NRF_BLE_L2CAP_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "ble_err.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_ble_err.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -195,7 +195,7 @@ SVCALL(SD_BLE_L2CAP_TX, uint32_t, sd_ble_l2cap_tx(uint16_t conn_handle, ble_l2ca
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_L2CAP_H__
|
||||
#endif // NRF_BLE_L2CAP_H__
|
||||
|
||||
/**
|
||||
@}
|
|
@ -54,8 +54,8 @@
|
|||
which defines names of each individual SVC code based on the range start value.
|
||||
*/
|
||||
|
||||
#ifndef BLE_RANGES_H__
|
||||
#define BLE_RANGES_H__
|
||||
#ifndef NRF_BLE_RANGES_H__
|
||||
#define NRF_BLE_RANGES_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -118,7 +118,7 @@ extern "C" {
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* BLE_RANGES_H__ */
|
||||
#endif /* NRF_BLE_RANGES_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -43,8 +43,8 @@
|
|||
@brief Common types and macro definitions for the BLE SoftDevice.
|
||||
*/
|
||||
|
||||
#ifndef BLE_TYPES_H__
|
||||
#define BLE_TYPES_H__
|
||||
#ifndef NRF_BLE_TYPES_H__
|
||||
#define NRF_BLE_TYPES_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -197,7 +197,7 @@ typedef struct
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* BLE_TYPES_H__ */
|
||||
#endif /* NRF_BLE_TYPES_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -44,16 +44,16 @@
|
|||
|
||||
*/
|
||||
|
||||
#ifndef BLE_H__
|
||||
#define BLE_H__
|
||||
#ifndef NRF_BLE_H__
|
||||
#define NRF_BLE_H__
|
||||
|
||||
#include "ble_ranges.h"
|
||||
#include "ble_types.h"
|
||||
#include "ble_gap.h"
|
||||
#include "ble_l2cap.h"
|
||||
#include "ble_gatt.h"
|
||||
#include "ble_gattc.h"
|
||||
#include "ble_gatts.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf_ble_l2cap.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
#include "nrf_ble_gattc.h"
|
||||
#include "nrf_ble_gatts.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -624,7 +624,7 @@ SVCALL(SD_BLE_OPT_GET, uint32_t, sd_ble_opt_get(uint32_t opt_id, ble_opt_t *p_op
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* BLE_H__ */
|
||||
#endif /* NRF_BLE_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,11 +40,11 @@
|
|||
@brief Definitions and prototypes for the GAP interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GAP_H__
|
||||
#define BLE_GAP_H__
|
||||
#ifndef NRF_BLE_GAP_H__
|
||||
#define NRF_BLE_GAP_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -1735,7 +1735,7 @@ SVCALL(SD_BLE_GAP_CONNECT_CANCEL, uint32_t, sd_ble_gap_connect_cancel(void));
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_GAP_H__
|
||||
#endif // NRF_BLE_GAP_H__
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,11 +40,11 @@
|
|||
@brief Common definitions and prototypes for the GATT interfaces.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GATT_H__
|
||||
#define BLE_GATT_H__
|
||||
#ifndef NRF_BLE_GATT_H__
|
||||
#define NRF_BLE_GATT_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -202,7 +202,7 @@ typedef struct
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_GATT_H__
|
||||
#endif // NRF_BLE_GATT_H__
|
||||
|
||||
/** @} */
|
||||
|
|
@ -40,12 +40,12 @@
|
|||
@brief Definitions and prototypes for the GATT Client interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GATTC_H__
|
||||
#define BLE_GATTC_H__
|
||||
#ifndef NRF_BLE_GATTC_H__
|
||||
#define NRF_BLE_GATTC_H__
|
||||
|
||||
#include "ble_gatt.h"
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -561,7 +561,7 @@ SVCALL(SD_BLE_GATTC_ATTR_INFO_DISCOVER, uint32_t, sd_ble_gattc_attr_info_discove
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* BLE_GATTC_H__ */
|
||||
#endif /* NRF_BLE_GATTC_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,14 +40,14 @@
|
|||
@brief Definitions and prototypes for the GATTS interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_GATTS_H__
|
||||
#define BLE_GATTS_H__
|
||||
#ifndef NRF_BLE_GATTS_H__
|
||||
#define NRF_BLE_GATTS_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "ble_l2cap.h"
|
||||
#include "ble_gap.h"
|
||||
#include "ble_gatt.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_ble_l2cap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -715,7 +715,7 @@ SVCALL(SD_BLE_GATTS_ATTR_GET, uint32_t, sd_ble_gatts_attr_get(uint16_t handle, b
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_GATTS_H__
|
||||
#endif // NRF_BLE_GATTS_H__
|
||||
|
||||
/**
|
||||
@}
|
|
@ -40,8 +40,8 @@
|
|||
*/
|
||||
|
||||
|
||||
#ifndef BLE_HCI_H__
|
||||
#define BLE_HCI_H__
|
||||
#ifndef NRF_BLE_HCI_H__
|
||||
#define NRF_BLE_HCI_H__
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -126,6 +126,6 @@ extern "C" {
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_HCI_H__
|
||||
#endif // NRF_BLE_HCI_H__
|
||||
|
||||
/** @} */
|
|
@ -40,12 +40,12 @@
|
|||
@brief Definitions and prototypes for the L2CAP interface.
|
||||
*/
|
||||
|
||||
#ifndef BLE_L2CAP_H__
|
||||
#define BLE_L2CAP_H__
|
||||
#ifndef NRF_BLE_L2CAP_H__
|
||||
#define NRF_BLE_L2CAP_H__
|
||||
|
||||
#include "ble_types.h"
|
||||
#include "ble_ranges.h"
|
||||
#include "ble_err.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_ranges.h"
|
||||
#include "nrf_ble_err.h"
|
||||
#include "nrf_svc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -195,7 +195,7 @@ SVCALL(SD_BLE_L2CAP_TX, uint32_t, sd_ble_l2cap_tx(uint16_t conn_handle, ble_l2ca
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // BLE_L2CAP_H__
|
||||
#endif // NRF_BLE_L2CAP_H__
|
||||
|
||||
/**
|
||||
@}
|
|
@ -54,8 +54,8 @@
|
|||
which defines names of each individual SVC code based on the range start value.
|
||||
*/
|
||||
|
||||
#ifndef BLE_RANGES_H__
|
||||
#define BLE_RANGES_H__
|
||||
#ifndef NRF_BLE_RANGES_H__
|
||||
#define NRF_BLE_RANGES_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -118,7 +118,7 @@ extern "C" {
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* BLE_RANGES_H__ */
|
||||
#endif /* NRF_BLE_RANGES_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -43,8 +43,8 @@
|
|||
@brief Common types and macro definitions for the BLE SoftDevice.
|
||||
*/
|
||||
|
||||
#ifndef BLE_TYPES_H__
|
||||
#define BLE_TYPES_H__
|
||||
#ifndef NRF_BLE_TYPES_H__
|
||||
#define NRF_BLE_TYPES_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -197,7 +197,7 @@ typedef struct
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* BLE_TYPES_H__ */
|
||||
#endif /* NRF_BLE_TYPES_H__ */
|
||||
|
||||
/**
|
||||
@}
|
|
@ -34,8 +34,8 @@
|
|||
#define BLE_ADVERTISING_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "ble_gattc.h"
|
||||
#include "ble.h"
|
||||
#include "nrf_ble_gattc.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_error.h"
|
||||
#include "ble_advdata.h"
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "ble_db_discovery.h"
|
||||
#include <stdlib.h>
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_log.h"
|
||||
|
||||
#include "sdk_common.h"
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
#define BLE_DB_DISCOVERY_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "ble_gattc.h"
|
||||
#include "ble.h"
|
||||
#include "nrf_ble_gattc.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_error.h"
|
||||
#include "ble_srv_common.h"
|
||||
#include "ble_gatt_db.h"
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "ble.h"
|
||||
#include "ble_types.h"
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble.h"
|
||||
|
||||
/**@brief Record Access Control Point opcodes. */
|
||||
#define RACP_OPCODE_RESERVED 0 /**< Record Access Control Point opcode - Reserved for future use. */
|
||||
|
@ -93,4 +93,3 @@ uint8_t ble_racp_encode(const ble_racp_value_t * p_racp_val, uint8_t * p_data);
|
|||
#endif // BLE_RACP_H__
|
||||
|
||||
/** @} */
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
*/
|
||||
|
||||
#include "ble_dfu.h"
|
||||
#include "ble_types.h"
|
||||
#include "ble_gatts.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "nrf_ble_gatts.h"
|
||||
#include "ble_srv_common.h"
|
||||
#include <stddef.h>
|
||||
#include "sdk_common.h"
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
#define BLE_DFU_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "ble_gatts.h"
|
||||
#include "ble_gap.h"
|
||||
#include "ble.h"
|
||||
#include "nrf_ble_gatts.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "ble_srv_common.h"
|
||||
|
||||
#define BLE_DFU_SERVICE_UUID 0x1530 /**< The UUID of the DFU Service. */
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
#include "ble_advdata.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "ble_srv_common.h"
|
||||
#include "sdk_common.h"
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "app_util.h"
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "ble_conn_params.h"
|
||||
#include <stdlib.h>
|
||||
#include "nordic_common.h"
|
||||
#include "ble_hci.h"
|
||||
#include "nrf_ble_hci.h"
|
||||
#include "app_timer.h"
|
||||
#include "ble_srv_common.h"
|
||||
#include "app_util.h"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#define BLE_CONN_PARAMS_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "ble_srv_common.h"
|
||||
|
||||
/**@brief Connection Parameters Module event type. */
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "sdk_mapped_flags.h"
|
||||
#include "app_error.h"
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "sdk_mapped_flags.h"
|
||||
|
||||
/**@brief Connection handle statuses.
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#define BLE_GATT_DB_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "ble.h"
|
||||
#include "ble_gattc.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gattc.h"
|
||||
|
||||
#define BLE_GATT_DB_MAX_CHARS 5 /**< The maximum number of characteristics present in a service record. */
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
/* Attention!
|
||||
* To maintain compliance with Nordic Semiconductor ASA’s Bluetooth profile
|
||||
* To maintain compliance with Nordic Semiconductor ASA<EFBFBD>s Bluetooth profile
|
||||
* qualification listings, this section of source code must not be modified.
|
||||
*/
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
|||
#include <string.h>
|
||||
#include "nordic_common.h"
|
||||
#include "app_error.h"
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
|
||||
uint8_t ble_srv_report_ref_encode(uint8_t * p_encoded_buffer,
|
||||
const ble_srv_report_ref_t * p_report_ref)
|
||||
|
|
|
@ -23,11 +23,11 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "ble_types.h"
|
||||
#include "nrf_ble_types.h"
|
||||
#include "app_util.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "ble_gatt.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
|
||||
/** @defgroup UUID_SERVICES Service UUID definitions
|
||||
* @{ */
|
||||
|
|
|
@ -67,8 +67,8 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "sdk_common.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "device_manager_cnfg.h"
|
||||
|
||||
/**
|
||||
|
@ -885,4 +885,3 @@ ret_code_t dm_handle_get(uint16_t conn_handle, dm_handle_t * p_handle);
|
|||
/** @} */
|
||||
/** @} */
|
||||
#endif // DEVICE_MANAGER_H__
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "device_manager.h"
|
||||
#include "app_trace.h"
|
||||
#include "pstorage.h"
|
||||
#include "ble_hci.h"
|
||||
#include "nrf_ble_hci.h"
|
||||
#include "app_error.h"
|
||||
|
||||
#if defined ( __CC_ARM )
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include "gatt_cache_manager.h"
|
||||
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "ble_conn_state.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "peer_manager_internal.h"
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include "gattc_cache_manager.h"
|
||||
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "ble_conn_state.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "peer_database.h"
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "gatts_cache_manager.h"
|
||||
|
||||
#include <string.h>
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "ble_conn_state.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "peer_manager_internal.h"
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <string.h>
|
||||
#include "nrf_soc.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "ble_conn_state.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "peer_database.h"
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
|
||||
|
||||
|
@ -235,6 +235,38 @@ ret_code_t im_whitelist_create(pm_peer_id_t * p_peer_ids,
|
|||
*/
|
||||
bool im_address_resolve(ble_gap_addr_t const * p_addr, ble_gap_irk_t const * p_irk);
|
||||
|
||||
/**@brief Function for calculating the ah() hash function described in Bluetooth core specification
|
||||
* 4.2 section 3.H.2.2.2.
|
||||
*
|
||||
* @detail BLE uses a hash function to calculate the first half of a resolvable address
|
||||
* from the second half of the address and an irk. This function will use the ECB
|
||||
* periferal to hash these data acording to the Bluetooth core specification.
|
||||
*
|
||||
* @note The ECB expect little endian input and output.
|
||||
* This function expect big endian and will reverse the data as necessary.
|
||||
*
|
||||
* @param[in] p_k The key used in the hash function.
|
||||
* For address resolution this is should be the irk.
|
||||
* The array must have a length of 16.
|
||||
* @param[in] p_r The rand used in the hash function. For generating a new address
|
||||
* this would be a random number. For resolving a resolvable address
|
||||
* this would be the last half of the address being resolved.
|
||||
* The array must have a length of 3.
|
||||
* @param[out] p_local_hash The result of the hash operation. For address resolution this
|
||||
* will match the first half of the address being resolved if and only
|
||||
* if the irk used in the hash function is the same one used to generate
|
||||
* the address.
|
||||
* The array must have a length of 16.
|
||||
*
|
||||
* @note ====IMPORTANT====
|
||||
* This is a special modification to the original nRF5x SDK required by the mbed BLE API
|
||||
* to be able to generate BLE private resolvable addresses. This function is used by
|
||||
* the BLE API implementation for nRF5xSecurityManager::getAddressFromBondTable() in the
|
||||
* ble-nrf52832 yotta module.
|
||||
* =================
|
||||
*/
|
||||
void ah(uint8_t const * p_k, uint8_t const * p_r, uint8_t * p_local_hash);
|
||||
|
||||
/** @}
|
||||
* @endcond
|
||||
*/
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "peer_manager_internal.h"
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "sdk_common.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "peer_database.h"
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include "nrf.h"
|
||||
#include "ble_gap.h"
|
||||
#include "ble_hci.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf_ble_hci.h"
|
||||
#include "app_util.h"
|
||||
#include "app_util_platform.h"
|
||||
#include "ble_gatt_db.h"
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
#include "security_dispatcher.h"
|
||||
|
||||
#include <string.h>
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "ble_conn_state.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "peer_database.h"
|
||||
|
@ -881,4 +881,3 @@ void smd_ble_evt_handler(ble_evt_t * p_ble_evt)
|
|||
break;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "sdk_errors.h"
|
||||
#include "ble.h"
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "peer_manager_types.h"
|
||||
#include "security_dispatcher.h"
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
#include "bootloader_util.h"
|
||||
#include "nrf.h"
|
||||
#include "nrf_sdm.h"
|
||||
#include "ble_gatt.h"
|
||||
#include "ble_gatts.h"
|
||||
#include "nrf_ble_gatt.h"
|
||||
#include "nrf_ble_gatts.h"
|
||||
#include "app_error.h"
|
||||
#include "dfu_ble_svc.h"
|
||||
#include "device_manager.h"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "nrf_svc.h"
|
||||
#include <stdint.h>
|
||||
#include "ble_gap.h"
|
||||
#include "nrf_ble_gap.h"
|
||||
#include "nrf.h"
|
||||
#include "nrf_soc.h"
|
||||
#include "nrf_error_sdm.h"
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
*/
|
||||
|
||||
/*lint -save -e14 */
|
||||
#if 0
|
||||
void app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t * p_file_name)
|
||||
{
|
||||
error_info_t error_info =
|
||||
|
@ -55,6 +56,7 @@ void app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t *
|
|||
|
||||
UNUSED_VARIABLE(error_info);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*lint -save -e14 */
|
||||
void app_error_handler_bare(ret_code_t error_code)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifdef BLE_STACK_SUPPORT_REQD
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#include "nrf_sdm.h"
|
||||
#include "app_error.h"
|
||||
#include "app_util.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#elif defined(ANT_STACK_SUPPORT_REQD)
|
||||
#include "ant_interface.h"
|
||||
#elif defined(BLE_STACK_SUPPORT_REQD)
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include "ble_stack_handler_types.h"
|
||||
#include "ant_stack_handler_types.h"
|
||||
#if defined(BLE_STACK_SUPPORT_REQD)
|
||||
#include "ble.h"
|
||||
#include "nrf_ble.h"
|
||||
#endif
|
||||
#include "app_ram_base.h"
|
||||
#define SOFTDEVICE_SCHED_EVT_SIZE 0 /**< Size of button events being passed through the scheduler (is to be used for computing the maximum size of scheduler events). For SoftDevice events, this size is 0, since the events are being pulled in the event handler. */
|
||||
|
|
Loading…
Reference in New Issue