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 */ #ifndef _SYS_TYPES_H #define _SYS_TYPES_H #include <stdint.h> #ifndef _PARAMS #define _PARAMS(paramlist) paramlist #endif #define _CLOCK_T_ uint32_t #define STDOUT_FILENO 1 #define STDERR_FILENO 2 typedef uint32_t clockid_t; typedef uint32_t key_...
YifuLiu/AliOS-Things
components/libc_stub/compilers/iar/sys/types.h
C
apache-2.0
784
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #ifndef _SYS_UNISTD_H #define _SYS_UNISTD_H #endif /* _SYS_UNISTD_H */
YifuLiu/AliOS-Things
components/libc_stub/compilers/iar/sys/unistd.h
C
apache-2.0
138
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include "sys/unistd.h"
YifuLiu/AliOS-Things
components/libc_stub/compilers/iar/unistd.h
C
apache-2.0
89
/* * Copyright (C) 2015-2021 Alibaba Group Holding Limited */ #include <fcntl.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #if AOS_COMP_CLI #include "aos/cli.h" #endif #ifdef AOS_COMP_RAMFS #include "ramfs.h" #endif static void libc_stub_example(int argc, char **argv) { (v...
YifuLiu/AliOS-Things
components/libc_stub/example/libc_stub_example.c
C
apache-2.0
1,553
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <reent.h> #include <sys/errno.h> #include <sys/unistd.h> #include <sys/time.h> #include <stdarg.h> #include <k_api.h> #include "aos/kernel.h" #include "aos/vfs.h" #include "aos/hal/uart.h" #include "vfs_conf.h" #include "sys/socket.h" #ifdef ...
YifuLiu/AliOS-Things
components/libc_stub/newlib_stub.c
C
apache-2.0
9,727
/** * @file aiot_bootstrap_api.c * @brief Bootstrap模块的API接口实现, 提供获取阿里云物联网平台连接信息的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "bootstrap_private.h" static void _bootstrap_exec_inc(bootstrap_handle_t *bootstrap_handle) { bootstrap_handle->sysdep->core_sysdep_mutex_lock...
YifuLiu/AliOS-Things
components/linksdk/components/bootstrap/aiot_bootstrap_api.c
C
apache-2.0
27,240
/** * @file aiot_bootstrap_api.h * @brief Bootstrap模块头文件, 可用于获取阿里云物联网平台的连接信息 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #ifndef _AIOT_BOOTSTRAP_API_H_ #define _AIOT_BOOTSTRAP_API_H_ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> /** * @brief -0x0700~-0x07FF表达S...
YifuLiu/AliOS-Things
components/linksdk/components/bootstrap/aiot_bootstrap_api.h
C
apache-2.0
10,274
#ifndef _BOOTSTRAP_PRIVATE_H_ #define _BOOTSTRAP_PRIVATE_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_string.h" #include "core_log.h" #include "core_http.h" #include "core_global.h" #include "core_mqtt.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #include "ai...
YifuLiu/AliOS-Things
components/linksdk/components/bootstrap/bootstrap_private.h
C
apache-2.0
1,838
/** * @file aiot_dm_api.c * @brief 数据模型模块接口实现文件, 包含了支持物模型数据格式通信的所有接口实现 * @date 2020-01-20 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "dm_private.h" static int32_t _dm_send_property_post(dm_handle_t *handle, const char *topic, const aiot_dm_msg_t *msg); static int32_t _d...
YifuLiu/AliOS-Things
components/linksdk/components/data-model/aiot_dm_api.c
C
apache-2.0
29,553
/** * @file aiot_dm_api.h * @brief 数据模型模块头文件, 提供了物模型数据格式的上云能力, 包括属性, 事件, 服务和物模型二进制格式的数据上下行能力 * @date 2020-01-20 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * * @details * * 请按照以下流程使用API * * 1. 在使用物模型模块前, 用户应首先创建好一个MQTT实例 * * 2. 调用`aiot_dm_init`创建一个物模型实例, 保存实例句柄 * * 3. 调用`aiot_dm_...
YifuLiu/AliOS-Things
components/linksdk/components/data-model/aiot_dm_api.h
C
apache-2.0
23,476
/** * @file dm_private.h * @brief 数据模型模块内部头文件 * @date 2020-01-20 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __DM_PRIVATE_H__ #define __DM_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_string.h" #include "core_log.h" #inc...
YifuLiu/AliOS-Things
components/linksdk/components/data-model/dm_private.h
C
apache-2.0
2,086
/** * @file aiot_devinfo_api.c * @brief devinfo模块的API接口实现, 提供更新和删除设备标签的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "devinfo_private.h" #include "core_string.h" #include "core_log.h" #include "core_global.h" #include "core_mqtt.h" static void _core_devinfo_exec_inc(devi...
YifuLiu/AliOS-Things
components/linksdk/components/devinfo/aiot_devinfo_api.c
C
apache-2.0
14,381
/** * @file aiot_devinfo_api.h * @brief devinfo模块头文件, 提供更新和删除设备标签的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * * @details * * Devinfo模块用于向阿里云物联网平台更新或删除设备的标签, API的使用流程如下: * * 1. 首先参考 @ref aiot_mqtt_api.h 的说明, 保证成功建立与物联网平台的`MQTT`连接 * * 2. 调用 @ref aiot_devinfo_init 初始化devinfo会话, 获取...
YifuLiu/AliOS-Things
components/linksdk/components/devinfo/aiot_devinfo_api.h
C
apache-2.0
9,495
/** * @file devinfo_private.h * @brief devinfo模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __DEVINFO_PRIVATE_H__ #define __DEVINFO_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" /* TODO: 这一段列出需要包含SDK其它模块头文件...
YifuLiu/AliOS-Things
components/linksdk/components/devinfo/devinfo_private.h
C
apache-2.0
2,053
/** * @file aiot_diag_api.c * @brief diag模块的API接口实现, 提供诊断SDK的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "diag_private.h" #include "core_string.h" #include "core_log.h" #include "core_global.h" #include "core_mqtt.h" #include "core_diag.h" static void _diag_mqtt_conn_h...
YifuLiu/AliOS-Things
components/linksdk/components/diag/aiot_diag_api.c
C
apache-2.0
29,930
/** * @file aiot_diag_api.h * @brief diag模块头文件, 提供诊断SDK的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __AIOT_DIAG_API_H__ #define __AIOT_DIAG_API_H__ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> /** * @brief -0x0.00~-0x0.FF表达SDK在diag模块内的状态码 */ #defin...
YifuLiu/AliOS-Things
components/linksdk/components/diag/aiot_diag_api.h
C
apache-2.0
7,848
/** * @file diag_private.h * @brief diag模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __DIAG_PRIVATE_H__ #define __DIAG_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_list.h" #include "aiot_st...
YifuLiu/AliOS-Things
components/linksdk/components/diag/diag_private.h
C
apache-2.0
7,516
/** * @file aiot_dynregmq_api.c * @brief dynregmq模块的API接口实现, 提供获取设备信息的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "dynregmq_private.h" #include "core_string.h" #include "core_log.h" #include "core_auth.h" static void _dynregmq_exec_inc(dynregmq_handle_t *dynregmq_handl...
YifuLiu/AliOS-Things
components/linksdk/components/dynreg-mqtt/aiot_dynregmq_api.c
C
apache-2.0
19,082
/** * @file aiot_dynregmq_api.h * @brief dynregmq模块头文件, 提供了基于MQTT的设备信息动态注册能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __AIOT_DYNREGMQ_API_H__ #define __AIOT_DYNREGMQ_API_H__ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> /** * @brief -0x0500~-0x05FF表达...
YifuLiu/AliOS-Things
components/linksdk/components/dynreg-mqtt/aiot_dynregmq_api.h
C
apache-2.0
9,939
/** * @file dynregmq_private.h * @brief dynregmq模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __DYNREGMQ_PRIVATE_H__ #define __DYNREGMQ_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif /* 用这种方式包含标准C库的头文件 */ #include "core_stdinc.h" #i...
YifuLiu/AliOS-Things
components/linksdk/components/dynreg-mqtt/dynregmq_private.h
C
apache-2.0
2,859
/** * @file aiot_dynreg_api.c * @brief dynreg模块的API接口实现, 提供获取设备信息的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "dynreg_private.h" #include "core_string.h" #include "core_log.h" #include "core_auth.h" static void _dynreg_exec_inc(dynreg_handle_t *dynreg_handle) { dynr...
YifuLiu/AliOS-Things
components/linksdk/components/dynreg/aiot_dynreg_api.c
C
apache-2.0
18,768
/** * @file aiot_dynreg_api.h * @brief dynreg模块头文件, 提供获取设备信息的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __AIOT_DYNREG_API_H__ #define __AIOT_DYNREG_API_H__ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> /** * @brief -0x0600~-0x06FF表达SDK在dynreg模块内的状态码...
YifuLiu/AliOS-Things
components/linksdk/components/dynreg/aiot_dynreg_api.h
C
apache-2.0
8,274
/** * @file dynreg_private.h * @brief dynreg模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __DYNREG_PRIVATE_H__ #define __DYNREG_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif /* 用这种方式包含标准C库的头文件 */ #include "core_stdinc.h" /* TODO: 这...
YifuLiu/AliOS-Things
components/linksdk/components/dynreg/dynreg_private.h
C
apache-2.0
2,714
/** * @file aiot_logpost_api.c * @brief logpost模块的API接口实现, 提供设备端日志上云的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "logpost_private.h" #include "core_string.h" #include "core_log.h" #include "core_mqtt.h" #include "core_global.h" #include "aiot_mqtt_api.h" #define LOGPO...
YifuLiu/AliOS-Things
components/linksdk/components/logpost/aiot_logpost_api.c
C
apache-2.0
15,623
/** * @file aiot_logpost_api.h * @brief logpost模块头文件, 提供设备端日志上云的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * * @details * * 1. 在使用日志上云模块前, 用户应首先创建好一个MQTT实例 * * 2. 调用`aiot_logpost_init`创建一个日志上云实例, 保存实例句柄 * * 3. 调用`aiot_logpost_setopt`配置`AIOT_LOGPOSTOPT_MQTT_HANDLE`选项以设置MQTT句柄, 此选...
YifuLiu/AliOS-Things
components/linksdk/components/logpost/aiot_logpost_api.h
C
apache-2.0
8,008
/** * @file logpost_private.h * @brief logpost模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __LOGPOST_PRIVATE_H__ #define __LOGPOST_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "aiot_state_api.h" ...
YifuLiu/AliOS-Things
components/linksdk/components/logpost/logpost_private.h
C
apache-2.0
1,916
/** * @file aiot_mqtt_upload_api.c * @brief MQTT UPLOAD模块头文件, 提供通过mqtt进行文件上传的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "mqtt_upload_private.h" #define UPLOAD_GET_U16BIT(h, l) (((h << 8) | l) & 0xFFFF) #define UPLOAD_GET_U16BIT_HIGH(n) ((n & 0xFF00) >> 8) #define U...
YifuLiu/AliOS-Things
components/linksdk/components/mqtt-upload/aiot_mqtt_upload_api.c
C
apache-2.0
60,304
/** * @file aiot_mqtt_upload_api.h * @brief MQTT UPLOAD模块头文件, 提供通过mqtt进行文件上传的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __AIOT_MQTT_UPLOAD_API_H__ #define __AIOT_MQTT_UPLOAD_API_H__ #if defined(__cplusplus) extern "C" { #endif /** * @brief -0x2100~-0x21FF表达SDK在mqtt_upl...
YifuLiu/AliOS-Things
components/linksdk/components/mqtt-upload/aiot_mqtt_upload_api.h
C
apache-2.0
19,592
/** * @file mqtt_upload_private.h * @brief MQTT UPLOAD模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __MQTT_UPLOAD_PRIVATE_H__ #define __MQTT_UPLOAD_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif /* 用这种方式包含标准C库的头文件 */ #include "core_s...
YifuLiu/AliOS-Things
components/linksdk/components/mqtt-upload/mqtt_upload_private.h
C
apache-2.0
6,254
#include <stdint.h> #include "upload_crc64.h" static const uint64_t crc64_table[256] = { 0x0000000000000000, 0xb32e4cbe03a75f6f, 0xf4843657a840a05b, 0x47aa7ae9abe7ff34, 0x7bd0c384ff8f5e33, 0xc8fe8f3afc28015c, 0x8f54f5d357cffe68, 0x3c7ab96d5468a107, 0xf7a18709ff1ebc66, 0x448fcbb7fcb9e309, 0x0325b15e575e1c3d, 0xb00bf...
YifuLiu/AliOS-Things
components/linksdk/components/mqtt-upload/upload_crc64.c
C
apache-2.0
5,524
#ifndef _CRC64_H_ #define _CRC64_H_ #include <stdint.h> #include <stddef.h> typedef uint64_t crc64_t; crc64_t upload_crc64_update(crc64_t crc, const unsigned char *s, uint64_t l); #endif
YifuLiu/AliOS-Things
components/linksdk/components/mqtt-upload/upload_crc64.h
C
apache-2.0
191
/** * @file aiot_ntp_api.c * @brief ntp模块的API接口实现, 提供获取utc时间的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ /* TODO: 对本模块的头文件, 仅需包含ntp_private.h, 不需包含aiot_ntp_api.h */ #include "ntp_private.h" /* TODO: 列出对core模块需要包含的头文件 */ #include "core_string.h" #include "core_log.h" #include "co...
YifuLiu/AliOS-Things
components/linksdk/components/ntp/aiot_ntp_api.c
C
apache-2.0
11,699
/** * @file aiot_ntp_api.h * @brief ntp模块头文件, 提供获取utc时间的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * * @details * * NTP模块用于从阿里云物联网平台上获取UTC时间, API的使用流程如下: * * 1. 首先参考 @ref aiot_mqtt_api.h 的说明, 保证成功建立与物联网平台的`MQTT`连接 * * 2. 调用 @ref aiot_ntp_init 初始化ntp会话, 获取会话句柄 * * 3. 调用 @ref ai...
YifuLiu/AliOS-Things
components/linksdk/components/ntp/aiot_ntp_api.h
C
apache-2.0
7,274
/** * @file ntp_private.h * @brief ntp模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __NTP_PRIVATE_H__ #define __NTP_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif /* 用这种方式包含标准C库的头文件 */ #include "core_stdinc.h" /* TODO: 这一段列出需要包含SDK其...
YifuLiu/AliOS-Things
components/linksdk/components/ntp/ntp_private.h
C
apache-2.0
1,894
/** * @file aiot_ota_api.c * @brief OTA模块接口实现文件, 其中包含了OTA的所有用户API * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #include "aiot_ota_api.h" #include "core_mqtt.h" #include "core_string.h" #include "core_sha256.h" #include "ota_md5.h" #include "ota_private.h" #include...
YifuLiu/AliOS-Things
components/linksdk/components/ota/aiot_ota_api.c
C
apache-2.0
46,752
/** * @file aiot_ota_api.h * @brief OTA模块头文件, 提供设备获取固件升级和远程配置的能力 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * * @details * * OTA模块可用于配合阿里云平台的固件升级服务, 在[推送固件到设备](https://help.aliyun.com/document_detail/58328.html)页面有介绍OTA的控制操作流程 * * + 参考[设备端OTA升级](https://help.aliyu...
YifuLiu/AliOS-Things
components/linksdk/components/ota/aiot_ota_api.h
C
apache-2.0
30,967
#include "ota_md5.h" /* * 32-bit integer manipulation macros (little endian) */ #ifndef GET_UINT32_LE #define GET_UINT32_LE(n,b,i) \ { \ (n) = ( (uint32_t) (b)[(i) ] ) \ | ( (uint32_t) (b)...
YifuLiu/AliOS-Things
components/linksdk/components/ota/ota_md5.c
C
apache-2.0
7,833
#ifndef __OTA_MD5_H__ #define __OTA_MD5_H__ #if defined(__cplusplus) extern "C" { #endif #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <stddef.h> /** * \brief MD5 context structure * * \warning MD5 is considered a weak message digest and its use * ...
YifuLiu/AliOS-Things
components/linksdk/components/ota/ota_md5.h
C
apache-2.0
3,801
#ifndef __OTA_PRIVATE_H__ #define __OTA_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_http.h" #include "aiot_ota_api.h" #define OTA_VERSION_TOPIC_PREFIX "/ota/device/inform" #define OTA_PROGRESS_TOPIC_PREFIX "/ota/device/progress" #define OT...
YifuLiu/AliOS-Things
components/linksdk/components/ota/ota_private.h
C
apache-2.0
3,714
/** * @file aiot_shadow_api.c * @brief shadow模块的API接口实现, 提供更新, 删除, 获取设备影子的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "shadow_private.h" #include "core_string.h" #include "core_log.h" #include "core_global.h" #include "core_mqtt.h" static int32_t _shadow_get_pk_dn(aio...
YifuLiu/AliOS-Things
components/linksdk/components/shadow/aiot_shadow_api.c
C
apache-2.0
14,469
/** * @file aiot_shadow_api.h * @brief shadow模块头文件, 提供更新, 删除, 获取设备影子的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * * @details * * 请按照以下流程使用API * * 1. 在使用设备影子模块前, 用户应首先创建好一个MQTT实例 * * 2. 调用`aiot_shadow_init`创建一个设备影子实例, 保存实例句柄 * * 3. 调用`aiot_shadow_setopt`配置`AIOT_SHADOWOPT_MQTT_H...
YifuLiu/AliOS-Things
components/linksdk/components/shadow/aiot_shadow_api.h
C
apache-2.0
12,674
/** * @file shadow_private.h * @brief shadow模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __SHADOW_PRIVATE_H__ #define __SHADOW_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif /* 用这种方式包含标准C库的头文件 */ #include "core_stdinc.h" #include "...
YifuLiu/AliOS-Things
components/linksdk/components/shadow/shadow_private.h
C
apache-2.0
1,653
/** * @file aiot_subdev_api.c * @brief subdev模块的API接口实现, 提供.......的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #include "subdev_private.h" /* TODO: 列出对core模块需要包含的头文件 */ #include "core_global.h" #include "core_string.h" #include "core_log.h" #include "core_sha256.h" #include "cor...
YifuLiu/AliOS-Things
components/linksdk/components/subdev/aiot_subdev_api.c
C
apache-2.0
32,005
/** * @file aiot_subdev_api.h * @brief subdev模块头文件, 提供子设备管理的能力 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __AIOT_SUBDEV_API_H__ #define __AIOT_SUBDEV_API_H__ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> /** * @brief -0x0C00~-0x0CFF表达SDK在subdev模块内的状态码 ...
YifuLiu/AliOS-Things
components/linksdk/components/subdev/aiot_subdev_api.h
C
apache-2.0
9,988
/** * @file subdev_private.h * @brief subdev模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __SUBDEV_PRIVATE_H__ #define __SUBDEV_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif /* 用这种方式包含标准C库的头文件 */ #include "core_stdinc.h" /* TODO: 这...
YifuLiu/AliOS-Things
components/linksdk/components/subdev/subdev_private.h
C
apache-2.0
2,563
/** * @file aiot_task_api.c * @brief TASK模块接口实现文件, 其中包含了TASK的所有用户API * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #include "core_mqtt.h" #include "core_string.h" #include "core_log.h" #include "core_global.h" #include "task_private.h" #include "aiot_task_api.h" s...
YifuLiu/AliOS-Things
components/linksdk/components/task/aiot_task_api.c
C
apache-2.0
24,566
/** * @file aiot_task_api.h * @brief task模块头文件, 提供任务管理的能力 * @date 2020-11-25 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * * @details * * */ #ifndef __AIOT_TASK_API_H__ #define __AIOT_TASK_API_H__ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> /** * @brief -0x0B...
YifuLiu/AliOS-Things
components/linksdk/components/task/aiot_task_api.h
C
apache-2.0
10,514
/** * @file task_private.h * @brief task模块内部的宏定义和数据结构声明, 不面向其它模块, 更不面向用户 * * @copyright Copyright (C) 2015-2020 Alibaba Group Holding Limited * */ #ifndef __TASK_PRIVATE_H__ #define __TASK_PRIVATE_H__ #if defined(__cplusplus) extern "C" { #endif /* 用这种方式包含标准C库的头文件 */ #include "core_stdinc.h" /* TODO: 这一段列出需要包...
YifuLiu/AliOS-Things
components/linksdk/components/task/task_private.h
C
apache-2.0
2,541
#include "core_http.h" static void _core_aiot_http_exec_inc(core_http_handle_t *http_handle) { http_handle->sysdep->core_sysdep_mutex_lock(http_handle->data_mutex); http_handle->exec_count++; http_handle->sysdep->core_sysdep_mutex_unlock(http_handle->data_mutex); } static void _core_aiot_http_exec_dec(cor...
YifuLiu/AliOS-Things
components/linksdk/core/aiot_http_api.c
C
apache-2.0
19,388
/** * @file aiot_http_api.h * @brief HTTP模块头文件, 提供用HTTP协议向阿里云物联网平台上报数据的能力 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #ifndef _AIOT_HTTP_API_H_ #define _AIOT_HTTP_API_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" /** * @brief 服务器返回的...
YifuLiu/AliOS-Things
components/linksdk/core/aiot_http_api.h
C
apache-2.0
14,157
/** * @file aiot_mqtt_api.c * @brief MQTT模块实现, 其中包含了连接到物联网平台和收发数据的API接口 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #include "core_mqtt.h" static int32_t _core_mqtt_sysdep_return(int32_t sysdep_code, int32_t core_code) { if (sysdep_code >= (STATE_PORT_BASE -...
YifuLiu/AliOS-Things
components/linksdk/core/aiot_mqtt_api.c
C
apache-2.0
141,397
/** * @file aiot_mqtt_api.h * @brief MQTT模块头文件, 提供用MQTT协议连接阿里云物联网平台的能力 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * * @details * * MQTT模块用于建立与阿里云物联网平台的连接, API使用流程如下: * * 1. 调用 @ref aiot_mqtt_init 初始化MQTT会话, 获取会话句柄 * * 2. 调用 @ref aiot_mqtt_setopt 配置MQTT会话的参数, 常用配...
YifuLiu/AliOS-Things
components/linksdk/core/aiot_mqtt_api.h
C
apache-2.0
34,365
/** * @file aiot_state_api.c * @brief 状态码模块实现 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #include "core_stdinc.h" #include "aiot_state_api.h" aiot_state_logcb_t g_logcb_handler = NULL; int32_t aiot_state_set_logcb(aiot_state_logcb_t handler) { g_logcb_hand...
YifuLiu/AliOS-Things
components/linksdk/core/aiot_state_api.c
C
apache-2.0
366
/** * @file aiot_state_api.h * @brief SDK Core状态码头文件, 所有Core中的api返回值均在此列出 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #ifndef _AIOT_STATE_API_H_ #define _AIOT_STATE_API_H_ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> /** * @brief SDK的日志信息输...
YifuLiu/AliOS-Things
components/linksdk/core/aiot_state_api.h
C
apache-2.0
21,210
/** * @file aiot_sysdep_api.h * @brief SDK Core系统依赖头文件, 所有Core中的系统依赖均在此文件中列出 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #ifndef _AIOT_SYSDEP_API_H_ #define _AIOT_SYSDEP_API_H_ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> typedef enum { ...
YifuLiu/AliOS-Things
components/linksdk/core/aiot_sysdep_api.h
C
apache-2.0
4,908
#ifndef _CORE_STDINC_H_ #define _CORE_STDINC_H_ #if defined(__cplusplus) extern "C" { #endif #include <stdint.h> #include <string.h> #if defined(__cplusplus) } #endif #endif
YifuLiu/AliOS-Things
components/linksdk/core/sysdep/core_stdinc.h
C
apache-2.0
179
#include "core_sysdep.h" static aiot_sysdep_portfile_t *g_sysdep_portfile = NULL; void aiot_sysdep_set_portfile(aiot_sysdep_portfile_t *portfile) { g_sysdep_portfile = portfile; } aiot_sysdep_portfile_t * aiot_sysdep_get_portfile(void) { if (g_sysdep_portfile == NULL || g_sysdep_portfile->core_sysdep...
YifuLiu/AliOS-Things
components/linksdk/core/sysdep/core_sysdep.c
C
apache-2.0
1,255
#ifndef _CORE_SYSDEP_H_ #define _CORE_SYSDEP_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "aiot_sysdep_api.h" #if defined(__cplusplus) } #endif #endif
YifuLiu/AliOS-Things
components/linksdk/core/sysdep/core_sysdep.h
C
apache-2.0
193
#include "core_auth.h" int32_t core_auth_tls_psk(aiot_sysdep_portfile_t *sysdep, char **psk_id, char psk[65], char *product_key, char *device_name, char *device_secret, char *module_name) { int32_t res = STATE_SUCCESS; char *tmp_psk_id = NULL, *auth_type = "devicename", *sign_method = "hmacsha256"; char *p...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_auth.c
C
apache-2.0
4,996
#ifndef _CORE_AUTH_H_ #define _CORE_AUTH_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_string.h" #include "core_sha256.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #define CORE_AUTH_SDK_VERSION "sdk-c-4.0.0" #define CORE_AUTH_TIMESTAMP "2524608000000" int32...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_auth.h
C
apache-2.0
1,199
#include "core_diag.h" static void _core_diag_default_callback(void *diag_handle, uint64_t timestamp, int32_t code, uint8_t *data, uint32_t data_len); static void *g_diag_handle = NULL; static core_diag_callback g_diag_cb = _core_diag_default_callback; static void _core_diag_default_callback(void *diag_handle, uint6...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_diag.c
C
apache-2.0
824
#ifndef _CORE_DIAG_H_ #define _CORE_DIAG_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_log.h" typedef void (*core_diag_callback)(void * diag_handle, uint64_t timestamp, int32_t code, uint8_t *data, uint32_t data_len); void core_diag_set_cb(void *diag_handle, core_diag_callb...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_diag.h
C
apache-2.0
468
#include "core_global.h" typedef struct { void *mutex; uint8_t is_inited; uint32_t used_count; int32_t alink_id; char mqtt_backup_ip[16]; } g_core_global_t; g_core_global_t g_core_global = {NULL, 0, 0, 0, {0}}; int32_t core_global_init(aiot_sysdep_portfile_t *sysdep) { if (g_core_global.is_in...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_global.c
C
apache-2.0
2,094
#ifndef _CORE_GLOBAL_H_ #define _CORE_GLOBAL_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #define CORE_GLOBAL_MODULE_NAME "global" int32_t core_global_init(aiot_sysdep_portfile_t *sysdep); int32_t core_global_alink_id_next(aiot_sys...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_global.h
C
apache-2.0
638
/** * @file aiot_http_api.c * @brief HTTP模块实现, 其中包含了向物联网平台认证和上报数据的API接口 * @date 2019-12-27 * * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited * */ #include "core_http.h" static void _core_http_exec_inc(core_http_handle_t *http_handle) { http_handle->sysdep->core_sysdep_mutex_lock(http_han...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_http.c
C
apache-2.0
22,895
#ifndef _CORE_HTTP_H_ #define _CORE_HTTP_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #include "core_string.h" #include "core_log.h" #include "core_auth.h" #include "aiot_http_api.h" typedef enum { CORE_HTTP_SM_READ_HEADER, ...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_http.h
C
apache-2.0
7,352
#ifndef _CORE_LIST_H_ #define _CORE_LIST_H_ #if defined(__cplusplus) extern "C" { #endif #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) || defined(__GNUC__)) && \ !defined(inline) && !defined(__cplusplus) #define inline __inline #endif struct core_list_head { struct core_list_head *prev; struct ...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_list.h
C
apache-2.0
5,550
#include "core_log.h" extern aiot_state_logcb_t g_logcb_handler; static core_log_t g_core_log = { .time_start = 0, .time_interval = 0, .timestamp = 0, .log_stamp = 1, .log_date = 0}; static void _core_log_append_code(int32_t code, char *buffer) { uint8_t code_hex[4] = {0}; char code_str[9] = {0}; code_h...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_log.c
C
apache-2.0
9,556
#ifndef _CORE_LOG_H_ #define _CORE_LOG_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_string.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #define CORE_LOG_MODULE_NAME "LOG" #define CORE_LOG_MAXLEN (160) typedef struct { uint64_t time_start; uint64_t ti...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_log.h
C
apache-2.0
1,278
#ifndef _CORE_MQTT_H_ #define _CORE_MQTT_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "core_list.h" #include "core_string.h" #include "core_log.h" #include "core_auth.h" #include "core_global.h" #include "core_diag.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #inclu...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_mqtt.h
C
apache-2.0
14,733
#include "core_sha256.h" #define MINI_SHA256_SMALLER #define SHA256_KEY_IOPAD_SIZE (64) #define SHA256_DIGEST_SIZE (32) /* * 32-bit integer manipulation macros (big endian) */ #ifndef GET_UINT32_BE #define GET_UINT32_BE(n,b,i) \ do { ...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_sha256.c
C
apache-2.0
10,019
#ifndef _CORE_SHA256_H_ #define _CORE_SHA256_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #define CORE_SHA256_DIGEST_LENGTH (32) #define CORE_SHA256_BLOCK_LENGTH (64) #define CORE_SHA256_SHORT_BLOCK_LENGTH (CORE_SHA256_BLOCK_LENGTH - 8) #define CORE_SHA256_DIG...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_sha256.h
C
apache-2.0
2,227
#include "core_string.h" int32_t core_str2uint(char *input, uint8_t input_len, uint32_t *output) { uint8_t index = 0; uint32_t temp = 0; for (index = 0; index < input_len; index++) { if (input[index] < '0' || input[index] > '9') { return STATE_USER_INPUT_OUT_RANGE; } te...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_string.c
C
apache-2.0
9,085
#ifndef _CORE_STRING_H_ #define _CORE_STRING_H_ #if defined(__cplusplus) extern "C" { #endif #include "core_stdinc.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" typedef struct { uint32_t year; uint32_t mon; uint32_t day; uint32_t hour; uint32_t min; uint32_t sec; uint32_t ms...
YifuLiu/AliOS-Things
components/linksdk/core/utils/core_string.h
C
apache-2.0
1,495
#include "dm_export.h" #include "aiot_state_api.h" #include "aiot_sysdep_api.h" #include "aiot_mqtt_api.h" #include "aiot_dm_api.h" extern const char *ali_ca_cert; SYMBOL_EXPORT(ali_ca_cert); extern aiot_sysdep_portfile_t g_aiot_sysdep_portfile; SYMBOL_EXPORT(g_aiot_sysdep_portfile); SYMBOL_EXPORT(aiot_dm_send); SYMBO...
YifuLiu/AliOS-Things
components/linksdk/export.c
C
apache-2.0
649
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stddef.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/time.h> #include <sys/types.h> #include <aos/kernel.h> #include <sys/socket.h> #include <netdb.h> #include <errno.h> #include "aiot_state_api.h" #include "aiot_sysdep_...
YifuLiu/AliOS-Things
components/linksdk/portfiles/aiot_port/aos_port.c
C
apache-2.0
45,276
if (ESP_PLATFORM) idf_component_register( SRCS "axp192.c" INCLUDE_DIRS "." ) add_definitions("-DAXP192_INCLUDE_SDKCONFIG_H") endif()
YifuLiu/AliOS-Things
components/little_ui/driver/axp192/CMakeLists.txt
CMake
apache-2.0
161
/* MIT License Copyright (c) 2019-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
YifuLiu/AliOS-Things
components/little_ui/driver/axp192/axp192.c
C
apache-2.0
14,282
/* MIT License Copyright (c) 2019-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
YifuLiu/AliOS-Things
components/little_ui/driver/axp192/axp192.h
C
apache-2.0
8,174
/* MIT License Copyright (c) 2019-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
YifuLiu/AliOS-Things
components/little_ui/driver/axp192/axp192_config.h
C
apache-2.0
3,615
COMPONENT_SRCDIRS:=./ COMPONENT_ADD_INCLUDEDIRS:=./ CFLAGS += -DAXP192_INCLUDE_SDKCONFIG_H
YifuLiu/AliOS-Things
components/little_ui/driver/axp192/component.mk
Makefile
apache-2.0
91
set(SOURCES "i2c_manager/i2c_manager.c") set(INCLUDES "i2c_manager") if (CONFIG_I2C_MANAGER_I2CDEV) list(APPEND SOURCES "i2cdev/i2cdev.c") list(APPEND INCLUDES "i2cdev") endif() idf_component_register( SRCS ${SOURCES} INCLUDE_DIRS ${INCLUDES} )
YifuLiu/AliOS-Things
components/little_ui/driver/i2c_manager/CMakeLists.txt
CMake
apache-2.0
263
COMPONENT_SRCDIRS := i2c_manager COMPONENT_ADD_INCLUDEDIRS := i2c_manager ifdef CONFIG_I2C_MANAGER_I2CDEV COMPONENT_ADD_INCLUDEDIRS += i2cdev COMPONENT_SRCDIRS += i2cdev endif
YifuLiu/AliOS-Things
components/little_ui/driver/i2c_manager/component.mk
Makefile
apache-2.0
180
/* SPDX-License-Identifier: MIT MIT License Copyright (c) 2021 Rop Gonggrijp. Based on esp_i2c_helper by Mika Tuupola. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inclu...
YifuLiu/AliOS-Things
components/little_ui/driver/i2c_manager/i2c_manager/i2c_manager.c
C
apache-2.0
10,692
#ifndef _I2C_MANAGER_H #define _I2C_MANAGER_H #ifdef __cplusplus extern "C" { #endif /* If you copy the i2c_manager files to your own component instead of depending on i2c_manager, you MUST uncomment the define below and put in some short string that identifies your component (such as 'xyz'). This w...
YifuLiu/AliOS-Things
components/little_ui/driver/i2c_manager/i2c_manager/i2c_manager.h
C
apache-2.0
1,918
/* SPDX-License-Identifier: MIT MIT License Copyright (c) 2021 Rop Gonggrijp. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
YifuLiu/AliOS-Things
components/little_ui/driver/i2c_manager/i2cdev/i2cdev.c
C
apache-2.0
3,403
/* SPDX-License-Identifier: MIT MIT License Copyright (c) 2021 Rop Gonggrijp. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
YifuLiu/AliOS-Things
components/little_ui/driver/i2c_manager/i2cdev/i2cdev.h
C
apache-2.0
2,243
if(ESP_PLATFORM) file(GLOB SOURCES *.c) set(LVGL_INCLUDE_DIRS . lvgl_tft) list(APPEND SOURCES "lvgl_tft/disp_driver.c") list(APPEND SOURCES "lvgl_tft/esp_lcd_backlight.c") # Include only the source file of the selected # display controller. if(CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9341) list(APPEND SOURCES "lvgl_tf...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/CMakeLists.txt
CMake
apache-2.0
3,579
# LVGL ESP32 drivers # Define sources and include dirs COMPONENT_SRCDIRS := . lvgl_tft lvgl_touch lvgl_i2c COMPONENT_ADD_INCLUDEDIRS := . # LVGL is supposed to be used as a ESP-IDF component # -> lvlg is already in the include path # -> we use simple include CFLAGS += -DLV_LVGL_H_INCLUDE_SIMPLE # TFT display drivers...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/component.mk
Makefile
apache-2.0
2,986
/** * @file lvgl_helpers.c * */ /********************* * INCLUDES *********************/ #include "sdkconfig.h" #include "lvgl_helpers.h" #include "esp_log.h" #include "lvgl_tft/disp_spi.h" #include "lvgl_touch/tp_spi.h" #include "lvgl_spi_conf.h" #include "lvgl_i2c/i2c_manager.h" #ifdef LV_LVGL_H_INCLUD...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_helpers.c
C
apache-2.0
5,157
/** * @file lvgl_helpers.h */ #ifndef LVGL_HELPERS_H #define LVGL_HELPERS_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include <stdbool.h> #include "lvgl_spi_conf.h" #include "lvgl_tft/disp_driver.h" #include "lvgl_tft/esp_lcd_backlight.h" #include "lvg...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_helpers.h
C
apache-2.0
3,763
/* SPDX-License-Identifier: MIT MIT License Copyright (c) 2021 Rop Gonggrijp. Based on esp_i2c_helper by Mika Tuupola. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inclu...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_i2c/i2c_manager.c
C
apache-2.0
10,692
#ifndef _I2C_MANAGER_H #define _I2C_MANAGER_H #ifdef __cplusplus extern "C" { #endif /* If you copy the i2c_manager files to your own component instead of depending on i2c_manager, you MUST uncomment the define below and put in some short string that identifies your component (such as 'xyz'). This w...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_i2c/i2c_manager.h
C
apache-2.0
1,916
/** * @file lvgl_spi_conf.h * */ #ifndef LVGL_SPI_CONF_H #define LVGL_SPI_CONF_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ /********************* * DEFINES *********************/ // DISPLAY PINS #define DISP_SPI_MOSI CONFIG_LV_DISP_SPI_MOSI #if ...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_spi_conf.h
C
apache-2.0
6,006
/* @file EVE.h @brief Contains FT80x/FT81x/BT81x API definitions @version 4.1 LvGL edition @date 2020-04-15 @author Rudolph Riedel, David Jade @section LICENSE MIT License Copyright (c) 2016-2020 Rudolph Riedel and David Jade Permission is hereby granted, free of charge, to any person obtaining a copy of t...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_tft/EVE.h
C
apache-2.0
31,870
/* @file EVE_commands.c @brief contains FT8xx / BT8xx functions @version 4.0 @date 2020-04-13 @author Rudolph Riedel, David Jade @section info This file needs to be renamed to EVE_command.cpp for use with Arduino. At least für ATSAM I had the best result with -O2. The c-standard is C99. @section LICENSE M...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_tft/EVE_commands.c
C
apache-2.0
63,596
/* @file EVE_commands.h @brief contains FT8xx / BT8xx function prototypes @version 4.1 LvGL edition @date 2020-04-13 @author Rudolph Riedel, David Jade @section LICENSE MIT License Copyright (c) 2016-2020 Rudolph Riedel and David Jade Permission is hereby granted, free of charge, to any person obtaining a ...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_tft/EVE_commands.h
C
apache-2.0
8,716
/* @file EVE_config.h @brief configuration information for some TFTs @version 4.0 @date 2020-02-16 @author Rudolph Riedel, David Jade @section LICENSE MIT License Copyright (c) 2016-2020 Rudolph Riedel amd David Jade Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_tft/EVE_config.h
C
apache-2.0
30,006
#include <stdio.h> #include "driver/gpio.h" #include "FT81x.h" #include "EVE.h" #include "EVE_commands.h" /* some pre-definded colors */ #define RED 0xff0000UL #define ORANGE 0xffa500UL #define GREEN 0x00ff00UL #define BLUE 0x0000ffUL #define BLUE_1 0x5dade2L #define YELLOW 0xffff00UL #define PINK 0xff00ffUL #def...
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_tft/FT81x.c
C
apache-2.0
10,960
#ifndef FT81X_H_ #define FT81X_H_ #include <stdint.h> #ifdef LV_LVGL_H_INCLUDE_SIMPLE #include "lvgl.h" #else #include "lvgl/lvgl.h" #endif #include "../lvgl_helpers.h" void FT81x_init(void); void FT81x_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map); #endif /* FT81X_H_ */
YifuLiu/AliOS-Things
components/little_ui/driver/lvgl_esp32_drivers/lvgl_tft/FT81x.h
C
apache-2.0
306