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-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define BMG160_I2C_ADDR1 (0x68 << 1)
#define BMG160_I2C_ADDR2 (0x69 << 1)
#define BMG160_CHIP_ID_ADDR (0x00)
#de... | YifuLiu/AliOS-Things | components/sensor/drv/drv_gyro_bosch_bmg160.c | C | apache-2.0 | 37,957 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define A3G4250D_I2C_ADDR1 (0x68)
#define A3G4250D_I2C_ADDR2 (0x69)
#define A3G4250... | YifuLiu/AliOS-Things | components/sensor/drv/drv_gyro_st_a3g4250d.c | C | apache-2.0 | 9,248 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define I3G4250D_I2C_ADDR1 (0x68)
#define I3G4250D_I2C_ADDR2 (0x69)
#define I3G4250... | YifuLiu/AliOS-Things | components/sensor/drv/drv_gyro_st_i3g4250d.c | C | apache-2.0 | 10,279 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define L3GD20H_I2C_ADDR1 (0x6A)
#define L3GD20H_I2C_ADDR2 (0x6B)
#define L3GD20... | YifuLiu/AliOS-Things | components/sensor/drv/drv_gyro_st_l3gd20h.c | C | apache-2.0 | 12,202 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_hal.h"
void sensor_drv_init()
{
#if AOS_SENSOR_TEMP_SI_SI7006
drv_temp_si_si7006_init();
#endif
#if AOS_SENSOR_HUMI_SI_SI7006
drv_humi_si_si7006_init();
#endif
#if AOS_SENSOR_ACC_ADI_ADXL372
drv_acc_adi_a... | YifuLiu/AliOS-Things | components/sensor/drv/drv_init.c | C | apache-2.0 | 8,684 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include <aos/kernel.h>
#include "sensor_drv_api.h"
#include "sensor_hal.h"
/* AK9754 Register definitions */
#define AK9754_WIA1_REG 0x00 /* Company code *... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ir_akm_ak9754.c | C | apache-2.0 | 16,280 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include <aos/kernel.h>
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define AK099XX_REG_WIA1 0x00
#define AK099XX_REG_WIA2 0... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_akm_ak09917.c | C | apache-2.0 | 20,469 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include <aos/kernel.h>
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define AK099XX_REG_WIA1 0x00
#define AK099XX_REG_WIA2 0... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_akm_ak09918.c | C | apache-2.0 | 20,106 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include <aos/kernel.h>
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define AK099XX_REG_WIA1 0x00
#define AK099XX_REG_WIA2 0... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_akm_ak09940.c | C | apache-2.0 | 23,186 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define BMM150_I2C_ADDR1 (0x10<<1)
#define BMM150_I2C_ADDR2 ... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_bosch_bmm150.c | C | apache-2.0 | 19,336 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
***** only for 1422a ,not for 1422 ***********
* Edit wanjiang-yan 2018-6-26
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
// ********** ADDR = L ,addr=0x0E,ADDR = H... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_rohm_bm1422a.c | C | apache-2.0 | 18,145 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
/*#define ST350MC_DEBUG*/
#ifdef ST350MC_DEBUG
#define ST350_LOG LOG
#else
#define ST350_LOG
#endif
#define ST350... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_senodia_st350.c | C | apache-2.0 | 10,940 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define ST480_DEBUG
#ifdef ST480_DEBUG
#define ST480_LOG LOG
#else
#define ST480_LOG
#endif
//#define ST480_I2C_AD... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_senodia_st480.c | C | apache-2.0 | 8,317 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define LIS2MDL_I2C_ADDR1 0x1E
#define LIS2MDL_I2C_ADDR_TRANS(n) ((n)<<1)
#define LIS2MD... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_st_lis2mdl.c | C | apache-2.0 | 21,336 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define LIS3MDL_I2C_ADDR1 0x1C
#define LIS3MDL_I2C_ADDR2 0x1E
#define LIS3MDL_I2C_ADDR_TRANS(n) ((n) << 1)
#defi... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_st_lis3mdl.c | C | apache-2.0 | 16,894 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include <k_api.h>
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define MMC3680KJ_REG_DATA 0x00
#define MMC3680KJ_REG_XL 0x00
#defin... | YifuLiu/AliOS-Things | components/sensor/drv/drv_mag_temp_memsic_mmc3680kj.c | C | apache-2.0 | 16,156 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define LTR659_I2C_SLAVE_ADDR 0x23
#define LTR659_SW_RESET 0x80
#define LTR659_PS_CONTR 0x81 ... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ps_liteon_ltr659.c | C | apache-2.0 | 15,592 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define LTR690_I2C_SLAVE_ADDR 0x23
#define LTR690_PS_CONTR 0x81 /* PS operation mode */
#define LTR690_PS_LED ... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ps_liteon_ltr690.c | C | apache-2.0 | 14,274 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define LTR706_I2C_SLAVE_ADDR 0x23
#define LTR706_CLK_ON 0x80
#define LTR706_PS_CONTR 0x81 ... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ps_liteon_ltr706.c | C | apache-2.0 | 18,416 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
//#include "vl53l0x_proximity.h"
#include "vl53l0x/vl53l0x_def.h"
#include "vl53l0x/vl53l0x_api.h"
#include "vl53... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ps_st_vl53l0x/drv_ps_st_vl53l0x.c | C | apache-2.0 | 9,862 |
/*
* COPYRIGHT (C) STMicroelectronics 2015. All rights reserved.
*
* This software is the confidential and proprietary information of
* STMicroelectronics ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agree... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ps_st_vl53l0x/vl53l0x/vl53l0x_platform_log.c | C | apache-2.0 | 1,633 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
/* Includes ------------------------------------------------------------------*/
#include <string.h>
#include "vl53l0x/vl53l0x_def.h"
#include "vl53l0x/vl53l0x_api.h"
#include "vl53l0x_platform.h"
#include "sensor_drv_api.h"
/* Private typedef --... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ps_st_vl53l0x/vl53l0x_platform.c | C | apache-2.0 | 6,130 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __VL53L0X_PLATFORM_H
#define __VL53L0X_PLATFORM_H
#ifdef __cplusplus
extern "C"
{
#endif
/* Includes
* ----------------------------------------------... | YifuLiu/AliOS-Things | components/sensor/drv/drv_ps_st_vl53l0x/vl53l0x_platform.h | C | apache-2.0 | 8,110 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
/*******************************************************************************
********************************* MACROS **********************************
********************... | YifuLiu/AliOS-Things | components/sensor/drv/drv_rgb_liteon_ltr381.c | C | apache-2.0 | 16,155 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
/* I2C settings for I2C library */
#ifndef DS1307_I2C
#define DS1307_I2C 1
//#define DS1307_I2C_PINSPACK TM_... | YifuLiu/AliOS-Things | components/sensor/drv/drv_rtc_maxim_ds1307.c | C | apache-2.0 | 6,487 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
/* ADI Temperature SENSOR REGISTER MAP */
#define ADT7410_BIT(x) ((uint8_t)x)
#define ADT7410_I2C_ADDR (0x48)
//#... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_adi_adt7410.c | C | apache-2.0 | 8,087 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define ENS210_I2C_ADDR1 (0x43)
#define ENS210_I2C_ADDR_TRANS(n) ((n)<<1)
#define ENS210_I2C_ADDR ... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_humi_ams_ens210.c | C | apache-2.0 | 16,022 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define BME280_I2C_ADDR_PRIM (0x76)
#define BME280_I2C_ADDR_SEC (0x77)
#define BME280_CHIP_ID (0x60)
#define BME2... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_humi_baro_bosch_bme280.c | C | apache-2.0 | 35,246 |
/*
* Copyright (C) 2018 Sensirion Inc.
* Author: Johannes Winkelmann, jwi@sensirion.com
*
* Based on SHTC1 driver
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define SHT30_I2C_SLAVE_ADDR_DEFAULT 0x44
#defin... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_humi_sensirion_sht30.c | C | apache-2.0 | 8,572 |
/*
* Copyright (C) 2018 Sensirion Inc.
* Author: Johannes Winkelmann, jwi@sensirion.com
*
* Based on SHTC1 driver
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define SHT31_I2C_SLAVE_ADDR_DEFAULT 0x44
#defin... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_humi_sensirion_sht31.c | C | apache-2.0 | 8,572 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include <k_api.h>
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define SHTC1_I2C_SLAVE_ADDR 0x70
#define SHTC1_ADDR_TRANS(n) ((n) <... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_humi_sensirion_shtc1.c | C | apache-2.0 | 10,759 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include "ulog/ulog.h"
#include "aos/hal/i2c.h"
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define SI7006_I2C_ADDRESS 0x4... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_humi_si_si7006.c | C | apache-2.0 | 7,916 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
/* ST humi SENSOR REGISTER MAP */
#define HTS221_BIT(x) ((uint8_t)x)
#define HTS221_I2C_ADDR1 ... | YifuLiu/AliOS-Things | components/sensor/drv/drv_temp_humi_st_hts221.c | C | apache-2.0 | 16,189 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define CCS811_I2C_ADDR1 (0x5A) /* When ADDR is high the 7bit I2C address is 0x5B */
#define CCS... | YifuLiu/AliOS-Things | components/sensor/drv/drv_tvoc_ams_ccs811.c | C | apache-2.0 | 8,680 |
/*
* Copyright (C) 2018 Sensirion Inc.
* Author: Johannes Winkelmann, jwi@sensirion.com
*
* Driver for SGP30 and SGPC3
* Based on SHTC1 driver
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define SGP30_I2C_SLAVE_ADDR ... | YifuLiu/AliOS-Things | components/sensor/drv/drv_tvoc_sensirion_sgp30.c | C | apache-2.0 | 7,051 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "sensor_drv_api.h"
#include "sensor_hal.h"
#define LTR390_I2C_SLAVE_ADDR 0x53
#define LTR390_MAIN_CTRL 0x00 /* Operation mode control */
#define LTR390_ALS_UVS_MEAS_RATE... | YifuLiu/AliOS-Things | components/sensor/drv/drv_uv_liteon_ltr390.c | C | apache-2.0 | 14,316 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "aos/kernel.h"
#include "sensor/sensor.h"
#include "ulog/ulog.h"
#include "netmgr.h"
#include <uservice/uservice.h>
#include <uservice/eventid.h>
#define SENSOR_SAMPL... | YifuLiu/AliOS-Things | components/sensor/example/sensor_cloud_demo.c | C | apache-2.0 | 2,719 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "aos/cli.h"
#include "aos/kernel.h"
#include "sensor/sensor.h"
#include <vfsdev/i2c_dev.h>
#define SENSOR_SAMPLE_TIME 1000 /* sensor sampling period is 1000 ms */
v... | YifuLiu/AliOS-Things | components/sensor/example/sensor_local_demo.c | C | apache-2.0 | 2,430 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "aos/kernel.h"
#include <at/at.h>
#include "gps_parse.h"
typedef enum{
GPNON = 0x0000,
GPGGA = 0x0001,
GPGSA = 0x0002,
GPGSV = 0x0004,
GPRMC = 0x0008,
... | YifuLiu/AliOS-Things | components/sensor/hal/gps_parse.c | C | apache-2.0 | 6,642 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include "sensor_drv_api.h"
#include <aos/errno.h>
#include <vfsdev/i2c_dev.h>
static int g_i2c_fd[4] = {-1, -1, -1, -1};
int32_t vfs_i2c_init(i2c_dev_t *i2c)
{
int32_t ret = 0;
int32_t port = 0;
int32_t *p_fd = NULL;
char name[16] = {0}... | YifuLiu/AliOS-Things | components/sensor/hal/sensor_drv_api.c | C | apache-2.0 | 9,484 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include "aos/vfs.h"
#include "sensor_hal.h"
#define SENSOR_MS_TO_ODR(ms) ((1000/(ms)) + 1)
extern void sensor_drv_init(void);
static int sen... | YifuLiu/AliOS-Things | components/sensor/hal/sensor_hal.c | C | apache-2.0 | 15,221 |
#include "sensor_static_calibrate.h"
#define DST_X 0
#define DST_Y 1
#define DST_Z 2
#define SRC_X 0
#define SRC_Y 0
#define SRC_Z 0
#define MAX_SRNSOR_NUM 10
typedef struct _dev_3axis_data_t
{
uint64_t timestamp;
int32_t data[3];
}dev_3axis_data_t;
typedef struct _dev_1axis_data_t
{
uint64_t timestamp;... | YifuLiu/AliOS-Things | components/sensor/hal/sensor_static_calibrate.c | C | apache-2.0 | 6,169 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#ifndef GPS_PARSE_H
#define GPS_PARSE_H
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "sensor/sensor.h"
... | YifuLiu/AliOS-Things | components/sensor/include/gps_parse.h | C | apache-2.0 | 4,113 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef SENSOR_H
#define SENSOR_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include "aos/hal/gpio.h"
#include "aos/hal/i2c.h"
#ifndef UNUSED
#if defined (__CC_ARM)
#defin... | YifuLiu/AliOS-Things | components/sensor/include/sensor/sensor.h | C | apache-2.0 | 12,341 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef SENSOR_DRV_API_H
#define SENSOR_DRV_API_H
#include "aos/kernel.h"
#include "ulog/ulog.h"
#include "sensor/sensor.h"
#include "aos/hal/spi.h"
#include "aos/hal/i2c.h"
typedef struct _sensor_io_dev_t{
dev_io_port_e io_port;
uni... | YifuLiu/AliOS-Things | components/sensor/include/sensor_drv_api.h | C | apache-2.0 | 1,617 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef SENSOR_HAL_H
#define SENSOR_HAL_H
#include <aos/init.h>
#include <aos/errno.h>
#include <aos/compiler.h>
#include "ulog/ulog.h"
#include "sensor/sensor.h"
#define SENSOR_DRV_ADD(func) \
int __sensor_##func##_func__(void){ \
return func(); \
}... | YifuLiu/AliOS-Things | components/sensor/include/sensor_hal.h | C | apache-2.0 | 519 |
#ifndef SENSOR_CALIBRATE_H
#define SENSOR_CALIBRATE_H
#include "sensor/sensor.h"
int sensor_calibrate_entry(sensor_tag_e tag,int sensor_index,int axis, void *buf);
int sensor_calibrate_entry_default(sensor_tag_e tag,int sensor_index,int axis, void *buf);
#endif
| YifuLiu/AliOS-Things | components/sensor/include/sensor_static_calibrate.h | C | apache-2.0 | 265 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include "sntp/sntp.h"
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
static void sntp_comp_example(int argc, char **argv)
{
printf("sntp test \r\n");
sntp_request(NULL);
sntp_time *sntp_time_get;
sntp_time_get = sntp_obtain_time();
... | YifuLiu/AliOS-Things | components/sntp/example/sntp_example.c | C | apache-2.0 | 776 |
/*
* Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice,... | YifuLiu/AliOS-Things | components/sntp/include/sntp/sntp.h | C | apache-2.0 | 3,835 |
/*
* Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice,... | YifuLiu/AliOS-Things | components/sntp/src/sntp.c | C | apache-2.0 | 12,081 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/Config/Global.h | C | apache-2.0 | 5,263 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/Config/SEGGER_RTT_Conf.h | C | apache-2.0 | 25,797 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/Config/SEGGER_SYSVIEW_AliOSThings.c | C | apache-2.0 | 5,926 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/Config/SEGGER_SYSVIEW_Conf.h | C | apache-2.0 | 4,665 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/Config/SEGGER_SYSVIEW_Config_AliOSThings.c | C | apache-2.0 | 6,815 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER.h | C | apache-2.0 | 11,298 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_RTT.c | C | apache-2.0 | 74,188 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_RTT.h | C | apache-2.0 | 20,668 |
/*********************************************************************
* (c) SEGGER Microcontroller GmbH *
* The Embedded Experts *
* www.segger.com *
********************************... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_RTT_ASM_ARMv7M.S | Unix Assembly | apache-2.0 | 11,352 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_RTT_printf.c | C | apache-2.0 | 16,335 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_SYSVIEW.c | C | apache-2.0 | 104,139 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_SYSVIEW.h | C | apache-2.0 | 18,658 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_SYSVIEW_ConfDefaults.h | C | apache-2.0 | 20,523 |
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
* ... | YifuLiu/AliOS-Things | components/trace/SEGGER/SEGGER_SYSVIEW_Int.h | C | apache-2.0 | 4,729 |
#include "k_api.h"
#include "SEGGER_SYSVIEW.h"
#include "SEGGER_RTT.h"
#include <stdio.h>
#ifdef AOS_COMP_TRACE
void SendTaskInfo(ktask_t *task)
{
SEGGER_SYSVIEW_TASKINFO TaskInfo;
memset(&TaskInfo, 0, sizeof(TaskInfo)); // Fill all elements with 0 to allow extending the structure in future version without break... | YifuLiu/AliOS-Things | components/trace/k_trace.c | C | apache-2.0 | 7,438 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <aos/errno.h>
#include <aos/kernel.h>
#include "aos/init.h"
#include "board.h"
#include <k_api.h>
#include "aos/hal/uart.h"
#include "k_trace.h"
#include "SEGGER_SYSVIEW.h"
#include "SEGGER_RTT.h"
#define S... | YifuLiu/AliOS-Things | components/trace/uart_send.c | C | apache-2.0 | 3,340 |
#include <stdio.h>
#include <stdlib.h>
#include "aos/kernel.h"
#include "uagent.h"
#include "aos/errno.h"
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
static int test_uagent_register_normal(void)
{
const int ret = uagent_register(UAGENT_MOD_ULOG, "ulog",
"", UAGENT_FUNC_USER_BASE, "dummy",
... | YifuLiu/AliOS-Things | components/uagent/example/uagent_example.c | C | apache-2.0 | 3,325 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#ifndef UAGENT_H
#define UAGENT_H
#include "uagent_type.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Register service routine from customer into uagent for delegate
* Update the cb if the same mod and func alreay registered before.
*
* @param[in... | YifuLiu/AliOS-Things | components/uagent/include/uagent.h | C | apache-2.0 | 3,300 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#ifndef UAGENT_CONFIG_H
#define UAGENT_CONFIG_H
#define PK_STR_SIZE 16 /* PK LEN currently is 11 */
#define DN_STR_SIZE 36 /* DN LEN currently is 32 */
/* 11Bytes PK + MAX 32bytes DN + payload */
#define UAGENT_TOPIC_MAX_LEN 64
/* uagent support main ser... | YifuLiu/AliOS-Things | components/uagent/include/uagent_config.h | C | apache-2.0 | 2,533 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#ifndef UAGENT_TYPE_H
#define UAGENT_TYPE_H
/* type define */
typedef unsigned short ua_mod_t;
typedef unsigned short ua_func_t;
typedef unsigned char service_agent_rlt_t;
#define SERVICE_AGENT_FAIL (service_agent_rlt_t)0x00
#define SERVICE_AGENT_OK ... | YifuLiu/AliOS-Things | components/uagent/include/uagent_type.h | C | apache-2.0 | 3,602 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#ifndef UAGENT_API_H
#define UAGENT_API_H
#include <stdbool.h>
#include <stdio.h>
#include "uagent_config.h"
#include "uagent_type.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
char initd;
char service_started;
ua_send_policy_t to... | YifuLiu/AliOS-Things | components/uagent/internal/uagent_inner_api.h | C | apache-2.0 | 1,699 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "uagent_config.h"
#include "uagent_inner_api.h"
#include "aos/kernel.h"
#include "aos/errno.h"
#include "core_mqtt.h"
static char mqtt_topic_up[UAGENT_TOPIC_MAX_LEN];
static char mqtt_t... | YifuLiu/AliOS-Things | components/uagent/src/uagent_comm_mqtt.c | C | apache-2.0 | 4,946 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "uagent.h"
#include "uagent_inner_api.h"
#include "aos/kernel.h"
#include "aos/errno.h"
#include "k_config.h"
#include "cJSON.h"
typedef struct {
ua_mod_t ... | YifuLiu/AliOS-Things | components/uagent/src/uagent_core.c | C | apache-2.0 | 26,526 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include "uagent.h"
#include "uagent_inner_api.h"
#include "aos/kernel.h"
#include "aos/errno.h"
#include "k_config.h"
#include "uagent_config.h"
#define UAGENT_CONFIG_SUPPORT_BASE64 1
static int pub_info(const unsigned short len, void... | YifuLiu/AliOS-Things | components/uagent/src/uagent_send.c | C | apache-2.0 | 9,990 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include "uagent.h"
#include "uagent_inner_api.h"
#include "aos/kernel.h"
#include "aos/errno.h"
#include "k_config.h"
#include "cJSON.h"
static aos_mutex_t uagent_mutex;
void uagent_init_mutex(void)
{
aos_mutex_new(&uagent_mutex... | YifuLiu/AliOS-Things | components/uagent/src/uagent_utility.c | C | apache-2.0 | 4,120 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include <stdio.h>
#include "wifi_camera.h"
#include "ucamera_service.h"
#include "ulog/ulog.h"
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
#define TAG "ucamera_example"
#define LOG printf
#define CAPTURED_IMAGE "/data/capture.jpg"
... | YifuLiu/AliOS-Things | components/ucamera/example/ucamera_example.c | C | apache-2.0 | 2,494 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _UART_CAMERA_H_
#define _UART_CAMERA_H_
#define UART_CAMERA_NAME "uart-camera"
#define UART_CAMERA_FRAME_WIDTH 320
#define UART_CAMERA_FRAME_HEIGHT 240
#endif // _UART_CAMERA_H_
| YifuLiu/AliOS-Things | components/ucamera/include/device/uart/uart_camera.h | C | apache-2.0 | 254 |
#ifndef _UART_FRAME_H
#define _UART_FRAME_H
#include <stdio.h>
#include <stdint.h>
#define DISABLE_USE_UART_QUEUE
typedef enum {
IDLE = 0x00,
WAIT_FINISH,
FINISH,
} frame_state_n;
/*
* frame_state is volatile type
*/
extern volatile frame_state_n frame_state;
void uart_frame_init(int32_t rx, int32_t ... | YifuLiu/AliOS-Things | components/ucamera/include/device/uart/uart_frame.h | C | apache-2.0 | 568 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef _DECHUNK_H_
#define _DECHUNK_H_
#include <stdio.h>
#define DCE_OK 0
#define DCE_ISRUNNING 1
#define DCE_FORMAT 2
#define DCE_ARGUMENT 3
#define DCE_MEM 4
#define DCE_LOCK 5
int dechunk... | YifuLiu/AliOS-Things | components/ucamera/include/device/wifi/dechunk.h | C | apache-2.0 | 519 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _WIFI_CAMERA_H_
#define _WIFI_CAMERA_H_
#define WIFI_CAMERA_NAME "wifi-camera"
#define WIFI_CAMERA_FRAME_WIDTH 320
#define WIFI_CAMERA_FRAME_HEIGHT 240
#endif // _WIFI_CAMERA_H_
| YifuLiu/AliOS-Things | components/ucamera/include/device/wifi/wifi_camera.h | C | apache-2.0 | 254 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _CAMERA_COMMON_H_
#define _CAMERA_COMMON_H_
#include <stdint.h>
typedef struct _frame_buffer_t {
uint8_t *buf;
uint32_t len;
uint16_t width;
uint16_t height;
uint32_t format;
} frame_buffer_t;
typedef enum {
SIZE_160X120 ... | YifuLiu/AliOS-Things | components/ucamera/include/ucamera_common.h | C | apache-2.0 | 1,223 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _CAMERA_DEVICE_H_
#define _CAMERA_DEVICE_H_
#include <stdint.h>
#include <stdbool.h>
#include "wifi_camera.h"
#include "uart_camera.h"
#include "ucamera_service.h"
#include "ucamera_common.h"
typedef enum {
CAM_WIFI_STA_MODE,
CAM_UART_MOD... | YifuLiu/AliOS-Things | components/ucamera/include/ucamera_device.h | C | apache-2.0 | 2,183 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _CAMERA_SERVICE_H_
#define _CAMERA_SERVICE_H_
#include <stdint.h>
#include "ucamera_device.h"
#include "ucamera_common.h"
#ifdef __cplusplus
extern "C" {
#endif
#define UCAMERA_PIX_FMT_YYUV 0
#define UCAMERA_PIX_FMT_AYUV32 1
#define UCAMERA_... | YifuLiu/AliOS-Things | components/ucamera/include/ucamera_service.h | C | apache-2.0 | 2,166 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "ucamera_service.h"
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "freertos/semphr.h"
#include "stdatomic.h"
#include "uart_frame.h"
// #i... | YifuLiu/AliOS-Things | components/ucamera/src/device/uart/esp32/uart_camera.c | C | apache-2.0 | 16,114 |
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "driver/uart.h"
#include "string.h"
#include "esp_heap_caps.h"
#include "uart_frame.h"
#define UART_NUM UART_NUM_1
#define UART_QUEUE_LENGTH 10
#define TX_BUF_SIZE 0
#define FRAME_MAX_SIZE (16 * 1024)
#define... | YifuLiu/AliOS-Things | components/ucamera/src/device/uart/esp32/uart_frame.c | C | apache-2.0 | 14,433 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "ucamera_service.h"
#include "stdatomic.h"
#include "uart_frame.h"
#define TAG "UART_CAMERA"
#define HEAD_SIZE 2048
#define BODY_SZIE (1024 * 128 + 1)
// #... | YifuLiu/AliOS-Things | components/ucamera/src/device/uart/haas/uart_camera.c | C | apache-2.0 | 6,636 |
#include <stdio.h>
#include <aos/kernel.h>
#include "aos_hal_uart.h"
#include "string.h"
#include "uart_frame.h"
#define UART_NUM 1
#define UART_QUEUE_LENGTH 10
#define TX_BUF_SIZE 0
#define FRAME_MAX_SIZE (16 * 1024)
#define RX_BUF_SIZE 4 * 1024
#define PACK_FIRST_BYTE 0xAA
#define PACK_SECOND_BYTE 0x55
#define UA... | YifuLiu/AliOS-Things | components/ucamera/src/device/uart/haas/uart_frame.c | C | apache-2.0 | 10,018 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include "dechunk.h"
#include <string.h>
#include <stdlib.h>
#define CHUNK_INIT() \
do { \
g_is_chunkbegin = 0; \
g_chunk_len = 0; \
g_chunk_read = 0; \
} while (0)
#define DC_MIN(x, y) ((x) > (y) ? (y) : (x))
static char *g_buff_out ... | YifuLiu/AliOS-Things | components/ucamera/src/device/wifi/dechunk/dechunk.c | C | apache-2.0 | 3,916 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "ucamera_service.h"
#include <httpclient.h>
#include "wifi_camera.h"
// #include <aiconfig.h>
/*Tested this program with esp32 eye*/
#define TAG "WIFI_CAMERA"... | YifuLiu/AliOS-Things | components/ucamera/src/device/wifi/wifi_camera.c | C | apache-2.0 | 4,380 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "ucamera_service.h"
#include "ucamera_device.h"
#define TAG "UCAMERA_SERVICE"
static ucamera_device_t *g_ucamera_dev = NULL;
/* Available camera context */
s... | YifuLiu/AliOS-Things | components/ucamera/src/ucamera_device.c | C | apache-2.0 | 2,449 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "ucamera_service.h"
#include "wifi_camera.h"
#define TAG "UCAMERA_SERVICE"
/*
* Initialize the ucamera service
*/
int32_t ucamera_service_init(const char *d... | YifuLiu/AliOS-Things | components/ucamera/src/ucamera_service.c | C | apache-2.0 | 5,126 |
#!/usr/bin/env python3
import os
import sys
import getpass
import shutil
comp_path = sys.path[0]
print("comp_path:")
print(comp_path)
# original folder
org_image_path = comp_path + "/example/image"
# new folder
data_path = comp_path + "/../../hardware/chip/haas1000/prebuild/data/data"
image_path = data_path + "/ucl... | YifuLiu/AliOS-Things | components/ucloud_ai/cp_resources.py | Python | apache-2.0 | 589 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include "ucloud_ai_common.h"
#include "ulog/ulog.h"
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
#define TAG "uclud_ai_example"
#define LOG printf
static void ucloud_ai_comp_example(int argc, char **argv)
{
int model_index = -1;
int ret = -1;
... | YifuLiu/AliOS-Things | components/ucloud_ai/example/ucloud_ai_example.c | C | apache-2.0 | 4,830 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _CHATBOT_H_
#define _CHATBOT_H_
#include "model/internal.h"
#ifdef __cplusplus
extern "C" {
#endif
char *chatbot(char *pInstanceId, char *pSessionId, char *text);
#ifdef __cplusplus
}
#endif
#endif // _CHATBOT_H_
| YifuLiu/AliOS-Things | components/ucloud_ai/include/model/chatbot.h | C | apache-2.0 | 290 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _COMMON_H_
#define _COMMON_H_
#include <stdint.h>
#include "model/facebody.h"
#include "model/imageenhan.h"
#include "model/imagerecog.h"
#include "model/imageseg.h"
#include "model/objectdet.h"
#include "model/ocr.h"
#include "model/internal.h"... | YifuLiu/AliOS-Things | components/ucloud_ai/include/model/common.h | C | apache-2.0 | 1,004 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef _FACEBODY_H_
#define _FACEBODY_H_
#include "internal.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _ComparingFaceStruct {
float confidence;
RectStruct location;
} ComparingFaceStruct;
typedef struct _RecognizeExpressionStruc... | YifuLiu/AliOS-Things | components/ucloud_ai/include/model/facebody.h | C | apache-2.0 | 1,149 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _IMAGEENHAN_H_
#define _IMAGEENHAN_H_
#include "model/internal.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _ErasePersonStruct {
char *url;
char *image;
int imageLen;
} ErasePersonStruct;
typedef struct _ExtendImageStyl... | YifuLiu/AliOS-Things | components/ucloud_ai/include/model/imageenhan.h | C | apache-2.0 | 794 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _IMAGERECOG_H_
#define _IMAGERECOG_H_
#include "internal.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _ClassifyingRubbishStruct {
char *rubbish;
char *category;
float categoryScore;
float rubbishScore;
} ClassifyingR... | YifuLiu/AliOS-Things | components/ucloud_ai/include/model/imagerecog.h | C | apache-2.0 | 720 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _IMAGESEG_H_
#define _IMAGESEG_H_
#include "internal.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _SegmentCommonStruct {
char *url;
char *image;
int imageLen;
} SegmentCommonStruct;
typedef struct _SegmentFaceStruct {
... | YifuLiu/AliOS-Things | components/ucloud_ai/include/model/imageseg.h | C | apache-2.0 | 673 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#ifndef _INTERNAL_H_
#define _INTERNAL_H_
#define CLOUD_AI_REGION_ID "cn-shanghai"
#define CLOUD_AI_FACEBODY_ENDPOINT "facebody.cn-shanghai.aliyuncs.com"
#define CLOUD_AI_OBJECTDET_ENDPOINT "objectdet.cn-shanghai.aliyuncs.com"
#define CLOUD_AI_IMAGESEG_E... | YifuLiu/AliOS-Things | components/ucloud_ai/include/model/internal.h | C | apache-2.0 | 995 |