code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/* att.c - Attribute protocol handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> #include <bluetooth/hci.h> ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/att.c
C
apache-2.0
70,795
/* att_internal.h - Attribute protocol handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define BT_EATT_PSM 0x27 #define BT_ATT_DEFAULT_LE_MTU 23 #define BT_ATT_TIMEOUT K_SECONDS(30) #if BT_L2CAP_RX_MTU < CONFIG_BT_L2CAP_TX_MTU #define BT_ATT_MTU BT_L2CAP_RX...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/att_internal.h
C
apache-2.0
6,460
/* * Audio Video Distribution Protocol * * SPDX-License-Identifier: Apache-2.0 * */ #include <ble_os.h> #include <string.h> // #include <strings.h> #include <bt_errno.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> #include <bluetooth/hci.h> #include <bluetooth/bluetooth.h> #include <bl...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/avdtp.c
C
apache-2.0
7,353
/* * avdtp_internal.h - avdtp handling * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bluetooth/avdtp.h> /* @brief A2DP ROLE's */ #define A2DP_SRC_ROLE 0x00 #define A2DP_SNK_ROLE 0x01 /* @brief AVDTP Role */ #define BT_AVDTP_INT 0x00 #define BT_AVDTP_ACP 0x01 ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/avdtp_internal.h
C
apache-2.0
4,849
/* conn.c - Bluetooth connection handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> #include <misc/slist.h> #...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/conn.c
C
apache-2.0
64,056
/** @file * @brief Internal APIs for Bluetooth connection handling. */ /* * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ typedef enum __packed { BT_CONN_DISCONNECTED, BT_CONN_CONNECT_SCAN, BT_CONN_CONNECT_AUTO, BT_CONN_CONNECT_ADV, BT_CONN_CONNECT_DIR_ADV, BT_CONN_CONNEC...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/conn_internal.h
C
apache-2.0
9,209
/* * Copyright (c) 2017 Nordic Semiconductor ASA * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <bt_errno.h> #include <ble_os.h> #include "bt_crypto.h" int bt_rand(void *buf, size_t len) { return bt_crypto_rand(buf, len); } int bt_encrypt_le...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/crypto.c
C
apache-2.0
747
/* ecc.h - ECDH helpers */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* @brief Container for public key callback */ struct bt_pub_key_cb { /** @brief Callback type for Public Key generation. * * Used to notify of the local public key or that the local key is not ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/ecc.h
C
apache-2.0
1,773
/* gatt.c - Generic Attribute Profile handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <stdbool.h> #include <stdlib.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/gatt.c
C
apache-2.0
118,161
/** @file * @brief Internal API for Generic Attribute Profile handling. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define BT_GATT_CENTRAL_ADDR_RES_NOT_SUPP 0 #define BT_GATT_CENTRAL_ADDR_RES_SUPP 1 #define BT_GATT_PERM_READ_MASK (BT_GATT_PERM_READ | \ ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/gatt_internal.h
C
apache-2.0
1,710
/* * Copyright (C) 2016 YunOS Project. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hci_api.c
C
apache-2.0
52,747
/* hci_core.c - HCI core Bluetooth handling */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <stdio.h> #include <bt_errno.h> #include <atomic.h> #include <misc/util.h> #includ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hci_core.c
C
apache-2.0
241,782
/* hci_core.h - Bluetooth HCI core access */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __HCI_CORE_H #define __HCI_CORE_H /* LL connection parameters */ #define LE_CONN_LATENCY 0x0000 #define LE_CONN_TIMEOUT 0x002a #if defined(CONFIG_BT_BREDR) #define LMP_...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hci_core.h
C
apache-2.0
7,631
/** * @file hci_ecc.c * HCI ECC emulation */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <atomic.h> #include <misc/stack.h> #include <misc/byteorder.h> #include <tinycrypt/constants.h> #include <tinycrypt/utils.h> #include <tinycrypt/ecc.h>...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hci_ecc.c
C
apache-2.0
8,014
/* hci_ecc.h - HCI ECC emulation */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ void bt_hci_ecc_init(void); int bt_hci_ecc_send(struct net_buf *buf);
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hci_ecc.h
C
apache-2.0
197
/* hci_userchan.c - HCI user channel Bluetooth handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <atomic.h> #ifdef CONFIG_BT_HCI_RAW #include <bluetooth/hci_driver.h> #include <bluetooth/hci_raw.h> #define BT_DBG_ENABLED IS_ENABL...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hci_raw.c
C
apache-2.0
6,513
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_HCI_RAW_INTERNAL_H #define __BT_HCI_RAW_INTERNAL_H #ifdef __cplusplus extern "C" { #endif struct bt_dev_raw { /* Registered HCI driver */ const struct bt_hci_driver *drv; }; extern struct bt_dev_raw bt_dev; #ifde...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hci_raw_internal.h
C
apache-2.0
381
/* hfp_hf.c - Hands free Profile - Handsfree side handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> #include <misc/printk.h> #ifdef CONFIG_BT_HFP_HF #...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hfp_hf.c
C
apache-2.0
14,139
/** @file * @brief Internal APIs for Bluetooth Handsfree profile handling. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define BT_HFP_MAX_MTU 140 #define BT_HF_CLIENT_MAX_PDU BT_HFP_MAX_MTU /* HFP AG Features */ #define BT_HFP_AG_FEATURE_3WAY_CALL...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/hfp_internal.h
C
apache-2.0
2,567
/* keys.c - Bluetooth key handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <stdlib.h> #include <atomic.h> #include <misc/util.h> #include <settings/settings.h> #include <bluetooth/bluetooth.h> #include <bluetoo...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/keys.c
C
apache-2.0
9,847
/* keys.h - Bluetooth key handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ enum { BT_KEYS_SLAVE_LTK = BIT(0), BT_KEYS_IRK = BIT(1), BT_KEYS_LTK = BIT(2), BT_KEYS_LOCAL_CSRK = BIT(3), BT_KEYS_REMOTE_CSRK = BIT(4), BT_KEYS_...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/keys.h
C
apache-2.0
3,427
/* keys_br.c - Bluetooth BR/EDR key handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <atomic.h> #include <misc/util.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #include <bluetooth/hci.h> #de...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/keys_br.c
C
apache-2.0
1,658
/* l2cap.c - L2CAP handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> #include <bluetooth/hci.h> #include <bluetooth/bluetooth.h>...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/l2cap.c
C
apache-2.0
60,588
/* l2cap_br.c - L2CAP BREDR oriented handling */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> #ifdef CONFIG_BT_BREDR #include <bluetooth/hci...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/l2cap_br.c
C
apache-2.0
39,623
/** @file * @brief Internal APIs for Bluetooth L2CAP handling. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bluetooth/l2cap.h> enum l2cap_conn_list_action { BT_L2CAP_CHAN_LOOKUP, BT_L2CAP_CHAN_DETACH, }; #define BT_L2CAP_CID_BR_SIG 0x000...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/l2cap_internal.h
C
apache-2.0
10,265
/** @file * @brief Custom logging over UART */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_types/types.h> #include <stdbool.h> #if defined(CONFIG_BT_DEBUG_MONITOR) #include <ble_os.h> #include <bt_device.h> #include <init.h> #include <drivers/console/uart...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/monitor.c
C
apache-2.0
7,756
/** @file * @brief Custom monitor protocol logging over UART */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #if defined(CONFIG_BT_DEBUG_MONITOR) #define BT_MONITOR_NEW_INDEX 0 #define BT_MONITOR_DEL_INDEX 1 #define BT_MONITOR_COMMAND_PKT 2 #define BT_MONITOR_EVENT_PKT ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/monitor.h
C
apache-2.0
2,232
/* rfcomm.c - RFCOMM handling */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <string.h> #include <bt_errno.h> #include <atomic.h> #include <misc/byteorder.h> #include <misc/util.h> #include <misc/stack.h> #include <bluetooth/hci.h> #include <b...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/rfcomm.c
C
apache-2.0
43,252
/** @file * @brief Internal APIs for Bluetooth RFCOMM handling. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bluetooth/rfcomm.h> typedef enum { BT_RFCOMM_CFC_UNKNOWN, BT_RFCOMM_CFC_NOT_SUPPORTED, BT_RFCOMM_CFC_SUPPORTED, } __packed bt_rfcomm_cfc_t; ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/rfcomm_internal.h
C
apache-2.0
5,962
/** @file * @brief Service Discovery Protocol handling. */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <sys/types.h> #include <misc/byteorder.h> #include <misc/__assert.h> #if defined(CONFIG_BT_BREDR) #include <bluetooth/sdp.h> #define B...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/sdp.c
C
apache-2.0
63,132
/* sdp_internal.h - Service Discovery Protocol handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* * The PDU identifiers of SDP packets between client and server */ #define BT_SDP_ERROR_RSP 0x01 #define BT_SDP_SVC_SEARCH_REQ 0x02 #define BT_SDP...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/sdp_internal.h
C
apache-2.0
1,864
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <ble_os.h> #include <settings/settings.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_SETTINGS) #define LOG_MODULE_NAME bt_settin...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/settings.c
C
apache-2.0
6,417
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* Max settings key length (with all components) */ #define BT_SETTINGS_KEY_MAX 36 /* Base64-encoded string buffer size of in_size bytes */ #define BT_SETTINGS_SIZE(in_size) ((((((in_size) - 1) / 3) * 4) + 4) + 1) /* Helpers for...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/settings.h
C
apache-2.0
605
/** * @file smp.c * Security Manager Protocol implementation */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <stddef.h> #include <bt_errno.h> #include <string.h> #include <atomic.h> #include...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/smp.c
C
apache-2.0
137,450
/** * @file smp.h * Security Manager Protocol implementation header */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ struct bt_smp_hdr { u8_t code; } __packed; #define BT_SMP_ERR_PASSKEY_ENTRY_FAILED 0x01 #define BT_SMP_ERR_OOB_NOT_AVAIL 0x02 #define BT_SMP_ERR_...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/smp.h
C
apache-2.0
4,401
/** * @file smp_null.c * Security Manager Protocol stub */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <bt_errno.h> #include <atomic.h> #include <misc/util.h> #include <bluetooth/bluetooth.h> #include <bluetooth/conn.h> #include <bluet...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/smp_null.c
C
apache-2.0
2,250
/* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <ble_os.h> #include <stddef.h> #include <bluetooth/mesh.h> #include <bluetooth/testing.h> #if defined(CONFIG_BT_MESH) #include "mesh/net.h" #include "mesh/lpn.h" #include "mesh/transport.h" #endif /* CONFIG_BT_MESH */ ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/testing.c
C
apache-2.0
2,188
/** * @file testing.h * @brief Internal API for Bluetooth testing. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #if defined(CONFIG_BT_MESH) void bt_test_mesh_net_recv(u8_t ttl, u8_t ctl, u16_t src, u16_t dst, const void *payload, size_t payload_len); void bt_tes...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/testing.h
C
apache-2.0
626
/* uuid.c - Bluetooth UUID handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <bt_errno.h> #include <misc/byteorder.h> #include <misc/printk.h> #include <bluetooth/uuid.h> #define UUID_16_BASE_OFFSET 12 /* TODO: Decide whether to c...
YifuLiu/AliOS-Things
components/ble_host/bt_host/host/uuid.c
C
apache-2.0
3,499
/* * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/aos/ble.h
C
apache-2.0
15,108
/* * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/aos/gatt.h
C
apache-2.0
12,930
/* * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/aos/models.h
C
apache-2.0
10,888
/* * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/aos/uuid.h
C
apache-2.0
15,258
/** @file * @brief Advance Audio Distribution Profile - SBC Codec header. */ /* * Copyright (c) 2015-2016 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/a2dp-codec.h
C
apache-2.0
2,215
/** @file * @brief Advance Audio Distribution Profile header. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_A2DP_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_A2DP_H_ #include <bluetooth/avdtp.h> #ifdef __cplusplus extern "C" { #endif /** @...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/a2dp.h
C
apache-2.0
2,544
/** @file * @brief Bluetooth device address definitions and utilities. */ /* * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_ADDR_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_ADDR_H_ #include <string.h> #include <stdbool.h> #include <ble_types/ty...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/addr.h
C
apache-2.0
2,512
/** @file * @brief Attribute Protocol handling. */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_ #include <misc/slist.h> #ifdef __cplusplus extern "C" { #endif /* Error codes for Error respo...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/att.h
C
apache-2.0
1,432
/** @file * @brief Audio/Video Distribution Transport Protocol header. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_ #ifdef __cplusplus extern "C" { #endif /** @brief AVDTP SEID In...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/avdtp.h
C
apache-2.0
1,227
/** @file * @brief Bluetooth subsystem core APIs. */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_BLUETOOTH_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_BLUETOOTH_H_ /** * @brief Bluetooth APIs ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/bluetooth.h
C
apache-2.0
47,337
/** @file * @brief Bluetooth data buffer API */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_BUF_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_BUF_H_ /** * @brief Data buffers * @defgroup bt_buf Data buffers * @ingroup bluetooth * @{ */ #inc...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/buf.h
C
apache-2.0
4,109
/** @file * @brief Bluetooth connection handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_ /** * @brief Connection management * @defgroup bt_conn Connection management * @ingr...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/conn.h
C
apache-2.0
46,291
/** @file * @brief Bluetooth subsystem crypto APIs. */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * Copyright (c) 2015-2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_CRYPTO_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_CRYPTO_H_ /** * @brief Cryptography * @de...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/crypto.h
C
apache-2.0
4,056
/** @file * @brief Bluetooth Generic Access Profile defines and Assigned Numbers. */ /* * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_GAP_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_GAP_H_ #ifdef __cplusplus extern "C" { #endif /** * @brief...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/gap.h
C
apache-2.0
6,318
/** @file * @brief Generic Attribute Profile handling. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_GATT_H #define __BT_GATT_H /** * @brief Generic Attribute Profile (GATT) * @defgroup bt_gatt Generic Attribute Profile (GATT) * @ingroup bluetooth ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/gatt.h
C
apache-2.0
45,216
/* hci.h - Bluetooth Host Control Interface definitions */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_ #include <ble_types/types.h> #include <stdbool.h> #include <string.h> #include <misc/...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/hci.h
C
apache-2.0
56,671
/** @file * @brief Bluetooth HCI driver API. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_HCI_DRIVER_H #define __BT_HCI_DRIVER_H /** * @brief HCI drivers * @defgroup bt_hci_driver HCI drivers * @ingroup bluetooth * @{ */ #include <stdbool.h> #i...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/hci_driver.h
C
apache-2.0
4,977
/** @file * @brief Bluetooth Host Control Interface status codes. */ /* * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_STATUS_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_HCI_STATUS_H_ #ifdef __cplusplus extern "C" { #endif /** HCI Error Co...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/hci_err.h
C
apache-2.0
4,076
/** @file * @brief Bluetooth HCI RAW channel handling */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_ /** * @brief HCI RAW channel * @defgroup hci_raw HCI RAW channel * @ingroup bl...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/hci_raw.h
C
apache-2.0
3,775
/* hci_vs.h - Bluetooth Host Control Interface Vendor Specific definitions */ /* * Copyright (c) 2017-2018 Nordic Semiconductor ASA * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_VS_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_HCI_VS_H_ #include...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/hci_vs.h
C
apache-2.0
10,365
/** @file * @brief Handsfree Profile handling. */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_HFP_HF_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_HFP_HF_H_ /** * @brief Hands Free Profile (HFP) * @defgroup bt_hfp Hands Free Profile (HFP) ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/hfp_hf.h
C
apache-2.0
4,700
/** @file * @brief Bluetooth L2CAP handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_L2CAP_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_L2CAP_H_ /** * @brief L2CAP * @defgroup bt_l2cap L2CAP * @ingroup bluetooth * @{ */ #include ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/l2cap.h
C
apache-2.0
13,892
/** @file * @brief Bluetooth RFCOMM handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_RFCOMM_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_RFCOMM_H_ /** * @brief RFCOMM * @defgroup bt_rfcomm RFCOMM * @ingroup bluetooth * @{ */ #in...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/rfcomm.h
C
apache-2.0
4,866
/** @file * @brief Service Discovery Protocol handling. */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_SDP_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_SDP_H_ /** * @brief Service Discovery Protocol (SDP) * @defgroup bt_sdp Service Discovery Pr...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/sdp.h
C
apache-2.0
22,925
/** * @file testing.h * @brief Internal API for Bluetooth testing. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_ #if defined(CONFIG_BT_MESH) #include <bluetooth/mesh.h> #endif /* CO...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/testing.h
C
apache-2.0
2,491
/** @file * @brief Bluetooth UUID handling */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_UUID_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_UUID_H_ /** * @brief UUIDs * @defgroup bt_uuid UUIDs * @ingroup bluetooth * @{ */ #include <mis...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/bluetooth/uuid.h
C
apache-2.0
21,813
/* * Copyright (c) 2010-2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_TOOLCHAIN_COMMON_H_ #define ZEPHYR_INCLUDE_TOOLCHAIN_COMMON_H_ #include <misc/__assert.h> /** * @file * @brief Common toolchain abstraction * * Macros to abstract compiler capabilities (comm...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/common/common.h
C
apache-2.0
6,405
/** @file * @brief Bluetooth subsystem logging helpers. */ /* * Copyright (c) 2017 Nordic Semiconductor ASA * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BT_LOG_H #define __BT_LOG_H #include <ble_os.h> #include <bluetooth/bluetooth.h> #include <bluetooth/uui...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/common/log.h
C
apache-2.0
2,807
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __SETTINGS_H_ #define __SETTINGS_H_ #include <misc/util.h> #include <misc/slist.h> #include <stdint.h> #include <common/common.h> #ifdef __cplusplus extern "C" { #endif #ifndef C...
YifuLiu/AliOS-Things
components/ble_host/bt_host/include/settings/settings.h
C
apache-2.0
18,037
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <ble_os.h> #include <misc/util.h> #include <misc/dlist.h> //#include <aos/aos.h> //yulong removed // #include "aos/debug.h" #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE) #include <common/log.h> #include <stddef.h> #include <st...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/aos/aos_port.c
C
apache-2.0
7,993
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #include <stdint.h> #include <ble_os.h> #include "work.h" #include "misc/util.h" extern struct k_work_q g_work_queue; extern void process_events(struct k_poll_event *ev, int count); extern int bt_conn_prepare_events(struct k_poll_event events[]); void sc...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/aos/event_scheduler.c
C
apache-2.0
1,708
/* * Copyright (c) 2015 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _DEVICE_H_ #define _DEVICE_H_ //#include <kernel.h> /** * @brief Device Driver APIs * @defgroup io_interfaces Device Driver APIs * @{ * @} */ /** * @brief Device Model APIs * @defgroup device_model Device Model ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/aos/include/bt_device.h
C
apache-2.0
15,031
/** * @file bt_errno.h * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #ifndef AOS_ERRNO_H_BT #define AOS_ERRNO_H_BT #ifdef __cplusplus extern "C" { #endif /** * @addtogroup aos_errno errno * Define standard errno. * * @{ */ //#if defined(__GNUC__)&&!defined(__CC_ARM)||defined(_WIN32) ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/aos/include/bt_errno.h
C
apache-2.0
9,989
/* * Copyright (c) 2015 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _INIT_H_ #define _INIT_H_ #include <bt_device.h> // #include <toolchain.h> #ifdef __cplusplus extern "C" { #endif /* * System initialization levels. The PRE_KERNEL_1 and PRE_KERNEL_2 levels are * executed in the ker...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/aos/include/init.h
C
apache-2.0
1,939
/* * Copyright (c) 2017 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * * @brief Kernel asynchronous event polling interface. * * This polling mechanism allows waiting on multiple events concurrently, * either events triggered directly, or from kernel objects or other kernel...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/aos/poll.c
C
apache-2.0
7,970
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <common/log.h> #include "bt_errno.h" struct k_work_q g_work_queue; extern void event_callback(uint8_t event_type); static void k_work_submit_to_queue(struct k_work_q *work_q, struct k_work *work) { sys_snode_t *node = NULL; struct k_wor...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/aos/work.c
C
apache-2.0
2,841
/* * Copyright (c) 2016 Intel Corporation * Copyright (c) 2011-2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file Atomic ops in pure C * * This module provides the atomic operators for processors * which do not support native atomic operations. * * The atomic operations are...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/atomic_c.c
C
apache-2.0
7,853
/* buf.c - Buffer management */ /* * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <bt_errno.h> #include <stddef.h> #include <string.h> #include <ble_os.h> #include <misc/byteorder.h> #include <stdlib.h> #include <net/buf.h> #include <misc/util.h> #inc...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/buf.c
C
apache-2.0
27,174
/* * Copyright (C) 2016 YunOS Project. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/mbox.c
C
apache-2.0
6,874
# SPDX-License-Identifier: Apache-2.0 add_subdirectory(src) zephyr_include_directories( include )
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/CMakeLists.txt
CMake
apache-2.0
103
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __SETTINGS_FCB_H_ #define __SETTINGS_FCB_H_ #include <fs/fcb.h> #include "settings/settings.h" #ifdef __cplusplus extern "C" { #endif struct settings_fcb { struct settings_store...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/include/settings/settings_fcbf.h
C
apache-2.0
582
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __SETTINGS_FILE_H_ #define __SETTINGS_FILE_H_ #include "settings/settings.h" #ifdef __cplusplus extern "C" { #endif #define SETTINGS_FILE_NAME_MAX 32 /* max length for settings f...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/include/settings/settings_filef.h
C
apache-2.0
816
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __SETTINGS_KV_H_ #define __SETTINGS_KV_H_ #include "settings/settings.h" #ifdef __cplusplus extern "C" { #endif struct settings_kv { struct settings_store cf_store; const char ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/include/settings/settings_kv.h
C
apache-2.0
576
/* * Copyright (c) 2019 Laczen * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __SETTINGS_NVS_H_ #define __SETTINGS_NVS_H_ #include <fs/nvs.h> #include "settings/settings.h" #ifdef __cplusplus extern "C" { #endif /* In the NVS backend, each setting is stored in ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/include/settings/settings_nvs.h
C
apache-2.0
1,385
# SPDX-License-Identifier: Apache-2.0 zephyr_sources( settings_store.c settings.c settings_init.c settings_line.c ) zephyr_sources_ifdef(CONFIG_SETTINGS_FS settings_file.c) zephyr_sources_ifdef(CONFIG_SETTINGS_FCB settings_fcb.c)
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/CMakeLists.txt
CMake
apache-2.0
242
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdbool.h> #include <bt_errno.h> #include <ble_os.h> #include "settings/settings.h" #include "settings_priv.h" #include ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings.c
C
apache-2.0
5,656
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <stdbool.h> #include <fs/fcb.h> #include <string.h> #include <assert.h> #include "settings/settings.h" #include "settings/settings_fcb.h" #include "settings_...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_fcb.c
C
apache-2.0
9,375
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <stdbool.h> #include <assert.h> #include <ble_os.h> #include <fs/fs.h> #include "settings/settings.h" #include "settings/settings_file.h" #include "settings_p...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_file.c
C
apache-2.0
10,829
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <stdio.h> #include <stdbool.h> #include <bt_errno.h> #include "settings/settings.h" //#include "settings/settings_files.h" #include <ble_os.h> bool settings...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_init.c
C
apache-2.0
667
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <assert.h> #include <ble_os.h> #include <aos/kv.h> #include <bt_errno.h> #include "settings/settings.h" #include "settings/settings_kv.h" #include "settings_pr...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_kv.c
C
apache-2.0
3,418
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <ctype.h> #include <string.h> #include "settings/settings.h" #include "settings_priv.h" #include "bt_errno.h" #ifdef CONFIG_SETTINGS_USE_BASE64 #include "base64.h" #endif //#incl...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_line.c
C
apache-2.0
11,825
/* * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ int settings_backend_init(void) { return 0; }
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_none.c
C
apache-2.0
144
/* * Copyright (c) 2019 Laczen * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <string.h> #include "settings/settings.h" #include "settings/settings_nvs.h" #include "settings_priv.h" #include <storage/flash_map.h> #include <logging/log.h> L...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_nvs.c
C
apache-2.0
6,920
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __SETTINGS_PRIV_H_ #define __SETTINGS_PRIV_H_ #include <ble_types/types.h> #include <misc/slist.h> #include <bt_errno.h> #include <settings/settings.h> #ifdef __cplusplus extern "...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_priv.h
C
apache-2.0
3,711
/* Copyright (c) 2019 Laczen * * SPDX-License-Identifier: Apache-2.0 */ #include <bt_errno.h> #include <string.h> #include <sys/util.h> #include <settings/settings.h> #include "settings_priv.h" struct read_cb_arg { const void *data; size_t len; }; static ssize_t settings_runtime_read_cb(void *cb_arg, void *dat...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_runtime.c
C
apache-2.0
1,351
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <stdio.h> #include <ble_types/types.h> #include <stddef.h> #include <sys/types.h> #include <bt_errno.h> #include <misc/__assert.h> #include <ble_os.h> #includ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/settings/src/settings_store.c
C
apache-2.0
3,219
/* * Copyright (C) 2016 YunOS Project. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/core/timer.c
C
apache-2.0
4,674
/* * Copyright (c) 2011-2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Debug aid * * * The __ASSERT() macro can be used inside kernel code. * * Assertions are enabled by setting the __ASSERT_ON symbol to a non-zero value. * There are two ways to do this: * ...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/misc/__assert.h
C
apache-2.0
5,836
/** @file * @brief Byte order helpers. */ /* * Copyright (c) 2015-2016, Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __BYTEORDER_H__ #define __BYTEORDER_H__ #include <ble_types/types.h> #include <stddef.h> #include <misc/__assert.h> /* Internal helpers only used by the sys_* APIs fur...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/misc/byteorder.h
C
apache-2.0
16,716
/* printk.h - low-level debug output */ /* * Copyright (c) 2010-2012, 2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _PRINTK_H_ #define _PRINTK_H_ #include <stddef.h> #include <stdarg.h> #include <stdio.h> #ifdef __cplusplus extern "C" { #endif #ifndef ARG_UNUSED #define ARG_UN...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/misc/printk.h
C
apache-2.0
2,149
/** * @file stack.h * Stack usage analysis helpers */ /* * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _MISC_STACK_H_ #define _MISC_STACK_H_ #include <misc/printk.h> #if defined(CONFIG_INIT_STACKS) static inline size_t stack_unused_space_get(const char *stack, size...
YifuLiu/AliOS-Things
components/ble_host/bt_host/port/include/misc/stack.h
C
apache-2.0
1,796