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 |
|---|---|---|---|---|---|
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <signal.h>
#include <time.h>
#include <pthread.h>
#include <fcntl.h>
#include <inttypes.h>
#include <sys/prctl.h>
#include <sys/time.h>
#include <poll.h>
#include "amp_platform.h"
#include "aos_system.h"
#include "aos/kernel.h"
#include "aos_net... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/aos_system.c | C | apache-2.0 | 11,664 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <netmgr.h>
#include <netmgr_wifi.h>
#include <aos/list.h>
#include <uservice/uservice.h>
#define KV_VAL_LENGTH 32
struct hdl_info;
typedef struct hdl_info {
slist_t next;
char* file_name;
... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/aos_wifi.c | C | apache-2.0 | 3,979 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <aos/errno.h>
#include "aos_hal_adc.h"
int32_t aos_hal_adc_init(adc_dev_t *adc)
{
if(NULL == adc) {
printf("parameter is invalid!\n\r");
return -1;
}
printf("[%s] sampling_cycle = %d \r\n", __FUNCTI... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_adc.c | C | apache-2.0 | 620 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <aos/errno.h>
#include "aos_hal_dac.h"
int32_t aos_hal_dac_init(dac_dev_t *dac)
{
if(NULL == dac) {
printf("parameter is invalid!\n\r");
return -1;
}
printf("[%s] \r\n", __FUNCTION__);
return 0;... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_dac.c | C | apache-2.0 | 920 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <termio.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <signal.h>
#include "aos_hal_gpio.h"
#ifdef CONFIG_GPIO_NUM
#define PLATFORM_GPIO_NUM CONFIG_GPIO_NUM
#else
#define PLATFORM_GPIO_NUM 40
#endif
... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_gpio.c | C | apache-2.0 | 1,629 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <aos/errno.h>
#include "aos_hal_i2c.h"
#define BUF_LEN 16
uint8_t buf[BUF_LEN];
int32_t aos_hal_i2c_init(i2c_dev_t *i2c)
{
if(NULL == i2c) {
printf("parameter is invalid!\n\r");
return -... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_i2c.c | C | apache-2.0 | 2,363 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <unistd.h>
#include <stdbool.h>
#include <sys/ioctl.h>
#include "aos_hal_lcd.h"
int32_t aos_hal_lcd_init(void)
{
printf("aos_hal_lcd_init done\n");
return 0;
}
int32_t aos_hal_lcd_uninit(void)
{
printf("aos_hal_lc... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_lcd.c | C | apache-2.0 | 802 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
int hal_cmu_get_crystal_freq()
{
return 260000;
}
int hal_fast_sys_timer_get()
{
return 10000;
}
size_t cpu_intrpt_save(void)
{
}
void cpu_intrpt_restore(size_t cpsr)
{
} | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_onewire.c | C | apache-2.0 | 268 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <aos/errno.h>
#include "aos_hal_pwm.h"
int32_t aos_hal_pwm_init(pwm_dev_t *pwm)
{
printf ("[%s] freq = %d \r\n", __FUNCTION__, pwm->config.freq);
printf ("[%s] duty_cycle = %d \r\n", __FUNCTION__, pwm->config.duty_cyc... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_pwm.c | C | apache-2.0 | 906 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include "aos_hal_rtc.h"
rtc_time_t time_save;
int32_t aos_hal_rtc_init(rtc_dev_t *rtc)
{
time_save.year = 97;
time_save.month = 10;
time_save.date = 3;
time_save.hr = 10;
time_save.min = 20;
time_save.sec = 45... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_rtc.c | C | apache-2.0 | 1,105 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include "aos_hal_timer.h"
#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
#include <time.h>
static void timer_common_cb(union sigval arg)
{
timer_dev_t *amp_timer = (timer_dev_t *)arg.sival_ptr;
if (amp_timer... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_timer.c | C | apache-2.0 | 2,302 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include <errno.h>
#include <execinfo.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>
#include <semaphore.h>
#include <pthread.h>
#include <signal.h>
#include <sys/time.h>
#inc... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_uart.c | C | apache-2.0 | 4,562 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <aos/errno.h>
#include "aos_hal_wdg.h"
int32_t aos_hal_wdg_init(wdg_dev_t *wdg)
{
if(NULL == wdg )
{
printf("parameter is invalid!\n\r");
return -1;
}
printf ("[%s] timeout = %d \r\n", __FUNCTIO... | YifuLiu/AliOS-Things | components/amp_adapter/platform/linux/peripheral/aos_hal_wdg.c | C | apache-2.0 | 564 |
/**
* @file vfs.h
* @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef AOS_VFS_H
#define AOS_VFS_H
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @addtogroup aos_vfs VF... | YifuLiu/AliOS-Things | components/amp_adapter/portfiles/aos/vfs.h | C | apache-2.0 | 22,284 |
/**
* @file vfs.h
* @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef AOS_VFS_H
#define AOS_VFS_H
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @addtogroup aos_vfs VF... | YifuLiu/AliOS-Things | components/amp_adapter/vfs.h | C | apache-2.0 | 22,284 |
Import('defconfig')
defconfig.library_yaml()
| YifuLiu/AliOS-Things | components/ble_host/SConscript | Python | apache-2.0 | 45 |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
//#include <aos/osal_debug.h>
#include <aos/ble.h>
#include <yoc/bas.h>
#define TAG "BAS"
enum {
BAS_IDX_SVC,
BAS_IDX_LEVEL_CHAR,
BAS_IDX_LEVEL_VAL,
BAS_IDX_LEVEL_CCC,
BAS_IDX_MAX,
};
static slist_t bas_list = {NULL};
gatt_service bas_s... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/bas.c | C | apache-2.0 | 3,613 |
##
# Copyright (C) 2017 C-SKY Microsystems Co., 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 requi... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/build.mk | Makefile | apache-2.0 | 927 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
//#include <aos/osal_debug.h>
#include <aos/ble.h>
#include <yoc/dis.h>
#define TAG "DIS"
enum {
DIS_IDX_SVC,
DIS_IDX_MANU_NUM_CHAR,
DIS_IDX_MANU_NUM_VAL,
DIS_IDX_MODEL_NUM_CHAR,... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/dis.c | C | apache-2.0 | 10,045 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
//#include <aos/osal_debug.h>
#include <aos/ble.h>
#include <yoc/hids.h>
#define TAG "HIDS"
typedef struct hids_info_t {
uint16_t bcdHID;
uint8_t countryCode;
uint8_t flags;
} hids_i... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/hids.c | C | apache-2.0 | 11,256 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
//#include <aos/osal_debug.h>
#include <aos/ble.h>
#include <yoc/hrs.h>
#define TAG "HRS"
enum {
HRS_IDX_SVC,
HRS_IDX_MEA_CHAR,
HRS_IDX_MEA_VAL,
HRS_IDX_MEA_CCC,
HRS_IDX_BODY... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/hrs.c | C | apache-2.0 | 4,362 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
//#include <aos/osal_debug.h>
#include <aos/ble.h>
#include <yoc/ibeacons.h>
uint8_t BEACON_TYPE[2] = {0X02, 0X15} ; //define by apple for all Proximity Beacons,Cant not change,
union u {
... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/ibeacons.c | C | apache-2.0 | 2,015 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#ifndef _BT_BAS_H_
#define _BT_BAS_H_
#include "aos/list.h"
typedef struct _bas_t {
uint16_t conn_handle;
uint16_t bas_svc_handle;
int16_t ccc;
uint8_t battery_level;
slist_t next;
} bas_t;
typedef bas_t *bas_handle_t;
bas_handle_t b... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/bas.h | C | apache-2.0 | 407 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#ifndef _BT_DIS_H_
#define _BT_DIS_H_
typedef void *dis_handle_t;
typedef struct system_id_t {
uint64_t manufacturer_id; /* manufacturer-defined identifier */
uint32_t organizationally_unique_id; /* Organizationally Unique Identifier ... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/dis.h | C | apache-2.0 | 1,840 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#ifndef _BT_HIDS_H_
#define _BT_HIDS_H_
typedef void *hids_handle_t;
hids_handle_t hids_init(uint8_t mode);
int set_data_map(uint8_t u_data[], uint16_t len, uint8_t u_type);
int hids_key_send(hids_handle_t handle, uint8_t *key_code, uint16_t us_len)... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/hids.h | C | apache-2.0 | 1,595 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#ifndef _BT_HRS_H_
#define _BT_HRS_H_
#include "aos/list.h"
typedef struct _hrs_t {
uint16_t conn_handle;
uint16_t hrs_svc_handle;
int16_t mea_ccc;
uint8_t hrs_mea_flag;
uint8_t hrs_mea_level;
slist_t next;
} hrs_t;
typedef hrs_t... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/hrs.h | C | apache-2.0 | 463 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#ifndef _BT_IBECONS_H_
#define _BT_IBECONS_H_
typedef struct _beacon_info {
uint8_t id[2];
uint8_t type[2];
uint8_t uuid[16];
uint8_t major[2];
uint8_t minor[2];
uint8_t measure_power;
} beacon_info;
int ibeacon_start(uint8_t _... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/ibeacons.h | C | apache-2.0 | 475 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#ifndef _TAG_BLE_OTA_
#define _TAG_BLE_OTA_
#include <stdint.h>
typedef enum {
OTA_ST_IDLE = 0,
OTA_ST_START,
OTA_ST_REQUEST,
OTA_ST_DL,
OTA_ST_FLASH,
OTA_ST_STOP,
OTA_ST_COMPLETE,
} ota_state_en;
typedef void (*ota_event_ca... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/ota_server.h | C | apache-2.0 | 534 |
#ifndef _UART_CLIENT_H
#define _UART_CLIENT_H
#include <aos/ble.h>
#include <stdio.h>
#include "yoc/uart_profile.h"
typedef struct client_config {
uint8_t conn_def_on;
uint8_t auto_conn_mac_size;
dev_addr_t *auto_conn_mac;
dev_addr_t temp_conn_dev_set;
conn_param_t *temp_conn_param;
} client_confi... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/uart_client.h | C | apache-2.0 | 1,463 |
#ifndef _UART_PROFILE_H
#define _UART_PROFILE_H
#include <aos/ble.h>
#include <stdio.h>
#define YOC_UART_SERVICE_UUID UUID128_DECLARE(0x7e,0x31,0x35,0xd4,0x12,0xf3,0x11,0xe9, 0xab,0x14,0xd6,0x63,0xbd,0x87,0x3d,0x93)
#define YOC_UART_RX_UUID UUID128_DECLARE(0x7e,0x31,0x35,0xd4,0x12,0xf3,0x11,0xe9,0xab,0x14,0xd6,0... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/uart_profile.h | C | apache-2.0 | 829 |
#ifndef _UART_SERVER_H
#define _UART_SERVER_H
#include <aos/ble.h>
#include <stdio.h>
#include "yoc/uart_profile.h"
typedef struct _uart_server {
uint8_t adv_def_on;
adv_param_t *advParam;
ccc_value_en tx_ccc_value;
} uart_server;
typedef struct _ble_uart_server_t {
int16_t conn_handle;
uint16_t ... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/include/yoc/uart_server.h | C | apache-2.0 | 969 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
//#include <aos/osal_debug.h>
#include <aos/kernel.h>
#include <aos/ble.h>
#include <aos/gatt.h>
//#include <yoc/partition.h>
#include <yoc/ota_server.h>
#define OTA_PACKET_SIZE (8192)
#define OTA_PACKET_START (0xFF)
#define OTA_PACKET_END (0xFE)
#if... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/ota_server.c | C | apache-2.0 | 17,204 |
#include <stdio.h>
#include <bt_errno.h>
#include <ble_os.h>
//#include <aos/osal_debug.h>
#include <aos/kernel.h>
#include <aos/ble.h>
//#include <aos/aos.h>
#include "yoc/uart_client.h"
#define UUID_COMPARE_LENGTH 10
#define MAX_DEV_SURVIVE_TIME 10000 //ms
enum {
DISC_IDLE = 0,
DISC_SRV,
DISC_CHAR,
... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/uart_client.c | C | apache-2.0 | 13,864 |
#include <aos/kernel.h>
//#include <aos/osal_debug.h>
#include <aos/ble.h>
#include <bt_errno.h>
#include "yoc/uart_server.h"
enum {
YOC_UART_IDX_SVC,
YOC_UART_IDX_RX_CHAR,
YOC_UART_IDX_RX_VAL,
YOC_UART_IDX_RX_DES,
YOC_UART_IDX_TX_CHAR,
YOC_UART_IDX_TX_VAL,
YOC_UART_IDX_TX_CCC,
YOC... | YifuLiu/AliOS-Things | components/ble_host/ble_profiles/uart_server.c | C | apache-2.0 | 6,961 |
/*
* 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 <misc/byteorder.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/conn.h... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/bt_crypto.c | C | apache-2.0 | 11,565 |
##
# Copyright (C) 2017 C-SKY Microsystems Co., 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 requi... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/build.mk | Makefile | apache-2.0 | 1,037 |
/*
* Copyright (C) 2017 C-SKY Microsystems Co., 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 requi... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/include/bt_crypto.h | C | apache-2.0 | 1,637 |
subdir-ccflags-y +=-I$(srctree)/ext/lib/crypto/tinycrypt/include
obj-$(CONFIG_TINYCRYPT) := source/utils.o
obj-$(CONFIG_TINYCRYPT_ECC_DH) += source/ecc_dh.o source/ecc.o
obj-$(CONFIG_TINYCRYPT_ECC_DSA) += source/ecc_dsa.o source/ecc.o
obj-$(CONFIG_TINYCRYPT_AES) += source/aes_decrypt.o source/aes_encrypt.o
obj-$(CONFI... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/Makefile | Makefile | apache-2.0 | 743 |
##
# Copyright (C) 2017 C-SKY Microsystems Co., 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.crg/licenses/LICENSE-2.0
#
# Unless requi... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/build.mk | Makefile | apache-2.0 | 988 |
/* aes.h - TinyCrypt interface to an AES-128 implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of sou... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/aes.h | C | apache-2.0 | 5,330 |
/* cbc_mode.h - TinyCrypt interface to a CBC mode implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions o... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/cbc_mode.h | C | apache-2.0 | 6,846 |
/* ccm_mode.h - TinyCrypt interface to a CCM mode implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions o... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ccm_mode.h | C | apache-2.0 | 8,547 |
/* cmac_mode.h -- interface to a CMAC implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source cod... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/cmac_mode.h | C | apache-2.0 | 8,080 |
/* constants.h - TinyCrypt interface to constants */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code m... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/constants.h | C | apache-2.0 | 2,024 |
/* ctr_mode.h - TinyCrypt interface to CTR mode */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code mus... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ctr_mode.h | C | apache-2.0 | 4,629 |
/* ctr_prng.h - TinyCrypt interface to a CTR-PRNG implementation */
/*
* Copyright (c) 2016, Chris Morrison
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source ... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ctr_prng.h | C | apache-2.0 | 6,459 |
/* ecc.h - TinyCrypt interface to common ECC functions */
/* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must ret... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ecc.h | C | apache-2.0 | 20,332 |
/* ecc_dh.h - TinyCrypt interface to EC-DH implementation */
/*
* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ecc_dh.h | C | apache-2.0 | 5,553 |
/* ecc_dh.h - TinyCrypt interface to EC-DSA implementation */
/*
* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code m... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ecc_dsa.h | C | apache-2.0 | 6,150 |
/* uECC_platform_specific.h - Interface to platform specific functions*/
/* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ecc_platform_specific.h | C | apache-2.0 | 4,070 |
/* hmac.h - TinyCrypt interface to an HMAC implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of sourc... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/hmac.h | C | apache-2.0 | 5,455 |
/* hmac_prng.h - TinyCrypt interface to an HMAC-PRNG implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistribution... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/hmac_prng.h | C | apache-2.0 | 6,839 |
/* sha256.h - TinyCrypt interface to a SHA-256 implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of s... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/sha256.h | C | apache-2.0 | 5,017 |
/* utils.h - TinyCrypt interface to platform-dependent run-time operations */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistr... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/utils.h | C | apache-2.0 | 3,233 |
/* aes_decrypt.c - TinyCrypt implementation of AES decryption procedure */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistribu... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/aes_decrypt.c | C | apache-2.0 | 6,348 |
/* aes_encrypt.c - TinyCrypt implementation of AES encryption procedure */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistribu... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/aes_encrypt.c | C | apache-2.0 | 6,897 |
/* cbc_mode.c - TinyCrypt implementation of CBC mode encryption & decryption */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redis... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/cbc_mode.c | C | apache-2.0 | 3,824 |
/* ccm_mode.c - TinyCrypt implementation of CCM mode */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source cod... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/ccm_mode.c | C | apache-2.0 | 8,131 |
/* cmac_mode.c - TinyCrypt CMAC mode implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/cmac_mode.c | C | apache-2.0 | 7,757 |
/* ctr_mode.c - TinyCrypt CTR mode implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code m... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/ctr_mode.c | C | apache-2.0 | 3,113 |
/* ctr_prng.c - TinyCrypt implementation of CTR-PRNG */
/*
* Copyright (c) 2016, Chris Morrison
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must re... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/ctr_prng.c | C | apache-2.0 | 7,988 |
/* ecc.c - TinyCrypt implementation of common ECC functions */
/*
* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code mus... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/ecc.c | C | apache-2.0 | 28,286 |
/* ec_dh.c - TinyCrypt implementation of EC-DH */
/*
* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain th... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/ecc_dh.c | C | apache-2.0 | 7,398 |
/* ec_dsa.c - TinyCrypt implementation of EC-DSA */
/* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the ... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/ecc_dsa.c | C | apache-2.0 | 10,496 |
/* uECC_platform_specific.c - Implementation of platform specific functions*/
/* Copyright (c) 2014, Kenneth MacKay
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of s... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/ecc_platform_specific.c | C | apache-2.0 | 4,115 |
/* hmac.c - TinyCrypt implementation of the HMAC algorithm */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of sour... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/hmac.c | C | apache-2.0 | 4,699 |
/* hmac_prng.c - TinyCrypt implementation of HMAC-PRNG */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source c... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/hmac_prng.c | C | apache-2.0 | 6,904 |
/* sha256.c - TinyCrypt SHA-256 crypto hash algorithm implementation */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributio... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/sha256.c | C | apache-2.0 | 7,416 |
/* utils.c - TinyCrypt platform-dependent run-time operations */
/*
* Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of s... | YifuLiu/AliOS-Things | components/ble_host/bt_crypto/tinycrypt/source/utils.c | C | apache-2.0 | 2,491 |
add_library(subsys__bluetooth INTERFACE)
target_include_directories(subsys__bluetooth INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(common)
add_subdirectory_ifdef(CONFIG_BT_HCI host)
add_subdirectory_ifdef(CONFIG_BT_SHELL shell)
if(CONFIG_BT_CTLR)
if(CONFIG_BT_LL_SW)
add_subdirectory(controller)
en... | YifuLiu/AliOS-Things | components/ble_host/bt_host/CMakeLists.txt | CMake | apache-2.0 | 403 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <aos/aos.h>
#include <aos/log.h>
#include <aos/mesh.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/mesh.h>
#include <tinycrypt/sha256.h>
#include <tinycrypt/constants.h>
#include "drv_gpio.h"
#in... | YifuLiu/AliOS-Things | components/ble_host/bt_host/ali_vendormodel_profile/ali_vendormodel_profile.c | C | apache-2.0 | 16,915 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef ALI_VENDORMODEL_PROFILE_H_
#define ALI_VENDORMODEL_PROFILE_H_
//#include <bluetooth/mesh.h>
/** @brief calculate the digest of static oob info
*
* Calculate the sha256 of static oob info as AuthValue during
* the provisioning process.
*
* ... | YifuLiu/AliOS-Things | components/ble_host/bt_host/ali_vendormodel_profile/ali_vendormodel_profile.h | C | apache-2.0 | 4,739 |
NAME := ali_vendormodel_profile
$(NAME)_MBINS_TYPE := kernel
$(NAME)_VERSION := 1.0.0
$(NAME)_COMPONENTS := bluetooth.bt_mesh
$(NAME)_SOURCES := ali_vendormodel_profile.c
GLOBAL_INCLUDES := ./
| YifuLiu/AliOS-Things | components/ble_host/bt_host/ali_vendormodel_profile/ali_vendormodel_profile.mk | Makefile | apache-2.0 | 196 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef ALI_VENDORMODEL_PROFILE_CONFIG_H_
#define ALI_VENDORMODEL_PROFILE_CONFIG_H_
/**
* @def CONFIG_MESH_ELEM_NUM
*
* The specific supported number of elements in product.
*
*/
#define CONFIG_MESH_ELEM_NUM 1
/**
* @def CONFIG_MESH_MODLE_... | YifuLiu/AliOS-Things | components/ble_host/bt_host/ali_vendormodel_profile/ali_vendormodel_profile_config.h | C | apache-2.0 | 1,568 |
/*
* Copyright (C) 2017 C-SKY Microsystems Co., 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 requi... | YifuLiu/AliOS-Things | components/ble_host/bt_host/aos/ble.c | C | apache-2.0 | 44,036 |
##
# Copyright (C) 2017 C-SKY Microsystems Co., 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.crg/licenses/LICENSE-2.0
#
# Unless requi... | YifuLiu/AliOS-Things | components/ble_host/bt_host/build.mk | Makefile | apache-2.0 | 3,284 |
ccflags-y += -I$(srctree)/subsys/bluetooth
obj-y += dummy.o
obj-$(CONFIG_BT_DEBUG) += log.o
obj-$(CONFIG_BT_RPA) += rpa.o
| YifuLiu/AliOS-Things | components/ble_host/bt_host/common/Makefile | Makefile | apache-2.0 | 123 |
/*
* Copyright (c) 2019 Oticon A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stddef.h>
#include <misc/util.h>
u8_t u8_to_dec(char *buf, u8_t buflen, u8_t value)
{
u8_t divisor = 100;
u8_t num_digits = 0;
u8_t digit;
while (buflen > 0 && divisor > 0) {
digit = value / divisor;
if (digit != 0 ||... | YifuLiu/AliOS-Things | components/ble_host/bt_host/common/dec.c | C | apache-2.0 | 535 |
/**
* @file dummy.c
* Static compilation checks.
*/
/*
* Copyright (c) 2017 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ble_os.h>
#if defined(CONFIG_BT_HCI_HOST)
/* The Bluetooth subsystem requires the Tx thread to execute at higher priority
* than the Rx thread as the Tx th... | YifuLiu/AliOS-Things | components/ble_host/bt_host/common/dummy.c | C | apache-2.0 | 1,378 |
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stddef.h>
#include <ble_types/types.h>
#include <bt_errno.h>
#include <misc/util.h>
int char2hex(char c, u8_t *x)
{
if (c >= '0' && c <= '9') {
*x = c - '0';
} else if (c >= 'a' && c <= 'f') {
*x = c - 'a' ... | YifuLiu/AliOS-Things | components/ble_host/bt_host/common/hex.c | C | apache-2.0 | 1,523 |
/* log.c - logging helpers */
/*
* Copyright (c) 2017 Nordic Semiconductor ASA
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Helper for printk parameters to convert from binary to hex.
* We declare multiple buffers so the helper can be used multiple times
* in a single pr... | YifuLiu/AliOS-Things | components/ble_host/bt_host/common/log.c | C | apache-2.0 | 2,286 |
/**
* @file rpa.c
* Resolvable Private Address Generation and Resolution
*/
/*
* 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... | YifuLiu/AliOS-Things | components/ble_host/bt_host/common/rpa.c | C | apache-2.0 | 2,956 |
/* rpa.h - Bluetooth Resolvable Private Addresses (RPA) generation and
* resolution
*/
/*
* Copyright (c) 2017 Nordic Semiconductor ASA
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
bool bt_rpa_irk_matches(con... | YifuLiu/AliOS-Things | components/ble_host/bt_host/common/rpa.h | C | apache-2.0 | 416 |
/******************************************************************************
*
* Copyright (C) 2016 Realtek 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/hci_driver/bt_list.c | C | apache-2.0 | 4,158 |
/******************************************************************************
*
* Copyright (C) 2016 Realtek 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/hci_driver/bt_list.h | C | apache-2.0 | 6,172 |
/******************************************************************************
*
* Copyright (C) 2016 Realtek 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/hci_driver/bt_skbuff.c | C | apache-2.0 | 18,069 |
/******************************************************************************
*
* Copyright (C) 2016 Realtek 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/hci_driver/bt_skbuff.h | C | apache-2.0 | 12,557 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef __BT_VENDOR_DRV_H_
#define __BT_VENDOR_DRV_H_
#include <stdio.h>
#include <stdint.h>
typedef void (*rx_ind_cb_t)(void);
/**
* 初始化BT驱动、加载patch、调节Coex,其他厂家IC初始化的操作
*
* @return 操作状态,0代表成功,其他值表示失败
*/
int bt_vendor_drv_bring_up(void);
/**
* 设置RX事件... | YifuLiu/AliOS-Things | components/ble_host/bt_host/hci_driver/bt_vendor_drv.h | C | apache-2.0 | 1,211 |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#ifndef DEVICES_HCI_H_
#define DEVICES_HCI_H_
#include <stdint.h>
//#include <devices/driver.h>
typedef enum {
HCI_EVENT_READ,
} hci_event_t;
#define hci_open(name) device_open(name)
#define hci_open_id(name, id) device_open_id(name, id)
#define hc... | YifuLiu/AliOS-Things | components/ble_host/bt_host/hci_driver/devices/hci.h | C | apache-2.0 | 1,755 |
/*
* 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/hci_driver/h4_driver.c | C | apache-2.0 | 12,112 |
/******************************************************************************
*
* Copyright (C) 2016 Realtek 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/hci_driver/h5.c | C | apache-2.0 | 55,645 |
/******************************************************************************
*
* Copyright (C) 2014 Google, Inc.
*
* 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://ww... | YifuLiu/AliOS-Things | components/ble_host/bt_host/hci_driver/h5.h | C | apache-2.0 | 1,961 |
/*
* 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/hci_driver/h5_driver.c | C | apache-2.0 | 5,197 |
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_link_libraries(subsys__bluetooth)
zephyr_library_sources_ifdef(CONFIG_BT_HCI_RAW hci_raw.c)
zephyr_library_sources_ifdef(CONFIG_BT_DEBUG_MONITOR monitor.c)
zephyr_library_sources_ifdef(CONFIG_BT_TINYCRYPT_ECC hci_ecc.c)
zephyr_librar... | YifuLiu/AliOS-Things | components/ble_host/bt_host/host/CMakeLists.txt | CMake | apache-2.0 | 1,323 |
ccflags-y +=-I$(srctree)/include/drivers
ccflags-y +=-I$(srctree)/subsys/bluetooth
obj-$(CONFIG_BT_HCI_RAW) += hci_raw.o
obj-$(CONFIG_BT_DEBUG_MONITOR) += monitor.o
obj-$(CONFIG_BT_TINYCRYPT_ECC) += hci_ecc.o
obj-$(CONFIG_BT_INTERNAL_STORAGE) += storage.o
ifeq ($(CONFIG_BT_HCI_HOST),y)
obj-y += uuid.o hci_core.o
... | YifuLiu/AliOS-Things | components/ble_host/bt_host/host/Makefile | Makefile | apache-2.0 | 769 |
/** @file
* @brief Advance Audio Distribution Profile.
*/
/*
* 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 <misc/printk.h>
#inclu... | YifuLiu/AliOS-Things | components/ble_host/bt_host/host/a2dp.c | C | apache-2.0 | 3,113 |
/** @file
* @brief Advance Audio Distribution Profile Internal header.
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/* To be called when first SEP is being registered */
int bt_a2dp_init(void);
| YifuLiu/AliOS-Things | components/ble_host/bt_host/host/a2dp_internal.h | C | apache-2.0 | 250 |
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <string.h>
#include <ble_os.h>
#include <sys/byteorder.h>
#include <bluetooth/crypto.h>
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_CORE)
#define LOG_MODULE_NAME ... | YifuLiu/AliOS-Things | components/ble_host/bt_host/host/aes_ccm.c | C | apache-2.0 | 4,803 |
/**
* @file at.c
* Generic AT command handling library implementation
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <bt_errno.h>
#include <ctype.h>
#include <string.h>
#include <stdarg.h>
#ifdef CONFIG_BT_HFP_HF
#include <net/buf.h>
#include "at.h"
sta... | YifuLiu/AliOS-Things | components/ble_host/bt_host/host/at.c | C | apache-2.0 | 10,264 |
/** @file at.h
* @brief Internal APIs for AT command handling.
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
enum at_result {
AT_RESULT_OK,
AT_RESULT_ERROR,
AT_RESULT_CME_ERROR
};
enum at_cme {
CME_ERROR_AG_FAILURE = 0,
CME_ERROR_NO_CONNEC... | YifuLiu/AliOS-Things | components/ble_host/bt_host/host/at.h | C | apache-2.0 | 3,735 |