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) 2010-2019 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/ReshapeFunctions/arm_reshape_s8.c | C | apache-2.0 | 1,369 |
/*
* Copyright (C) 2010-2021 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SVDFunctions/arm_svdf_s8.c | C | apache-2.0 | 8,760 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q15.c | C | apache-2.0 | 2,975 |
/*
* Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q7.c | C | apache-2.0 | 2,652 |
/*
* Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_s8.c | C | apache-2.0 | 8,284 |
/*
* Copyright (C) 2010-2020 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_u8.c | C | apache-2.0 | 2,900 |
/*
* Copyright (C) 2010-2019 Arm Limited or its affiliates. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_with_batch_q7.c | C | apache-2.0 | 2,039 |
/* Copyright 2019 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/minimal_logging.h | C++ | apache-2.0 | 3,008 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/model.h | C | apache-2.0 | 1,014 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/model_builder.h | C++ | apache-2.0 | 10,086 |
/* Copyright 2018 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/mutable_op_resolver.h | C++ | apache-2.0 | 5,059 |
/* Copyright 2018 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/op_resolver.h | C | apache-2.0 | 939 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/optional_debug_tools.h | C++ | apache-2.0 | 1,130 |
/* Copyright 2019 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/portable_type_to_tflitetype.h | C++ | apache-2.0 | 3,013 |
/* Copyright 2020 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/schema/schema_conversion_utils.h | C++ | apache-2.0 | 1,669 |
/* Copyright 2018 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/schema/schema_generated.h | C++ | apache-2.0 | 746,558 |
/* Copyright 2020 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/schema/schema_utils.cc | C++ | apache-2.0 | 2,605 |
/* Copyright 2020 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/schema/schema_utils.h | C++ | apache-2.0 | 1,321 |
/* Copyright 2020 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/shared_library.h | C++ | apache-2.0 | 2,322 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/simple_memory_arena.h | C++ | apache-2.0 | 4,441 |
/* Copyright 2020 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/stateful_error_reporter.h | C++ | apache-2.0 | 1,226 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/stderr_reporter.h | C++ | apache-2.0 | 1,226 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/string_type.h | C++ | apache-2.0 | 932 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/string_util.h | C++ | apache-2.0 | 4,203 |
/* Copyright 2020 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/tflite_with_xnnpack_optional.h | C++ | apache-2.0 | 1,045 |
/* Copyright 2019 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/type_to_tflitetype.h | C++ | apache-2.0 | 1,516 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/util.h | C++ | apache-2.0 | 4,136 |
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/tflite-micro/tensorflow/lite/version.h | C | apache-2.0 | 1,228 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "ulog/ulog.h"
#include "aos/kernel.h"
#include "aiagent_engine.h"
#include "engine/ucloud_ai_engine.h"
#include "aiagent_service.h"
#include "ucloud_ai_common.h"
#include "aiconfig.h"
#define TAG "UCLOUD_AI... | YifuLiu/AliOS-Things | components/ai_agent/src/engine/ucloud_ai_engine.c | C | apache-2.0 | 4,429 |
cmake_minimum_required(VERSION 3.5)
project(ampsim C ASM CXX)
set(library amp)
set(EXE ampsim)
add_compile_options(-m32)
add_compile_options(-g)
aux_source_directory(../engine/quickjs_engine/addons/hardware/gpio DIR_ADDON_GPIO_SRCS)
aux_source_directory(../engine/quickjs_engine/addons/hardware/ir DIR_ADDON_IR_SRCS)
a... | YifuLiu/AliOS-Things | components/amp/ampsim/CMakeLists.txt | CMake | apache-2.0 | 12,514 |
#include <stdio.h>
#include <stdint.h>
unsigned int g_ntp_time = 0;
unsigned int g_up_time = 0;
int app_management_center_init()
{
return 0;
}
int amp_boot_main()
{
return 0;
}
int amp_recovery_init()
{
return 0;
}
void amp_recovery_entry()
{
}
void amp_app_version_set()
{
}
| YifuLiu/AliOS-Things | components/amp/ampsim/amp_stub.c | C | apache-2.0 | 294 |
#include <stdio.h>
#include <stdlib.h>
extern int amp_main(void);
int main(int argc, char **argv)
{
amp_main();
return 0;
} | YifuLiu/AliOS-Things | components/amp/ampsim/ampsim.c | C | apache-2.0 | 132 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include "amp_board_config.h"
#define AMP_FS_ROOT_DIR "/data/jsamp"
#define JSE_CORE_ADDON_INITJS
/* enable high-level jsapi */
#define JSE_HIGHLEVEL_JSAPI
/* js engine low memory enabled */
// #define AMP_LOWMEMORY_ENABLE
/* manager channel */
#defi... | YifuLiu/AliOS-Things | components/amp/aos_config/amp_config.h | C | apache-2.0 | 3,581 |
/*!
* @file amp_at.h
*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef _AMP_AT_H_
#define _AMP_AT_H_
#include "at.h"
int amp_at_init(int at_uart_port, uint32_t baud_rate, char *send_delimiter);
int amp_at_register_callback(const char *prefix, at_recv_cb cb);
int amp_at_read(char *outbuf, int r... | YifuLiu/AliOS-Things | components/amp/components/at/include/amp_at.h | C | apache-2.0 | 487 |
/*!
* @file at.h
*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef _AT_PARSER_H_
#define _AT_PARSER_H_
#include <stdbool.h>
#include <stdint.h>
/** @addtogroup aos_at at
* AT parser, which is used to ease the operation of AT modules.
*
* @{
*/
/**
* AT dev type
*/
typedef enum {
A... | YifuLiu/AliOS-Things | components/amp/components/at/include/at.h | C | apache-2.0 | 6,437 |
#include "stdlib.h"
#include "stdint.h"
#include "stdbool.h"
#include "stdarg.h"
#include "at.h"
#include "at_internal.h"
#include "atcmd_config_module.h"
#include "aos_hal_uart.h"
#include "aos_network.h"
static uart_dev_t uart_dev;
static int at_dev_fd = -1;
#define AT_CMD_RSP_LEN 512
#define AT_RECV_TIMEOUT_MS ... | YifuLiu/AliOS-Things | components/amp/components/at/src/amp_at.c | C | apache-2.0 | 3,749 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "at_internal.h"
#define TAG "at"
#define atpsr_debug(format, ...) LOGD(TAG, format, ##__VA_ARGS__)
#define atpsr_err(format, ...) LOGE(TAG, format, ##__VA_ARGS__)
stati... | YifuLiu/AliOS-Things | components/amp/components/at/src/at.c | C | apache-2.0 | 36,736 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#ifndef _ATPARSER_INTERNAL_H_
#define _ATPARSER_INTERNAL_H_
#include "at.h"
#include "at_opts.h"
#include <stdarg.h>
#include <stdio.h>
#include "ulog.h"
#define AT_LOGD(fmt, ...) LOGD("at",fmt,##__VA_ARGS__)
#define AT_LOGI(fmt, ...) LOGI("at",fmt,##_... | YifuLiu/AliOS-Things | components/amp/components/at/src/at_internal.h | C | apache-2.0 | 3,382 |
#ifndef _ATPARSER_OPTS_H_
#define _ATPARSER_OPTS_H_
#ifdef __cplusplus
extern "C" {
#endif
#define ATPSR_OPT_ENABLED 1
#define ATPSR_OPT_DISABLED 0
#ifndef ATPSR_SINGLE_TASK
#define ATPSR_SINGLE_TASK ATPSR_OPT_DISABLED
#endif
#ifndef ATPSR_DEV_MAX_NUM
#define ATP... | YifuLiu/AliOS-Things | components/amp/components/at/src/at_opts.h | C | apache-2.0 | 1,382 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef _ATCMD_CONFIG_MODULE
#define _ATCMD_CONFIG_MODULE
/**
* AT related platform-dependent things are here, including:
* 1. AT command;
* 2. AT response code;
* 3. AT delimiter;
* 4. AT event;
* 5. Uart port used by AT;
* 6. ...
*/... | YifuLiu/AliOS-Things | components/amp/components/at/src/atcmd_config_module.h | C | apache-2.0 | 760 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "at_internal.h"
#include "aos_hal_uart.h"
/*-----------------------------UART operates------------------------------------------*/
static int at_init_uart(void *dev)
{
int ret = 0;
ret = aos_hal_uart_init((uart_dev_t *)dev);
return re... | YifuLiu/AliOS-Things | components/amp/components/at/src/hal_at_dev.c | C | apache-2.0 | 1,228 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include <stdlib.h>
#include "aos_system.h"
#include "at_opts.h"
void *atpsr_malloc(uint32_t size)
{
return aos_malloc(size);
}
void atpsr_free(void *ptr)
{
aos_free(ptr);
}
#if ATPSR_SINGLE_TASK
void *atpsr_mutex_new(void)
... | YifuLiu/AliOS-Things | components/amp/components/at/src/hal_at_os.c | C | apache-2.0 | 1,977 |
TARGET = libjsengine.a
MODULE = duktape_engine
MOD_SOURCES += \
addons/hardware/adc/module_adc.c \
addons/hardware/dac/module_dac.c \
addons/hardware/can/module_can.c \
addons/hardware/gpio/module_gpio.c \
addons/hardware/i2c/module_i2c.c \
addons/hardware/ir/module_ir.c \
addons/hardware/lcd/module_lcd.... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/Makefile | Makefile | apache-2.0 | 3,551 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "stdint.h"
#include "aiot_mqtt_api.h"
/* device active info report */
#define APPLICATION "soundbox" // product of application
#define MODULE_NAME aos_get_platform_type() // module type
/* device info report format */
#defi... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/aiot/module_aiot.h | C | apache-2.0 | 5,566 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "aos_network.h"
#include "aos/kv.h"
#include "aiot_state_api.h"
#include "aiot_sysdep_api.h"
#include "aiot_mqtt_api.h"
#include "aiot_devinfo_api.h"
#include "module_aiot... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/aiot/module_aiot_activeinfo.c | C | apache-2.0 | 3,806 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "aos/kv.h"
#include "aiot_sysdep_api.h"
#include "aiot_mqtt_api.h"
#include "aiot_dm_api.h"
#include "aiot_state_api.h"
#include "be_inl.h"
#include ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/aiot/module_aiot_device.c | C | apache-2.0 | 30,902 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "aiot_state_api.h"
#include "aiot_sysdep_api.h"
#include "aiot_dynreg_api.h"
#include "aiot_mqtt_api.h"
#include "module_aiot.h"
#include "be_inl.h"
#define MOD_STR "AIOT... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/aiot/module_aiot_dynreg.c | C | apache-2.0 | 6,479 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "aos/kv.h"
#include "aiot_sysdep_api.h"
#include "aiot_mqtt_api.h"
#include "aiot_dm_api.h"
#include "aiot_subdev_api.h"
#include "aiot_state_api.h"
... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/aiot/module_aiot_gateway.c | C | apache-2.0 | 38,343 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "aos/kv.h"
#include "aiot_state_api.h"
#include "aiot_sysdep_api.h"
#include "aiot_mqtt_api.h"
#include "aiot_dm_api.h"
#include "aiot_subdev_api.h"
... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/aiot/module_aiot_mqtt.c | C | apache-2.0 | 13,258 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "aos_fs.h"
#include "board_mgr.h"
#include "be_inl.h"
#include "uvoice_types.h"
#include "uvoice_event.h"
#in... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/audio/module_audioplayer.c | C | apache-2.0 | 18,774 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "aos_system.h"
#include "amp_defines.h"
#include "dev_model_api.h"
#include "be_inl.h"
#include "fibo_opencpu.h"
#define MOD_STR "audioplayer"
#define PLAY_LIST_FILE_COUNT_MAX 32
#define PLAY_L... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/audio/module_audioplayer_fibo.c | C | apache-2.0 | 7,736 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "be_inl.h"
#include "aos_pcm.h"
#include "aos_tts.h"
#define MOD_STR "TTS"
static int tts_js_cb_ref = 0;
static void nati... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/audio/module_tts.c | C | apache-2.0 | 5,034 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "be_inl.h"
#define MOD_STR "BLECFGNET"
static duk_ret_t native_blecfgnet_start(duk_context *ctx)
{
int ret = -1;
ret = Bl... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/bleconfig_wifi/module_blecfgnet.c | C | apache-2.0 | 1,387 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "amp_hal_keypad.h"
#include "aos_system.h"
#include "amp_task.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "Keypad"
static int keypad_js_cb_ref;
typedef st... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/keypad/module_keypad.c | C | apache-2.0 | 2,347 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "be_inl.h"
#include "amp_location.h"
#include "aos_network.h"
#define MOD_STR "LOCATION"
#define WIFI_SCAN_INFO_LEN 2048
... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/location/module_location.c | C | apache-2.0 | 5,226 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "be_inl.h"
#include "ota_agent.h"
#include "ota_import.h"
#include "module_aiot.h"
#include "app_upgrade.h"
#define MOD_STR ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/ota/module_appota.c | C | apache-2.0 | 16,126 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "be_inl.h"
#include "alipay_box_sdk.h"
#include "alipay_box_sdk_api.h"
#include "alipay_xp_sdk_api.h"
#includ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/paybox/module_paybox.c | C | apache-2.0 | 14,904 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "be_inl.h"
#include "smartcard.h"
#define MOD_STR "Smartcard"
static duk_ret_t native_smartcard_ini... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/smartcard/module_smartcard.c | C | apache-2.0 | 2,003 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_config.h"
#include "amp_defines.h"
#include "und.h"
#include "be_inl.h"
#define MOD_STR "UND"
/*****************************************************************************
* Function: native_fs_issupport
* Description: js native addon... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/advanced/und/module_und.c | C | apache-2.0 | 2,668 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
/* #define LOG_NDEBUG 0 */
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_adc.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "ADC"
static duk_ret_t native_adc_open(duk_context *ctx)
{
int8_t re... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/adc/module_adc.c | C | apache-2.0 | 2,895 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "aos_hal_can.h"
#include "board_mgr.h"
#include "amp_task.h"
#include "be_inl.h"
#define MOD_STR "CAN"
#define CAN_TIMEOUT (0xFFFFFF)
#define MAX_CAN_R... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/can/module_can.c | C | apache-2.0 | 9,289 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_dac.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "DAC"
static duk_ret_t native_dac_open(duk_context *ctx)
{
int8_t ret = -1;
item_handle_t d... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/dac/module_dac.c | C | apache-2.0 | 3,860 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_gpio.h"
#include "aos_system.h"
#include "amp_task.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "GPIO"
#define GPIO_IRQ_RISING_EDGE "rising"
#define... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/gpio/module_gpio.c | C | apache-2.0 | 8,409 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_i2c.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "I2C"
#define I2C_TIMEOUT (0xFFFFFF)
static duk_ret_t native_i2c_open(duk_context *ctx)
{
int8... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/i2c/module_i2c.c | C | apache-2.0 | 8,478 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_gpio.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "IR"
static void ir_learn_mode(uint32_t scl_pin, uint32_t sda_pin)
{
gpio_i2c_reset(scl_pin, s... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/ir/module_ir.c | C | apache-2.0 | 14,028 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#ifndef _MODULE__FONT_H
#define _MODULE__FONT_H
#ifdef __cplusplus
extern "C" {
#endif
static const unsigned char g_asc2_1206[95][12] = {
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00}, /*" ",0*/
{0x00, 0x00, 0x00... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/lcd/fontlib.h | C | apache-2.0 | 100,326 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "board_mgr.h"
#include "be_inl.h"
#include "fontlib.h"
#define MOD_STR "LCD"
typedef struct lcd_handle {
uint32_t width;
uint32_t height;
} lcd_handle_t;
static lcd_... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/lcd/module_lcd.c | C | apache-2.0 | 7,375 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_gpio.h"
#include "aos_system.h"
#include "amp_task.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "ONEWIRE"
/*
使用方法:yaml文件中添加JSE_HW_ADDON_ONEWIRE、JSE_... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/onewire/module_onewire.c | C | apache-2.0 | 12,993 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
/* #define LOG_NDEBUG 0 */
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_pwm.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "PWM"
typedef struct sim_info {
int freq;
int duty;
} pwm_module... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/pwm/module_pwm.c | C | apache-2.0 | 4,719 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#define LOG_NDEBUG 0
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_rtc.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "RTC"
#define RTC_YEAR "year"
#define RTC_MONTH "month"
#define RTC_DAY "day"
... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/rtc/module_rtc.c | C | apache-2.0 | 3,775 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_spi.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "SPI"
#define SPI_TIMEOUT (0xFFFFFF)
static duk_ret_t native_spi_open(duk_context *ctx)
{
int8_... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/spi/module_spi.c | C | apache-2.0 | 7,420 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "board_mgr.h"
#include "be_inl.h"
#include "amp_task.h"
#include "aos_hal_timer.h"
#include "amp_list.h"
#define MOD_STR "HW_TIMER"
... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/timer/module_timer.c | C | apache-2.0 | 8,891 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
/* #define LOG_NDEBUG 0 */
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "aos_hal_uart.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "MODULE_UART"
#define UART_BUFF_SIZE 1024
#define ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/uart/module_uart.c | C | apache-2.0 | 10,225 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
/* #define LOG_NDEBUG 0 */
#include <stdint.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_hal_wdg.h"
#include "board_mgr.h"
#include "be_inl.h"
#define MOD_STR "WDG"
static wdg_dev_t wdg_dev;
static duk_ret_t native_wdg_start(duk_co... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/hardware/wdg/module_wdg.c | C | apache-2.0 | 1,528 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef __LIBJS_H
#define __LIBJS_H
#include <stdio.h>
#include <string.h>
#ifdef JSE_HIGHLEVEL_JSAPI
typedef struct {
char *name;
char *content;
}libjs_entry_t;
extern libjs_entry_t LIBJS_ENTRIES[];
extern int libjs_num;
#endif /* JSE_HIGHLEVEL... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/libjs.h | C | apache-2.0 | 352 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "aos_network.h"
#include "be_inl.h"
#define MOD_STR "CELLULAR"
typedef struct {
int status;
int js_cb_ref;
} network_statu... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/cellular/module_cellular.c | C | apache-2.0 | 11,349 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "amp_platform.h"
#include "aos_system.h"
#include "aos_network.h"
#include "amp_defines.h"
#include "aos_network.h"
#include "aos_socket.h"
#i... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/http/module_http.c | C | apache-2.0 | 16,104 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "be_inl.h"
#include "module_mqtt.h"
#include "aiot_state_api.h"
#define MOD_STR "MQTT"
#define MQTT_TASK_YIELD_TIMEOUT 200
static char g_mqtt_close_... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/mqtt/module_mqtt.c | C | apache-2.0 | 10,125 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "stdint.h"
/**
* @brief subdev模块内部发生值得用户关注的状态变化时, 通知用户的事件类型
*/
typedef enum {
/**
* @brief 非法的应答报文
*/
MQTT_JSCALLBACK_INVALID_REF,
/**
* @brief 应答报文的id字段非法
*/
MQTT_JSCALLBACK_START_CLIENT_REF,
/**
*... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/mqtt/module_mqtt.h | C | apache-2.0 | 1,446 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "aos/kv.h"
#include "aiot_state_api.h"
#include "aiot_sysdep_api.h"
#include "aiot_mqtt_api.h"
#include "be_inl.h"
#include "module_mqtt.h"
#define ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/mqtt/module_mqtt_client.c | C | apache-2.0 | 9,954 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "aos_network.h"
#include "netmgr_wifi.h"
#include "amp_task.h"
#include "be_inl.h"
#include "aos/list.h"
#define... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/netmgr/module_netmgr.c | C | apache-2.0 | 16,138 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_config.h"
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "aos_tcp.h"
#include "be_inl.h"
#define MOD_STR "TCP"
#define MAX_TCP_RECV_LEN 256
#define MAX_TCP_RECV_TIMEOUT 200
typedef... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/tcp/module_tcp.c | C | apache-2.0 | 13,435 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_config.h"
#include "amp_platform.h"
#include "aos_system.h"
#include "amp_utils.h"
#include "amp_task.h"
#include "amp_defines.h"
#include "aos_udp.h"
#include "be_inl.h"
#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
#endif
#define MO... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/udp/module_udp.c | C | apache-2.0 | 14,595 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "aos_network.h"
#include "netmgr_wifi.h"
#include "amp_task.h"
#include "be_inl.h"
#define MOD_STR "WIFI"
#defin... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/network/wifi/module_wifi.c | C | apache-2.0 | 7,452 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "board_mgr.h"
#include "be_inl.h"
#include "amp_task.h"
#define MOD_STR "AT"
#define MAX_LINE_SIZE 1024
typedef st... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/at/module_at.c | C | apache-2.0 | 7,457 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "be_inl.h"
#include "aos_fs.h"
#include "board_mgr.h"
#define MOD_STR "BU... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/builtin/module_builtin.c | C | apache-2.0 | 4,112 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "amp_utils.h"
#include "be_inl.h"
#include "mbedtls/md5.h"
#define MOD_STR "CRYPTO"
#define DEBUG_HEX_DUMP(str, buff, len) hexdump(str, buff, len)
// #defi... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/crypto/module_crypto.c | C | apache-2.0 | 3,803 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_config.h"
#include "aos_fs.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "be_inl.h"
#define MOD_STR "FS"
static int check_fs_is_support()
{
int ret;
int fp;
const char *string = "test if fs mount ok";
char testfi... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/fs/module_fs.c | C | apache-2.0 | 8,748 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_config.h"
#include "aos/kv.h"
#include "amp_defines.h"
#include "be_inl.h"
#define MOD_STR "KV"
#define KV_BUFFER_MAX_LEN 256
/*****************************************************************************
* Function: native_fs_issuppo... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/kv/module_kv.c | C | apache-2.0 | 3,553 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "be_inl.h"
#define MOD_STR "LOG"
#define SCRIPT "JSLOG"
#define LOG_LEVEL_DEBUG "debug"
#define LOG_LEVEL_INFO "info"
#define LOG_LEVEL_WARN "warn"
#define LOG_LEV... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/log/module_log.c | C | apache-2.0 | 7,728 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "be_inl.h"
#define MOD_STR "Battery"
static duk_ret_t native_battery_conn_state_get(duk_context *ctx)
{
int ret = -1;
int sta... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/pm/module_battery.c | C | apache-2.0 | 1,863 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "aos_pm.h"
#include "be_inl.h"
#define MOD_STR "Charger"
static duk_ret_t native_charger_conn_state_get(duk_context *ctx)
{
i... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/pm/module_charger.c | C | apache-2.0 | 2,487 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "be_inl.h"
#define MOD_STR "PM"
enum {
PM_AUTOSLEEP_MODE_NEVER = 0,
PM_AUTOSLEEP_MODE_SLEEP,
PM_AUTOSLEEP_MODE_DEEP_SL... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/pm/module_pm.c | C | apache-2.0 | 4,570 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "aos_system.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "be_inl.h"
#include "amp_utils.h"
#define MOD_STR "SYSTEM"
extern const char *amp_jsapp_version_get(void);
s... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/system/module_system.c | C | apache-2.0 | 2,532 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "amp_task.h"
#include "board_mgr.h"
#include "be_inl.h"
#include "amp_task.h"
#include "amp_list.h"
#define MOD_STR "TIMER"
#define ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/systimer/module_systimer.c | C | apache-2.0 | 5,506 |
#include "model_bind.h"
#define MODEL_BUFF_LEN 256
#define MODEL_STR_HEAD "var model = require('model'); model.setData({"
#define MODEL_STR_DELIMITER ":"
#define MODEL_STR_TAIL "});"
static model_bind_proc_t g_model_bind_proc = {0};
vm_msg_type_e g_msg_type = msg_invalid;
int model_data_bind_init(MODE... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/ui/model_bind.c | C | apache-2.0 | 8,403 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "aos_network.h"
#include "amp_defines.h"
#include "aos_network.h"
#include "amp_task.h"
#include "be_inl.h"
#define M... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/ui/module_ui.c | C | apache-2.0 | 1,164 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "amp_config.h"
#include "aos_system.h"
#include "aos_network.h"
#include "amp_defines.h"
#include "aos_network.h"
#include "amp_task.h"
#include "be_inl.h"
#define M... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/utils/ui/module_vm.c | C | apache-2.0 | 630 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdint.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/ble.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
#includ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/wireless/bt_host/bt_gatts_adapter.c | C | apache-2.0 | 12,496 |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdint.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/ble.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
#includ... | YifuLiu/AliOS-Things | components/amp/engine/duktape_engine/addons/wireless/bt_host/bt_host_adapter.c | C | apache-2.0 | 7,664 |