include: Bluetooth: Add missing includes for all BT host files
Added missing includes and fixed typos in the header files for Bluetooth. There is one exception in hci_vs.h where `struct arch_esf` is still missing an include, but that is because that is only specific for ARM. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
ecabcf5db5
commit
4a0ddbefe0
17 changed files with 70 additions and 21 deletions
|
@ -17,8 +17,12 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -118,6 +122,8 @@ extern "C" {
|
|||
#if defined(CONFIG_BT_ATT_ERR_TO_STR)
|
||||
const char *bt_att_err_to_str(uint8_t att_err);
|
||||
#else
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
static inline const char *bt_att_err_to_str(uint8_t att_err)
|
||||
{
|
||||
ARG_UNUSED(att_err);
|
||||
|
@ -143,7 +149,7 @@ int bt_eatt_reconfigure(struct bt_conn *conn, uint16_t mtu);
|
|||
* may be created.
|
||||
*
|
||||
* @param conn The connection to send the request on
|
||||
* @param num_channels The number of Enhanced ATT beares to request.
|
||||
* @param num_channels The number of Enhanced ATT bearers to request.
|
||||
* Must be in the range 1 - @kconfig{CONFIG_BT_EATT_MAX}, inclusive.
|
||||
*
|
||||
* @return 0 in case of success or negative value in case of error.
|
||||
|
|
|
@ -31,12 +31,15 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/bluetooth/gap.h>
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/crypto.h>
|
||||
#include <zephyr/bluetooth/classic/classic.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -241,7 +244,7 @@ struct bt_le_ext_adv_cb {
|
|||
*
|
||||
* This callback notifies the application that the RPA validity of the advertising set has
|
||||
* expired. The user can use this callback to synchronize the advertising payload update
|
||||
* with the RPA rotation by for example envoking @ref bt_le_ext_adv_set_data upon callback.
|
||||
* with the RPA rotation by for example invoking @ref bt_le_ext_adv_set_data upon callback.
|
||||
*
|
||||
* If RPA sharing is enabled (see @kconfig{CONFIG_BT_RPA_SHARING}) and this RPA expired
|
||||
* callback of any adv-sets belonging to same adv id returns false, then adv-sets will
|
||||
|
|
|
@ -18,11 +18,17 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/autoconf.h>
|
||||
#include <zephyr/bluetooth/hci.h>
|
||||
#include <zephyr/bluetooth/hci_types.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
#include <zephyr/sys_clock.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -21,12 +21,16 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
#include <zephyr/bluetooth/hci_types.h>
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/gap.h>
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
#include <zephyr/bluetooth/direction.h>
|
||||
#include <zephyr/bluetooth/gap.h>
|
||||
#include <zephyr/bluetooth/hci_types.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -1559,7 +1563,7 @@ enum bt_conn_le_cs_procedure_enable_state {
|
|||
BT_CONN_LE_CS_PROCEDURES_ENABLED = BT_HCI_OP_LE_CS_PROCEDURES_ENABLED,
|
||||
};
|
||||
|
||||
/** CS Test Tone Antennna Config Selection.
|
||||
/** CS Test Tone Antenna Config Selection.
|
||||
*
|
||||
* These enum values are indices in the following table, where N_AP is the maximum
|
||||
* number of antenna paths (in the range [1, 4]).
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include <zephyr/bluetooth/hci_types.h>
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
|
||||
/** Constant Tone Extension (CTE) types. */
|
||||
enum bt_df_cte_type {
|
||||
/** Convenience value for purposes where non of CTE types is allowed. */
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_EAD_H_
|
||||
#define ZEPHYR_INCLUDE_BLUETOOTH_EAD_H_
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
#include <zephyr/kernel.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_GAP_H_
|
||||
#define ZEPHYR_INCLUDE_BLUETOOTH_GAP_H_
|
||||
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
#include <zephyr/bluetooth/byteorder.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -22,15 +22,21 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/autoconf.h>
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
#include <zephyr/bluetooth/uuid.h>
|
||||
#include <zephyr/bluetooth/att.h>
|
||||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -229,7 +235,7 @@ struct bt_gatt_attr {
|
|||
* GATT Characteristic Presentation Format descriptor as
|
||||
* specified in Core Specification 3.G.3.3.3.5.
|
||||
*
|
||||
* You can define a new Attirubute Type for your application specific
|
||||
* You can define a new Attribute Type for your application specific
|
||||
* use by generating a new UUID for it.
|
||||
*/
|
||||
const struct bt_uuid *uuid;
|
||||
|
@ -956,7 +962,7 @@ ssize_t bt_gatt_attr_read_chrc(struct bt_conn *conn,
|
|||
const struct bt_gatt_attr *attr, void *buf,
|
||||
uint16_t len, uint16_t offset);
|
||||
|
||||
/** @brief Gatt Characterisitc Initialization Macro.
|
||||
/** @brief Gatt Characteristic Initialization Macro.
|
||||
*
|
||||
* Helper macro used within the @ref BT_GATT_CHARACTERISTIC macro in the GATT attribute declaration
|
||||
* to set the attribute user data.
|
||||
|
|
|
@ -9,8 +9,10 @@
|
|||
#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
|
@ -37,6 +39,8 @@ extern "C" {
|
|||
#if defined(CONFIG_BT_HCI_ERR_TO_STR)
|
||||
const char *bt_hci_err_to_str(uint8_t hci_err);
|
||||
#else
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
static inline const char *bt_hci_err_to_str(uint8_t hci_err)
|
||||
{
|
||||
ARG_UNUSED(hci_err);
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/hci.h>
|
||||
#include <zephyr/bluetooth/hci_types.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
|
|
|
@ -18,13 +18,18 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/bluetooth/buf.h>
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
#include <zephyr/bluetooth/hci.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/sys/util.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue