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
#include <stdio.h> #include <stdlib.h> #include <string.h> #if MICROPY_PY_BLE #include "modble.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/stackctrl.h" #include "ulog/ulog.h" #define LOG_TAG "ble" STATIC mp_obj_t cb_ble_event[BLE_EVENT_MAX] = { 0 }; v...
YifuLiu/AliOS-Things
components/py_engine/modules/ble/modble.c
C
apache-2.0
8,477
#ifndef _PY_MODBLE_H_ #define _PY_MODBLE_H_ #include "aos/ble.h" enum ble_event { BLE_EVENT_NET_STATUS = 0, BLE_EVENT_CHARA_WRITTEN, BLE_EVENT_MAX }; typedef struct { char *dev_name; uint16_t conn_num_max; } amp_bt_host_adapter_init_t; typedef struct { int32_t type; char *adv_data; c...
YifuLiu/AliOS-Things
components/py_engine/modules/ble/modble.h
C
apache-2.0
1,377
/** * @file lv_conf.h * Configuration file for v8.1.0-release */ /* * Copy this file as `lv_conf.h` * 1. simply next to the `lvgl` folder * 2. or any other places and * - define `LV_CONF_INCLUDE_SIMPLE` * - add the path as include path */ /* clang-format off */ #if 1 /*Set it to "1" to enable content*/...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/lv_conf.h
C
apache-2.0
18,689
/* LVGL Example project * * Basic project to test LVGL on ESP32 based projects. * * This example code is in the Public Domain (or CC0 licensed, at your option.) * * Unless required by applicable law or agreed to in writing, this * software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS O...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/moddisplay.c
C
apache-2.0
8,221
/* * This file is part of the MicroPython ESP32 project, https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo * * The MIT License (MIT) * * Copyright (c) 2018 LoBo (https://github.com/loboris) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/modtft.c
C
apache-2.0
69,904
// Default font // ======================================================================== // This comes with no warranty, implied or otherwise // This data structure was designed to support Proportional fonts // fonts. Individual characters do not have to be multiples of 8 bits wide. // Any width is fine and does n...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/font/DefaultFont.c
C
apache-2.0
8,255
// ============================================================================ // Proportional font Header Format: // ------------------------------------------------ // Character Width (Used as a marker to indicate use this format. i.e.: = 0x00) // Character Height // First Character (Reserved. 0x00) // Number Of Cha...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/font/DejaVuSans18.c
C
apache-2.0
11,114
// ======================================================================== // This comes with no warranty, implied or otherwise // This data structure was designed to support Proportional fonts // fonts. Individual characters do not have to be multiples of 8 bits wide. // Any width is fine and does not need to be fi...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/font/DejaVuSans24.c
C
apache-2.0
15,937
/* * This file is part of the MicroPython ESP32 project, https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo * * The MIT License (MIT) * * Copyright (c) 2018 LoBo (https://github.com/loboris) * */ /* * This is the source file for the Proportional font * used in Display.TFT module on LoBo MicroPython * ...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/font/DejaVuSans40.c
C
apache-2.0
35,537
#ifndef __FONT__H__ #define __FONT__H__ // To incloud uint*_t head file #include "esp_system.h" typedef struct { // Data stored PER GLYPH uint32_t bitmapOffset; // Pointer into GFXfont->bitmap uint8_t width, height; // Bitmap dimensions in pixels uint8_t xAdvance; // Distance to advance cursor (x...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/font/font.h
C
apache-2.0
839
#ifndef _GFX_H__ #define _GFX_H__ #include "string.h" #include "py/obj.h" #include "py/mperrno.h" #include "py/runtime.h" #include "../tft/tftspi.h" #include "font/font.h" extern int unicode_printProportionalChar(uint32_t code, int x, int y); extern const GFXfont *gfx_font; extern int16_t GetUnicodeWidth(uint32_t cod...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/gfx.h
C
apache-2.0
411
/* * This file is part of the MicroPython ESP32 project, https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo * * The MIT License (MIT) * * Copyright (c) 2018 LoBo (https://github.com/loboris) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/stmpe610.h
C
apache-2.0
5,897
/* * This file is part of the MicroPython ESP32 project, https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo * * The MIT License (MIT) * * Copyright (c) 2018 LoBo (https://github.com/loboris) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tft.c
C
apache-2.0
122,870
/* * This file is part of the MicroPython ESP32 project, https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo * * The MIT License (MIT) * * Copyright (c) 2018 LoBo (https://github.com/loboris) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tft.h
C
apache-2.0
27,338
/* * This file is part of the MicroPython ESP32 project, https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo * * The MIT License (MIT) * * Copyright (c) 2018 LoBo (https://github.com/loboris) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tftspi.c
C
apache-2.0
29,470
/* * This file is part of the MicroPython ESP32 project, https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo * * The MIT License (MIT) * * Copyright (c) 2018 LoBo (https://github.com/loboris) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tftspi.h
C
apache-2.0
20,322
#include "tftspi_hal.h" #include "soc/spi_reg.h" #include "esp_log.h" #include "freertos/task.h" #include "stdatomic.h" #include "driver/gpio.h" #include "string.h" #include "stdatomic.h" // SPI bus configuration is used by generic SPI, Display and SDCard SPI #if CONFIG_SPIRAM_SPEED_80M static spi_bus_config_t HSPI_b...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tftspi_hal.c
C
apache-2.0
11,277
#ifndef _DRIVER_TFT_SPI_HAL_H_ #define _DRIVER_TFT_SPI_HAL_H_ #include "driver/spi_master.h" #include "freertos/queue.h" #include "hal/spi_hal.h" #include "driver/spi_common_internal.h" #include "hal/spi_hal.h" #include "hal/spi_ll.h" #include "freertos/semphr.h" typedef struct { spi_transaction_t *trans; c...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tftspi_hal.h
C
apache-2.0
3,228
/*----------------------------------------------------------------------------/ / TJpgDec - Tiny JPEG Decompressor R0.03 (C)ChaN, 2021 /-----------------------------------------------------------------------------/ / The TJpgDec is a generic JPEG decompressor module for tiny embedded systems. / Thi...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tjpgd.c
C
apache-2.0
43,093
/*----------------------------------------------------------------------------/ / TJpgDec - Tiny JPEG Decompressor R0.03 include file (C)ChaN, 2021 /----------------------------------------------------------------------------*/ #ifndef DEF_TJPGDEC #define DEF_TJPGDEC #ifdef __cplusplus extern "C" { #endif #in...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tjpgd.h
C
apache-2.0
3,264
/*----------------------------------------------*/ /* TJpgDec System Configurations R0.03 */ /*----------------------------------------------*/ #define JD_SZBUF 512 /* Specifies size of stream input buffer */ #define JD_FORMAT 0 /* Specifies output pixel format. / 0: RGB888 (24-bit/pix) / 1: RGB565 (16-b...
YifuLiu/AliOS-Things
components/py_engine/modules/display/esp32/tft/tjpgdcnf.h
C
apache-2.0
845
/** * @file lv_conf.h * Configuration file for v8.1.0-release */ /* * Copy this file as `lv_conf.h` * 1. simply next to the `lvgl` folder * 2. or any other places and * - define `LV_CONF_INCLUDE_SIMPLE` * - add the path as include path */ /* clang-format off */ #if 1 /*Set it to "1" to enable content*/...
YifuLiu/AliOS-Things
components/py_engine/modules/display/haas/lv_conf.h
C
apache-2.0
18,689
/* LVGL Example project * * Basic project to test LVGL on ESP32 based projects. * * This example code is in the Public Domain (or CC0 licensed, at your option.) * * Unless required by applicable law or agreed to in writing, this * software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS O...
YifuLiu/AliOS-Things
components/py_engine/modules/display/haas/moddisplay.c
C
apache-2.0
9,808
#ifndef __LVMP_DRV_COMMON_H #define __LVMP_DRV_COMMON_H #include "py/obj.h" #include "py/runtime.h" #include "py/binary.h" ////////////////////////////////////////////////////////////////////////////// // A read-only buffer that contains a C pointer // Used to communicate function pointers to lvgl Micropython binding...
YifuLiu/AliOS-Things
components/py_engine/modules/display/moddisplay.h
C
apache-2.0
1,486
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_adc.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_ADC" extern const mp_obj_type_t driver_adc_type; // this is the actual...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/adc.c
C
apache-2.0
8,092
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #define CONFIG_LOGMACRO_DETAILS #include "board_mgr.h" #include <fcntl.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos/list.h" #include "aos_hal_adc.h" #include "a...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/board_mgr.c
C
apache-2.0
33,774
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_CAN" extern const mp_obj_type_t driver_can_type; #define CAN_JSON_CONFIG_PATH "/data/python/config/can.json" // this ...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/can.c
C
apache-2.0
4,605
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_CRYPTO" extern const mp_obj_type_t driver_crypto_type; // this is the actual C-structure for our new object typedef st...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/crypto.c
C
apache-2.0
5,757
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_dac.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_DAC" extern const mp_obj_type_t driver_dac_type; // this is the actual...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/dac.c
C
apache-2.0
7,105
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_gpio.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/gc.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/stackctrl.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_GPIO" extern const mp_obj...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/gpio.c
C
apache-2.0
10,553
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_i2c.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_I2C" #define I2C_CHECK_PARAMS(count) ...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/i2c.c
C
apache-2.0
8,489
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_IR" extern const mp_obj_type_t driver_ir_type; // this is the actual C-structure for our new object typedef struct { ...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/ir.c
C
apache-2.0
5,232
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_KEYPAD" extern const mp_obj_type_t driver_keypad_type; // this is the actual C-structure for our new object typedef st...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/keypad.c
C
apache-2.0
3,865
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_LOCATION" extern const mp_obj_type_t driver_location_type; #define LOCATION_JSON_CONFIG_PATH "/data/python/config/loca...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/location.c
C
apache-2.0
6,434
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #if MICROPY_PY_DRIVER #include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "drivers/dht/dht.h" // #include "ulog/ulog.h" extern const mp_obj_type...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/moddriver.c
C
apache-2.0
2,747
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_pwm.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_PWM" extern const mp_obj_type_t driver_pwm_type; // this is the actual...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/pwm.c
C
apache-2.0
7,288
#board json parse list(APPEND SOURCEFILE "${MPYADAPTORDIR}/system/driver/board_mgr.c") #driver list(APPEND SOURCEFILE "${MPYADAPTORDIR}/system/driver/keypad.c") list(APPEND SOURCEFILE "${MPYADAPTORDIR}/system/driver/location.c") list(APPEND SOURCEFILE "${MPYADAPTORDIR}/system/driver/und.c") list(APPEND SOURCEFILE "${...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/py.mk
Makefile
apache-2.0
1,122
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_rtc.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_RTC" extern const mp_obj_type_t driver_rtc_type; //#define RTC_JSON_CO...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/rtc.c
C
apache-2.0
7,329
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_spi.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "driver_spi" extern const mp_obj_type_t driver_spi_type; #define SPI_CHECK_PAR...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/spi.c
C
apache-2.0
9,428
/* * This file is part of the MicroPython project, http://micropython.org/ * * Development of the code in this file was sponsored by Microbric Pty Ltd * * The MIT License (MIT) * * Copyright (c) 2013-2015 Damien P. George * Copyright (c) 2016 Paul Sokolovsky * * Permission is hereby granted, free of charge, t...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/timer.c
C
apache-2.0
7,870
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_uart.h" #include "board_mgr.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_UART" extern const mp_obj_type_t driver_uart_type; #define UART_TIMEO...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/uart.c
C
apache-2.0
11,618
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "DRIVER_UND" extern const mp_obj_type_t driver_und_type; // this is the actual C-structure for our new object typedef struct {...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/und.c
C
apache-2.0
5,901
/* * Copyright (C) 2015-2021 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos_hal_wdg.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #include "board_mgr.h" #define LOG_TAG "DRIVER_WDT" #...
YifuLiu/AliOS-Things
components/py_engine/modules/driver/wdt.c
C
apache-2.0
5,545
#include <stdio.h> #include <stdlib.h> #include <string.h> #if MICROPY_PY_KV #include "aos/kv.h" #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" #define LOG_TAG "KV" #define KV_BUFFER_MAX_LEN 256 STATIC mp_obj_t obj_setStorageSync(size_...
YifuLiu/AliOS-Things
components/py_engine/modules/kv/modkv.c
C
apache-2.0
5,174
#c interface #add include file set(CINTERFACEDIR ${MPYADAPTORDIR}/component/minicv/base/modules/c) set(CORE ${MPYADAPTORDIR}/component/minicv/base/modules/core) set(MLDIR ${MPYADAPTORDIR}/component/minicv/base/modules/ml) include_directories(${MPYADAPTORDIR}/component/minicv/base/include) include_directories(${MPYADA...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/cv.mk
Makefile
apache-2.0
487
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef IHAAS_DATA_INPUT_H #define IHAAS_DATA_INPUT_H #include "base/include/base/HaasDataInputDef.h" /** * @brief All Data input Class * @author HaasAI Group */ class IHaasDataInput { public: virtual ~IHaasDataInput(){} /** * @brief Open the dat...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/IHaasDataInput.h
C++
apache-2.0
3,130
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef IHAAS_IMAGE_CODEC_H #define IHAAS_IMAGE_CODEC_H #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasImageCodecDef.h" /** * @brief image Codec class * @author HaasAI Group */ class IHaasImageCodec { public: virtual ~IHa...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/IHaasImageCodec.h
C++
apache-2.0
5,815
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef IHAAS_IMAGE_PROC_H #define IHAAS_IMAGE_PROC_H #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasImageProcDef.h" /** * @brief image Proc class * @author HaasAI Group */ class IHaasImageProc { public: virtu...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/IHaasImageProc.h
C++
apache-2.0
10,765
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef IHAAS_ML_H #define IHAAS_ML_H #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasMLDef.h" /** * @brief Machine Learning Control Class * @author HaasAI Group */ class IHaasML { public: virtual ~IHaasML() {} /**...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/IHaasML.h
C++
apache-2.0
4,037
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef IHAAS_UI_H #define IHAAS_UI_H #include "string.h" #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasUIDef.h" /** * @brief Haas UI Control Class * @author HaasAI Group */ class IHaasUI { public: virtual ~IHaasUI(){} ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/IHaasUI.h
C++
apache-2.0
8,230
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef IHAAS_VIDEO_CODEC_H #define IHAAS_VIDEO_CODEC_H #include "base/modules/core/include/HaasErrno.h" #include "base/include/base/HaasCommonVideo.h" #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasVideoCodecDef.h" /** *...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/IHaasVideoCodec.h
C++
apache-2.0
4,688
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_COMMON_IMAGE_H #define HAAS_COMMON_IMAGE_H //#include <cstdint> #include <stdint.h> #include <stdlib.h> //#include <string> #include <string.h> /**@enum PixelFmt_t * @brief Pixel Format Value \n */ typedef enum { PIXEL_FMT_NONE = -1,...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasCommonImage.h
C
apache-2.0
1,369
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_COMMON_VIDEO_H #define HAAS_COMMON_VIDEO_H #include "base/include/base/HaasCommonImage.h" /**@enum VideoCodecID_t * @brief Video Codec ID Value \n */ typedef enum { VIDEO_CODEC_ID_NONE, VIDEO_CODEC_ID_H261, VIDEO_CODEC_ID_H263, ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasCommonVideo.h
C
apache-2.0
1,075
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_DATA_INPUT_DEF_H #define HAAS_DATA_INPUT_DEF_H #include "base/include/base/HaasCommonImage.h" /**@enum CameraNumber_t * @brief Camera Number \n */ typedef enum { DATA_INPUT_CAMERA_NUMBER_NONE = -1, DATA_INPUT_CAMERA_NUMBER_F...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasDataInputDef.h
C
apache-2.0
1,052
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_IMAGE_CODEC_DEF_H #define HAAS_IMAGE_CODEC_DEF_H #include "base/include/base/HaasCommonImage.h" /**@enum CodecImageType_t * @brief Codec Image Type \n */ typedef enum { CODEC_IMAGE_SOURCE_NONE = -1, CODEC_IMAG_SOURCE_IMAGE_PN...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasImageCodecDef.h
C
apache-2.0
523
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_IMAGE_PROC_DEF_H #define HAAS_IMAGE_PROC_DEF_H #include "base/include/base/HaasCommonImage.h" /**@enum ImageProcType_t * @brief Image Proc Type \n */ typedef enum { IMAGE_PROC_NONE = -1, IMAGE_PROC_CPU = 0, IMAGE...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasImageProcDef.h
C
apache-2.0
437
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_ML_DEF_H #define HAAS_ML_DEF_H /**@enum MLEngineType_t * @brief ML Engine Type \n */ typedef enum { ML_ENGINE_NONE = -1, ML_ENGINE_MNN = 0, ML_ENGINE_CLOUD = 1, ML_ENGINE_ODLA = 2, ML_ENGINE_MAX = 30, } MLE...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasMLDef.h
C
apache-2.0
340
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_UI_DEF_H #define HAAS_UI_DEF_H /**@enum UIFrameworkType_t * @brief UI Framework Type \n */ typedef enum { UI_FRAMEWORK_NONE = -1, UI_FRAMEWORK_GREENUI = 0, UI_FRAMEWORK_FB = 1, UI_FRAMEWORK_LVGL = 2,...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasUIDef.h
C
apache-2.0
418
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_VIDEOCODEC_DEF_H #define HAAS_VIDEOCODEC_DEF_H /**@enum VideoCodecType_t * @brief Video Codec Type \n */ typedef enum { VIDEO_CODEC_NONE = -1, VIDEO_CODEC_FFMPEG = 0, VIDEO_CODEC_HAL = 1, VIDEO_CODEC_MAX ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/include/base/HaasVideoCodecDef.h
C
apache-2.0
359
#c interface #add include file include_directories(${CINTERFACEDIR}/include) #add src file list(APPEND SOURCEFILE "${CINTERFACEDIR}/src/WrapperIHaasDataInput.cpp") list(APPEND SOURCEFILE "${CINTERFACEDIR}/src/WrapperIHaasImageCodec.cpp") list(APPEND SOURCEFILE "${CINTERFACEDIR}/src/WrapperIHaasImageProc.cpp") list(APP...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/cv.mk
Makefile
apache-2.0
519
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef WRAPPER_IHAAS_DATA_INPUT_H #define WRAPPER_IHAAS_DATA_INPUT_H #include "base/include/base/HaasDataInputDef.h" #ifdef __cplusplus extern "C" { #endif void* DataInputCreateInstance(DataInputType_t type); void DataInputDestoryInstance(void* ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/include/WrapperIHaasDataInput.h
C
apache-2.0
704
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef WRAPPER_IHAAS_IMAGE_CODEC_H #define WRAPPER_IHAAS_IMAGE_CODEC_H #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasImageCodecDef.h" #ifdef __cplusplus extern "C" { #endif void* ImageCodecCreateInstance(CodecImageT...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/include/WrapperIHaasImageCodec.h
C
apache-2.0
1,122
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef WRAPPER_IHAAS_IMAGE_PROC_H #define WRAPPER_IHAAS_IMAGE_PROC_H #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasImageProcDef.h" #ifdef __cplusplus extern "C" { #endif void* ImageProcCreateInstance(ImageProcType_t...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/include/WrapperIHaasImageProc.h
C
apache-2.0
2,183
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef WRAPPER_IHAAS_ML_H #define WRAPPER_IHAAS_ML_H #include "base/include/base/HaasMLDef.h" #ifdef __cplusplus extern "C" { #endif void* MLCreateInstance(MLEngineType_t type); void MLDestoryInstance(void *instance); int MLConfig(void *ins...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/include/WrapperIHaasML.h
C
apache-2.0
728
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef WRAPPER_IHAAS_UI_H #define WRAPPER_IHAAS_UI_H #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasUIDef.h" #ifdef __cplusplus extern "C" { #endif void* UICreateInstance(UIFrameworkType_t type); void UIDestoryIn...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/include/WrapperIHaasUI.h
C
apache-2.0
1,438
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef WRAPPER_IHAAS_VIDEO_CODEC_H #define WRAPPER_IHAAS_VIDEO_CODEC_H #include "base/include/base/HaasCommonVideo.h" #include "base/include/base/HaasCommonImage.h" #include "base/include/base/HaasVideoCodecDef.h" #ifdef __cplusplus extern "C" { #endif ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/include/WrapperIHaasVideoCodec.h
C
apache-2.0
1,016
#include "base/modules/c/include/WrapperIHaasDataInput.h" #include "base/include/IHaasDataInput.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #define LOG_TAG "WRAPPER_DATAINPUT" void* DataInputCreateInstance(DataInputType_t type) { LOGD(LOG_TAG, "entern %s;\n", __func__); #if 0 I...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/src/WrapperIHaasDataInput.cpp
C++
apache-2.0
3,414
#include "base/modules/c/include/WrapperIHaasImageCodec.h" #include "base/include/IHaasImageCodec.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #define LOG_TAG "WRAPPER_IMAGECODEC" void* ImageCodecCreateInstance(CodecImageType_t type) { LOGD(LOG_TAG, "entern %s;\n", __func__); #if 0 ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/src/WrapperIHaasImageCodec.cpp
C++
apache-2.0
4,847
#include "base/modules/c/include/WrapperIHaasImageProc.h" #include "base/include/IHaasImageProc.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #define LOG_TAG "WRAPPER_PROC" void* ImageProcCreateInstance(ImageProcType_t type) { LOGD(LOG_TAG, "entern %s;\n", __func__); #if 0 IHaasI...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/src/WrapperIHaasImageProc.cpp
C++
apache-2.0
8,033
#include "base/modules/c/include/WrapperIHaasML.h" #include "base/include/IHaasML.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #define LOG_TAG "WRAPPER_ML" void* MLCreateInstance(MLEngineType_t type) { LOGD(LOG_TAG, "entern %s;\n", __func__); IHaasML* mIHaasML = IHaasMLInstance...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/src/WrapperIHaasML.cpp
C++
apache-2.0
2,963
#include "base/modules/c/include/WrapperIHaasUI.h" #include "base/include/IHaasUI.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #define LOG_TAG "WRAPPER_UI" void* UICreateInstance(UIFrameworkType_t type) { LOGD(LOG_TAG, "entern %s;\n", __func__); #if 0 IHaasUI* mIHaasUI = IHaasU...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/src/WrapperIHaasUI.cpp
C++
apache-2.0
6,381
#include "base/modules/c/include/WrapperIHaasVideoCodec.h" #include "base/include/IHaasVideoCodec.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #define LOG_TAG "WRAPPER_VIDEOCODEC" void* VideoCodecCreateInstance(VideoCodecType_t type) { LOGD(LOG_TAG, "entern %s;\n", __func__); #if 0 ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/c/src/WrapperIHaasVideoCodec.cpp
C++
apache-2.0
4,941
#add include file include_directories(${CORE}/include) #add source file list(APPEND SOURCEFILE "${CORE}/src/HaasImageUtils.cpp")
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/core/cv.mk
Makefile
apache-2.0
130
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAL_ERRNO_H #define HAL_ERRNO_H #include <cerrno> enum { STATUS_OK = 0, STATUS_ERROR = -1, STATUS_BUSY = -2, STATUS_TIMEOUT = -3, STATUS_ENODEV = -4, STATUS_EPERM = -5, STATUS_EIN...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/core/include/HaasErrno.h
C
apache-2.0
553
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_IMAGE_UTILS_H #define HAAS_IMAGE_UTILS_H #include <stdint.h> #include "base/include/base/HaasCommonImage.h" class ImageUtils { public: static uint32_t GetSize(PixelFmt_t format, uint32_t width, uint32_t height); }; #endif
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/core/include/HaasImageUtils.h
C++
apache-2.0
304
/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef HAAS_LOG_H #define HAAS_LOG_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <string.h> //#define ENABLE_DEBUG #ifdef ENABLE_DEBUG #define LOG_ENABLE_D #endif #define LOG_ENABLE_I #define LOG_ENABLE_W #define LOG_ENABLE_E ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/core/include/HaasLog.h
C
apache-2.0
1,161
#include "base/modules/core/include/HaasImageUtils.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" uint32_t ImageUtils::GetSize(PixelFmt_t format, uint32_t width, uint32_t height) { uint32_t baseSize = width * height; switch (format) { case PIXEL_FMT_YUV420P: case PIXEL_FMT_NV12: case P...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/core/src/HaasImageUtils.cpp
C++
apache-2.0
628
#add include file include_directories(${MLDIR}/include) #add source file list(APPEND SOURCEFILE "${MLDIR}/src/HaasML.cpp") list(APPEND SOURCEFILE "${MLDIR}/src/HaasMLCloud.cpp") list(APPEND SOURCEFILE "${MLDIR}/src/HaasMLMnn.cpp") #list(APPEND SOURCEFILE "${MLDIR}/src/HaasMLOlda.cpp")
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/cv.mk
Makefile
apache-2.0
288
#ifndef HAAS_ML_H #define HAAS_ML_H #include "base/include/IHaasML.h" #endif
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/HaasML.h
C
apache-2.0
78
#ifndef HAAS_ML_CLOUD_H #define HAAS_ML_CLOUD_H #include "base/include/IHaasML.h" #include <string> #include "ucloud_ai_common.h" #include "ucloud_ai_objectdet.h" #include "ucloud_ai_facebody.h" #include "ucloud_ai_imagerecog.h" #include "ucloud_ai_ocr.h" class HaasMLCloud : public IHaasML { public: HaasMLCloud();...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/HaasMLCloud.h
C++
apache-2.0
1,488
#ifndef HAAS_ML_MNN_H #define HAAS_ML_MNN_H #include "base/include/IHaasML.h" class HaasMLMnn : public IHaasML { public: HaasMLMnn(); virtual ~HaasMLMnn(); virtual int SetInputData(const char *dataPath, const char *compareDataPath); virtual int LoadNet(const char *modePath); virtual int Predict();...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/HaasMLMnn.h
C++
apache-2.0
423
#ifndef HAAS_ML_OLDA_H #define HAAS_ML_OLDA_H #include "base/include/IHaasML.h" class HaasMLOlda : public IHaasML { public: HaasMLOlda(); virtual ~HaasMLOlda(); virtual int SetInputData(const char *dataPath, const char *compareDataPath); virtual int LoadNet(const char *modePath); virtual int Predi...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/HaasMLOlda.h
C++
apache-2.0
641
#ifndef HAAS_UAI_IMG_DATA_H #define HAAS_UAI_IMG_DATA_H #include "stdint.h" uint8_t uai_img_data[70*96*2] = { 138, 135, 122, 37, 105, 165, 97, 164, 81, 100, 73, 3, 56, 227, 48, 162, 48, 130, 48, 130, 48, 129, 48, 129, 48, 129, 56, 129, 56, 129, 56, 129, 56, 129, 56, 161, 64, 161, 64, 161, 64, 129, 72, 129, 72, 129, 8...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/uai_img_data.h
C
apache-2.0
61,122
#ifndef HAAS_UAI_DEMO_DATA_H #define HAAS_UAI_DEMO_DATA_H #include "stdint.h" const int8_t conv_1_kernel[ 5 * 5 * 1 * 2 ] = { -39, -46, -128, -123, 64, -2, -37, 37, -65, 86, -20, -19, -101, 27, 4, 12, -81, 57, -45, -54, 32, 34, -13, -77, -92, 107, -1, 20, -128, -89, -6, -40, -47, -30, -6, -45, 91, 42, 127, -95, 123,...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/uai_odla_demo_data.h
C
apache-2.0
355,138
#ifndef HAAS_UAI_IMG_PROC_H #define HAAS_UAI_IMG_PROC_H #include "stdio.h" #include "uai_odla.h" #include "uai_load.h" #include "uai_quant.h" #include "uai_image.h" #include "aos/kernel.h" #define RGB565_TO_R(pixel) ((pixel & 0x1f) << 3) #define RGB565_TO_G(pixel) ((pixel & 0x7e0) >> 3) #define RGB565_TO_B(pixel) ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/uai_odla_imgproc.h
C
apache-2.0
2,294
//===- Sinian Compiler Generated File -------------------------------------===// #ifndef HAAS_UAI_INTERFACE_H #define HAAS_UAI_INTERFACE_H #include "stdio.h" #include "uai_odla.h" #include "uai_load.h" #include "uai_quant.h" #include "uai_odla_demo_data.h" #define DEC_IMG_WIDTH 32 #define DEC_IMG_HEIGHT 48 #define D...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/uai_odla_inference.h
C
apache-2.0
7,234
#ifndef HAAS_UAI_SCALE_DATA_H #define HAAS_UAI_SCALE_DATA_H #include "stdint.h" __attribute__ ((aligned (4))) const uint8_t uai_scale_data[] = { 0x1a, 0x1a, 0xa1, 0xa1, 0x05, 0x00, 0x14, 0x00, 0x17, 0xbe, 0xf3, 0x07, 0x0f, 0x0e, 0x0e, 0x10, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/include/uai_scale_data.h
C
apache-2.0
8,617
#include "base/modules/ml/include/HaasML.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #include "base/modules/ml/include/HaasMLCloud.h" #include "base/modules/ml/include/HaasMLMnn.h" #define LOG_TAG "HAASML" extern "C" { IHaasML* IHaasMLInstance(MLEngineType_t type) { LOG...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/src/HaasML.cpp
C++
apache-2.0
1,164
#include "base/modules/ml/include/HaasMLCloud.h" #include <string> #include "base/modules/core/include/HaasErrno.h" #include "ulog/ulog.h" using namespace std; #define LOG_TAG "HAAS_ML_CLOUD" static ucloud_ai_result_t g_result[16]; static int g_index = 0; HaasMLCloud::HaasMLCloud() { LOGD(LOG_TAG, "entern\n");...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/src/HaasMLCloud.cpp
C++
apache-2.0
13,665
#include "base/modules/ml/include/HaasMLMnn.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #define LOG_TAG "HAAS_ML_MNN" HaasMLMnn::HaasMLMnn() { LOGD(LOG_TAG, "entern\n"); } HaasMLMnn::~HaasMLMnn() { LOGD(LOG_TAG, "entern\n"); } int HaasMLMnn::SetInputData(const char *dataPath,...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/src/HaasMLMnn.cpp
C++
apache-2.0
797
#if 0 #include "base/modules/ml/include/HaasMLOlda.h" #include "ulog/ulog.h" #include "base/modules/core/include/HaasErrno.h" #include "uai_quant.h" #include "uai_scale_data.h" #include "uai_img_data.h" #include "uai_odla_inference.h" #include "uai_odla_imgproc.h" #include "HaasImageCodecPng.h" #define LOG_TAG "HAAS...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/base/modules/ml/src/HaasMLOlda.cpp
C++
apache-2.0
3,621
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/builtin.h" #include "ulog/ulog.h" #include "base/modules/c/include/WrapperIHaasDataInput.h" #define LOG_TAG "DATAINPUT" extern const mp_obj_type_t minicv_datainput_type; // thi...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/datainput.c
C
apache-2.0
11,643
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/builtin.h" #include "ulog/ulog.h" #include "base/modules/c/include/WrapperIHaasImageCodec.h" #define LOG_TAG "IMAGE_CODEC" extern const mp_obj_type_t minicv_imagecodec_type; //...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/imagecodec.c
C
apache-2.0
16,863
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/builtin.h" #include "ulog/ulog.h" #include "base/modules/c/include/WrapperIHaasImageProc.h" #define LOG_TAG "IMAGE_PROC" extern const mp_obj_type_t minicv_imageproc_type; // th...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/imageproc.c
C
apache-2.0
23,621
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/builtin.h" #include "base/modules/c/include/WrapperIHaasML.h" #include "ulog/ulog.h" #include "ucloud_ai_common.h" #define LOG_TAG "ML" extern const mp_obj_type_t minicv_ml_ty...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/ml.c
C
apache-2.0
22,106
#include <stdio.h> #include <string.h> #include <stdlib.h> #if MICROPY_PY_MINICV #include "py/obj.h" #include "py/runtime.h" #include "py/builtin.h" #include "ulog/ulog.h" extern const mp_obj_type_t minicv_datainput_type; extern const mp_obj_type_t minicv_imagecodec_type; extern const mp_obj_type_t minicv_imageproc_...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/modminicv.c
C
apache-2.0
1,360
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/builtin.h" #include "ulog/ulog.h" #include "base/modules/c/include/WrapperIHaasUI.h" #define LOG_TAG "UI" extern const mp_obj_type_t minicv_ui_type; // this is the actual C-str...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/ui.c
C
apache-2.0
21,571
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "py/builtin.h" #include "ulog/ulog.h" #include "base/modules/c/include/WrapperIHaasVideoCodec.h" #define LOG_TAG "VIDEO_CODEC" extern const mp_obj_type_t minicv_videocodec_type; //...
YifuLiu/AliOS-Things
components/py_engine/modules/minicv/videocodec.c
C
apache-2.0
13,366
#include <stdio.h> #include <stdlib.h> #include <string.h> #if MICROPY_PY_MODBUS #include "board_mgr.h" #include "mbmaster.h" #include "py/builtin.h" #include "py/obj.h" #include "py/runtime.h" #include "py/stackctrl.h" #include "ulog/ulog.h" #define LOG_TAG "modbus" static mb_handler_t *mb_handler = NULL; STATIC ...
YifuLiu/AliOS-Things
components/py_engine/modules/modbus/modbus.c
C
apache-2.0
17,015
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "py/builtin.h" #include "py/mperrno.h" #include "py/obj.h" #include "py/runtime.h" #include "ulog/ulog.h" extern const mp_obj_type_t mqtt_client_type; // this is the actual C-structure for our new object STATIC const mp_rom_map_elem_t mqtt_locals_d...
YifuLiu/AliOS-Things
components/py_engine/modules/mqtt/modmqtt.c
C
apache-2.0
680