repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
umaru724/TencentOS_E53_IA1 | kernel/core/include/tos_tick.h | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/ant/experimental/ant_shared_channel/m2m/asc_master_to_master.c | /**
* This software is subject to the ANT+ Shared Source License
* www.thisisant.com/swlicenses
* Copyright (c) Garmin Canada Inc. 2014
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/crypto/nrf_crypto/hkdf/main.c | /**
* Copyright (c) 2018 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... |
umaru724/TencentOS_E53_IA1 | net/lora_module_wrapper/lora_module_wrapper.c | #include "lora_module_wrapper.h"
static lora_module_t *g_lora_module = NULL;
int tos_lora_module_register(lora_module_t *module)
{
if (!g_lora_module) {
g_lora_module = module;
return 0;
}
return -1;
}
int tos_lora_module_init(void)
{
if (g_lora_module && g_lora_module->init) {
... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/cifra_AES128-EAX/modes.c | /*
* cifra - embedded cryptography library
* Written in 2014 by <NAME> <<EMAIL>>
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to the
* public domain worldwide. This software is distributed without any
* warranty.
*
* You ... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/ant/experimental/ant_shared_channel/m2m/asc_master_to_master.h | <reponame>umaru724/TencentOS_E53_IA1
/**
* This software is subject to the ANT+ Shared Source License
* www.thisisant.com/swlicenses
* Copyright (c) Garmin Canada Inc. 2014
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that th... |
umaru724/TencentOS_E53_IA1 | kernel/pm/include/tos_pm.h | <reponame>umaru724/TencentOS_E53_IA1<gh_stars>1-10
/*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have ... |
umaru724/TencentOS_E53_IA1 | kernel/core/tos_mmblk.c | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... |
umaru724/TencentOS_E53_IA1 | components/connectivity/LoraWAN/system/uart.h | /*!
* \file uart.h
*
* \brief UART driver implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ _____ ____| |__
* ... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/ble_peripheral/experimental/ble_nfc_pairing_reference/ble_m.c | /**
* Copyright (c) 2016 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_log.h | <gh_stars>1-10
#ifndef _QCLOUD_LOG_H_
#define _QCLOUD_LOG_H_
/* 单条日志最大长度 */
#define QCLOUD_LOG_LEN_MAX (1024)
/*用户自定义日志打印函数回调*/
typedef int (*qcloud_log_handler_t)(const char *message);
/**
* @brief 设置日志回调函数,用户接管日志内容用于输出到文件等操作
*
* @param handler 回调函数指针
*
*/
void qcloud_log_handler_set(qcloud_log_handler_t han... |
umaru724/TencentOS_E53_IA1 | kernel/core/tos_binary_heap.c | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... |
umaru724/TencentOS_E53_IA1 | components/fs/vfs/include/tos_vfs_fs.h | #ifndef _TOS_VFS_FS_H_
#define _TOS_VFS_FS_H_
#if TOS_CFG_VFS_EN > 0u
typedef struct vfs_inode_st vfs_inode_t;
typedef struct vfs_filesystem_operations_st {
int (*open) (vfs_file_t *file, const char *pathname, vfs_oflag_t flags);
int (*close) (vfs_file_t *file);
ssize_t (*read) ... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/peripheral/qdec/qenc_sim.h | <reponame>umaru724/TencentOS_E53_IA1<filename>platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/peripheral/qdec/qenc_sim.h
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provi... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/thedotfactory_fonts/nrf_font.h | /* Copyright (c) 2016 <NAME>
*
* 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, publish, distri... |
umaru724/TencentOS_E53_IA1 | kernel/core/include/tos_mmblk.h | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/infineon/optiga/dtls/DtlsWindowing.c | <gh_stars>1-10
/**
* MIT License
*
* Copyright (c) 2018 Infineon Technologies AG
*
* 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... |
umaru724/TencentOS_E53_IA1 | board/TencentOS_tiny_EVB_MX/BSP/Hardware/ONCHIP_FLASH/onchip_flash.c | #include "tos_kv.h"
#include "stm32l4xx.h"
#define ONCHIP_FLASH_ADDR_START 0x08000000 // start address for onchip flash for stm32l431RCTX
#define ONCHIP_FLASH_ADDR_MAX 0x0803FFFF // 256K flash addr for stm32l431RCTX
#define SECTOR_SIZE 2048 // sector size for stm32l431RCTX
#define ... |
umaru724/TencentOS_E53_IA1 | arch/arm/arm-v7a/common/include/tos_arm.h | <filename>arch/arm/arm-v7a/common/include/tos_arm.h<gh_stars>1-10
/*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/mqtt/qcloud_mqtt_glue.c | #ifdef __cplusplus
extern "C" {
#endif
#include "qcloud.h"
__QCLOUD_STATIC__ mqtt_event_type_t mqtt_glue_event_type_get(qcloud_mqtt_ack_type_t ack_type, int is_nack, int is_timer_expired)
{
mqtt_event_type_t event_type;
if (is_nack) {
switch (ack_type) {
case QCLOUD_MQTT_ACK_TYPE_PUBACK:
... |
umaru724/TencentOS_E53_IA1 | kernel/evtdrv/include/tos_evtdrv_timer.h | <filename>kernel/evtdrv/include/tos_evtdrv_timer.h
/*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have ... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/mqtt/qcloud_mqtt_connect.c | #ifdef __cplusplus
extern "C" {
#endif
#include "qcloud.h"
__QCLOUD_STATIC__ qcloud_err_t mqtt_connack2errno(uint8_t connack_rc)
{
switch (connack_rc) {
case MQTT_CONNACK_CONNECTION_ACCEPTED:
return QCLOUD_ERR_MQTT_CONNACK_CONNECTION_ACCEPTED;
case MQTT_CONANCK_UNACCEPTABLE_PROTOCOL_V... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/shadow/qcloud_shadow_json.c | /*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the L... |
umaru724/TencentOS_E53_IA1 | kernel/pm/tos_pm.c | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_coap.h | /*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the L... |
umaru724/TencentOS_E53_IA1 | kernel/core/include/tos_robin.h | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... |
umaru724/TencentOS_E53_IA1 | examples/sensor/sensor_demo.h | #ifndef __SENSOR_DEMO_H__
#define __SENSOR_DEMO_H__
#include "mcu_init.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
char data[32];
}ReportData_TypeDef;
void application_entry(void *arg);
#ifdef __cplusplus
}
#endif
#endif /* __APP_DEMO_H__ */
|
umaru724/TencentOS_E53_IA1 | components/connectivity/LoraWAN/boards_common/lpm-board.h | /*!
* \file lpm-board.h
*
* \brief Target board low power modes management
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ __... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/gd/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Include/gd32vf103_exmc.h | <filename>platform/vendor_bsp/gd/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Include/gd32vf103_exmc.h
/*!
\file gd32vf103_exmc.h
\brief definitions for the EXMC
\version 2019-06-05, V1.0.0, firmware for GD32VF103
*/
/*
Copyright (c) 2019, GigaDevice Semiconductor Inc.
Redistribution... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_shadow_config.h | <filename>components/connectivity/TencentCloud_SDK/source/include/qcloud_shadow_config.h
#ifndef _QCLOUD_SHADOW_CONFIG_
#define _QCLOUD_SHADOW_CONFIG_
/* 接收云端返回的JSON文档的buffer大小 */
#define QCLOUD_SHADOW_JSON_BUF_MAX (QCLOUD_MQTT_CLIENT_RX_BUF_LEN + 1)
#define QCLOUD_SHADOW_CLIENT_TOKEN_MAX ... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_osal/osal_dtls.h | #ifndef _OSAL_DTLS_H_
#define _OSAL_DTLS_H_
__QCLOUD_OSAL__ void *osal_dtls_connect(qcloud_tls_opt_t *tls_opt, const char *host, int port);
__QCLOUD_OSAL__ void osal_dtls_disconnect(void *handle);
__QCLOUD_OSAL__ qcloud_err_t osal_dtls_write(void *handle, const void *buf, size_t len, size_t *write_len);
__QCLOUD_O... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/ble_peripheral/experimental/ble_app_queued_writes/nrf_ble_qwrs.h | /**
* Copyright (c) 2016 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nxp/MIMXRT1062/CMSIS/DSP/Source/TransformFunctions/TransformFunctions.c | /* ----------------------------------------------------------------------
* Project: CMSIS DSP Library
* Title: TransformFunctions.c
* Description: Combination of all transform function source files.
*
* $Date: 18. March 2019
* $Revision: V1.0.0
*
* Target Processor: Cortex-M cores
* ---... |
umaru724/TencentOS_E53_IA1 | components/connectivity/qcloud-iot-hub-sdk-3.1.2/3rdparty/samples/gateway/gateway_sample.c | <filename>components/connectivity/qcloud-iot-hub-sdk-3.1.2/3rdparty/samples/gateway/gateway_sample.c
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/thedotfactory_fonts/orkney8pts.c | /* Font copyrights:
*
* Copyright (c) 2015,
* <NAME> (https://behance.net/pradil),
* <NAME> (http://oakes.co/),
* <NAME> (https://www.behance.net/cssobral20f492),
* with Reserved Font Name Orkney.
*
* Code was generated by The Dot Factory (https://github.com/pavius/the-dot-factory)
*
* This Font Software is l... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/event/qcloud_event_json.c | <filename>components/connectivity/TencentCloud_SDK/source/src/event/qcloud_event_json.c
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may no... |
umaru724/TencentOS_E53_IA1 | components/lzw/lzwfilter.c | <reponame>umaru724/TencentOS_E53_IA1
////////////////////////////////////////////////////////////////////////////
// **** LZW-AB **** //
// Adjusted Binary LZW Compressor/Decompressor //
// Copyright (c) 2016 <NAME> ... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/cifra_AES128-EAX/cifra_eax_aes.h | <filename>platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/cifra_AES128-EAX/cifra_eax_aes.h
/*
* cifra - embedded cryptography library
* Written in 2014 by <NAME> <<EMAIL>>
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to t... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/mqtt/qcloud_mqtt_common.c | /*******************************************************************************
* Copyright (c) 2014 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this d... |
umaru724/TencentOS_E53_IA1 | components/fs/vfs/include/tos_vfs_device.h | #ifndef _TOS_VFS_DEVICE_H_
#define _TOS_VFS_DEVICE_H_
#if TOS_CFG_VFS_EN > 0u
typedef struct vfs_inode_st vfs_inode_t;
typedef struct vfs_char_device_operations_st {
int (*open) (vfs_file_t *file);
int (*close) (vfs_file_t *file);
ssize_t (*read) (vfs_file_t *file, void *buf, size_t c... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_network.h | #ifndef _QCLOUD_NETWORK_H_
#define _QCLOUD_NETWORK_H_
typedef struct qcloud_network_st qcloud_network_t;
typedef struct qcloud_network_st {
qcloud_err_t (*connect) (qcloud_network_t *);
qcloud_err_t (*read) (qcloud_network_t *, void *buf, size_t len, uint32_t timeout, size_t *read... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/coap/qcloud_coap_deserialize.c | /*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the L... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/cifra_AES128-EAX/cifra_cmac.c | <reponame>umaru724/TencentOS_E53_IA1<filename>platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/cifra_AES128-EAX/cifra_cmac.c
/*
* cifra - embedded cryptography library
* Written in 2014 by <NAME> <<EMAIL>>
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighbo... |
umaru724/TencentOS_E53_IA1 | net/sal_module_wrapper/sal_module_wrapper.c | #include "sal_module_wrapper.h"
static sal_module_t *g_sal_module = NULL;
int tos_sal_module_register(sal_module_t *module)
{
if (!g_sal_module) {
g_sal_module = module;
return 0;
}
return -1;
}
int tos_sal_module_init(void)
{
if (g_sal_module && g_sal_module->init) {
return ... |
umaru724/TencentOS_E53_IA1 | kernel/core/tos_priority_mail_queue.c | /*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tenc... |
umaru724/TencentOS_E53_IA1 | components/connectivity/LoraWAN/boards_common/display-board.h | /*!
* \file display-board.h
*
* \brief Target board OLED low level driver implementation
*
* \remarks Some snippets of these drivers are based on the Adafruit_GFX library.
* https://github.com/adafruit/Adafruit-GFX-Library
* Please take a look at their LICENSE.TXT file.
* ... |
umaru724/TencentOS_E53_IA1 | examples/qcloud_iot_explorer_sdk_data_template/data_config.c | /*-----------------data config start -------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
#include "qcloud_iot_export.h"
#include "qcloud_iot_import.h"
#include "lite-utils.h"
#include "utils_timer.h"
#include "E53_IA1.h"
#include... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/crypto/nrf_crypto/test_app/test_cases/test_vectors_aes_cbc_mac.c | <reponame>umaru724/TencentOS_E53_IA1<filename>platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/crypto/nrf_crypto/test_app/test_cases/test_vectors_aes_cbc_mac.c
/**
* Copyright (c) 2018 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or withou... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/coap/qcloud_coap_auth.c | /*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the L... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nxp/MIMXRT1062/CMSIS/DSP/Source/FilteringFunctions/arm_fir_decimate_fast_q31.c | <reponame>umaru724/TencentOS_E53_IA1
/* ----------------------------------------------------------------------
* Project: CMSIS DSP Library
* Title: arm_fir_decimate_fast_q31.c
* Description: Fast Q31 FIR Decimator
*
* $Date: 18. March 2019
* $Revision: V1.6.0
*
* Target Processor: Cortex... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/proprietary_rf/esb_low_power_ptx/main.c | <reponame>umaru724/TencentOS_E53_IA1
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must ... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/connectivity/ble_connectivity/main.c | /**
* Copyright (c) 2013 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/port/TencentOS_tiny/osal_dtls.c | <filename>components/connectivity/TencentCloud_SDK/source/src/port/TencentOS_tiny/osal_dtls.c
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you ... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_device_config.h | <reponame>umaru724/TencentOS_E53_IA1
#ifndef _QCLOUD_DEVICE_CONFIG_
#define _QCLOUD_DEVICE_CONFIG_
#define QCLOUD_DEVICE_PRODUCT_ID_MAX 14
#define QCLOUD_DEVICE_DEVICE_NAME_MAX 48
#define QCLOUD_DEVICE_USERNAME_MAX (QCLOUD_MQTT_DEVICE_CLIENT_ID_MAX + 8 + QCLOUD_MQTT_CONN... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_lib.h | /*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the L... |
umaru724/TencentOS_E53_IA1 | examples/qcloud_iot_explorer_sdk_data_template/qcloud_iot_hub_sdk_explorer.c | <reponame>umaru724/TencentOS_E53_IA1<gh_stars>0
#include "tos_k.h"
//#include "bc35_28_95_lwm2m.h"
#include "mcu_init.h"
#include "sal_module_wrapper.h"
#include "cmsis_os.h"
/* 用户根据自己的底层通信链路来配置此宏
* 如果是基于以太网lwip的链路,这里应该定义 USE_LWIP
* 如果是基于模组的通信链路,这里应该定义相应的模组宏,如使用ESP8266则定义 USE_ESP8266
* */
#define USE_ESP8266
#ifde... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/mqtt/qcloud_mqtt_yield.c | <filename>components/connectivity/TencentCloud_SDK/source/src/mqtt/qcloud_mqtt_yield.c
#ifdef __cplusplus
extern "C" {
#endif
#include "qcloud.h"
__QCLOUD_STATIC__ qcloud_err_t mqtt_yield_resubscribe(qcloud_mqtt_client_t *client)
{
QCLOUD_FUNC_ENTRY;
QCLOUD_POINTER_SANITY_CHECK(client, QCLOUD_ERR_INVAL);
... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/include/qcloud_utils/qcloud_json.h | <filename>components/connectivity/TencentCloud_SDK/source/include/qcloud_utils/qcloud_json.h
/*
* Copyright (c) 2017-2019 Tencent Group. All rights reserved.
* 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 th... |
umaru724/TencentOS_E53_IA1 | components/connectivity/qcloud-iot-hub-sdk-3.1.2/3rdparty/sdk_src/utils/qcloud_iot_ca.c | <gh_stars>1-10
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain ... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/external/infineon/optiga/comms/ifx_i2c/ifx_i2c_config.c | /**
* MIT License
*
* Copyright (c) 2018 Infineon Technologies AG
*
* 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... |
umaru724/TencentOS_E53_IA1 | components/connectivity/qcloud-iot-hub-sdk-3.1.2/3rdparty/sdk_src/utils/utils_hmac.c | <reponame>umaru724/TencentOS_E53_IA1
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the Li... |
umaru724/TencentOS_E53_IA1 | components/connectivity/TencentCloud_SDK/source/src/port/TencentOS_tiny/osal_tls.c | <gh_stars>1-10
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain ... |
umaru724/TencentOS_E53_IA1 | platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/ant/experimental/ant_shared_channel/slave/asc_device_registry.h | /**
* This software is subject to the ANT+ Shared Source License
* www.thisisant.com/swlicenses
* Copyright (c) Garmin Canada Inc. 2014
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*... |
kr0st/fplog2 | headers/udp_transport.h | #pragma once
#include <fplog_exceptions.h>
#include <sprot.h>
#include <random>
#ifndef _WIN32
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#define SOCKET int
#define SD_BOTH SHUT_RDWR
#define closesocket close
#define SOCKET_ER... |
kr0st/fplog2 | headers/fplog.h | #pragma once
#include <string>
#include <set>
#include <vector>
#include <rapidjson/rapidjson.h>
#include <rapidjson/document.h>
#include <typeinfo>
#include <sprot.h>
#include <fplog_exceptions.h>
#include <algorithm>
#include <mutex>
#include <functional>
#ifdef FPLOG_EXPORT
#ifdef __linux__
#define FPLOG_API __at... |
kr0st/fplog2 | headers/fplog_exceptions.h | <filename>headers/fplog_exceptions.h
#pragma once
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <cstring>
#ifndef __SHORT_FORM_OF_FILE__
#ifdef _WIN32
#define __SHORT_FORM_OF_FILE_WIN__ \
(strrchr(__FILE__,'\\') \
? strrchr(__FILE__,'\\')+1 \
: __FILE__ \
)
#define __SHORT_FORM_OF... |
kr0st/fplog2 | headers/utils.h | <filename>headers/utils.h
#pragma once
#include <string>
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include <algorithm>
#include <vector>
#include <fstream>
#include <queue>
#include <thread>
#include <mutex>
template<typename T>
struct std::hash<std::vector<T>>
{
typedef ve... |
kr0st/fplog2 | headers/piped_sequence.h | <reponame>kr0st/fplog2
#ifndef PIPED_SEQUENCE_H
#define PIPED_SEQUENCE_H
#include <ctype.h>
#include <sys/stat.h>
#include <semaphore.h>
#include <fcntl.h>
#include <time.h>
#include <sem_timedwait.h>
namespace sequence_number {
class Sem_Lock
{
public:
Sem_Lock(sem_t *semaphore): sem_(semaphore){}
... |
kr0st/fplog2 | headers/queue_controller.h | #include <string>
#include <queue>
#include <memory>
#include <chrono>
#include <sprot.h>
#ifdef FPLOG_EXPORT
#ifdef __linux__
#define FPLOG_API __attribute__ ((visibility("default")))
#else
#define FPLOG_API __declspec(dllexport)
#endif
#else
#ifdef __linux__
#define FPLOG_API
#else
#define FPLOG_API __declspec(d... |
kr0st/fplog2 | headers/sprot.h | #ifndef SPROT_H
#define SPROT_H
#include <string>
#include <map>
#include <vector>
#include <chrono>
#include <fplog_exceptions.h>
#include <utils.h>
#ifdef _WIN32
#ifdef SPROT_EXPORT
#define SPROT_API __declspec(dllexport)
#else
#define SPROT_API __declspec(dllimport)
#endif
#endif
#ifdef __linux__
#include <net... |
kr0st/fplog2 | headers/sem_timedwait.h | #pragma once
#ifdef __APPLE__
#include <semaphore.h>
int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
#endif
|
kr0st/fplog2 | headers/packet_router.h | <filename>headers/packet_router.h
#ifndef L1_TRANSPORT_H
#define PACKET_ROUTER_H
#include <sprot.h>
#include <map>
#include <queue>
#include <condition_variable>
#include <mutex>
#include <utils.h>
#include <thread>
namespace sprot
{
class Packet_Router: public Extended_Transport_Interface
{
public:
Pac... |
kr0st/fplog2 | headers/protocol.h | #ifndef PROTOCOL_H
#define PROTOCOL_H
#include <mutex>
#include <queue>
#include <sprot.h>
#include <stdint.h>
namespace sprot { namespace implementation {
class Protocol: public Protocol_Interface
{
public:
size_t read(void* buf, size_t buf_size, size_t timeout = infinite_wait);
size_t write(c... |
lasalvavida/Zybo-Open-Source-Video-IP-Toolbox | examples/zed_dual_fusion/zed_dual_fusion.sdk/axi_vga_buffer/src/helloworld.c | <reponame>lasalvavida/Zybo-Open-Source-Video-IP-Toolbox<gh_stars>1-10
/******************************************************************************
*
* Copyright (C) 2009 - 2014 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and a... |
lasalvavida/Zybo-Open-Source-Video-IP-Toolbox | video_ip/axi_vga_framebuffer_1.0/drivers/axi_vga_framebuffer_v1_0/src/axi_vga_framebuffer.h |
#ifndef AXI_VGA_FRAMEBUFFER_H
#define AXI_VGA_FRAMEBUFFER_H
/****************** Include Files ********************/
#include "xil_types.h"
#include "xstatus.h"
#define AXI_VGA_FRAMEBUFFER_S_AXI_SLV_REG0_OFFSET 0
#define AXI_VGA_FRAMEBUFFER_S_AXI_SLV_REG1_OFFSET 4
#define AXI_VGA_FRAMEBUFFER_S_AXI_SLV_REG2_OFFSET 8
... |
yangzecai/2021-Huawei-Embedded-Competition | player/sdk/code/include/ACO.h | <reponame>yangzecai/2021-Huawei-Embedded-Competition<filename>player/sdk/code/include/ACO.h<gh_stars>0
#pragma once
#include "data.h"
#include <set>
using std::set;
class Ant {
public:
Ant(const vector<double> &envPhers, double alpha, double beta);
~Ant() = default;
Ant(const Ant &) = delete;
Ant &o... |
yangzecai/2021-Huawei-Embedded-Competition | player/sdk/code/include/Graph.h | #pragma once
#include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
using std::vector;
using std::cout;
using std::endl;
using std::unordered_map;
using std::find;
template <typename Node> class Graph {
public:
using NodeIndex = typename vector<Node>::size_type;
u... |
yangzecai/2021-Huawei-Embedded-Competition | player/sdk/code/include/data.h | <reponame>yangzecai/2021-Huawei-Embedded-Competition
#pragma once
#include "Graph.h"
#include <set>
#include <vector>
using std::set;
using std::vector;
struct Edge {
uint32_t send; // 发送站点
uint32_t recv; // 接受站点
uint32_t dist; // 距离
};
using Route = vector<uint32_t>;
struct Sate {
... |
izzhong/ArabicToRomanNumeralsConverter | ArabicToRomanNumeralsConverterTestCase/ArabicToRomanNumeralsConverterTestCase/arabic_to_roman_mapping.h | <reponame>izzhong/ArabicToRomanNumeralsConverter<filename>ArabicToRomanNumeralsConverterTestCase/ArabicToRomanNumeralsConverterTestCase/arabic_to_roman_mapping.h
#pragma once
#include <string>
#include <array>
struct ArabicToRomanMapping
{
unsigned int arabicNumber;
std::string romanNumeral;
};
constexpr std::size_... |
N1ghtRaven/lcdgfx | src/v2/lcd/base/display.h | <gh_stars>0
/*
MIT License
Copyright (c) 2018-2020, <NAME>
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 ... |
N1ghtRaven/lcdgfx | src/lcd_hal/UserSettings.h | /*
MIT License
Copyright (c) 2018-2019, <NAME>
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, m... |
N1ghtRaven/lcdgfx | src/canvas/canvas_types.h | <filename>src/canvas/canvas_types.h<gh_stars>0
/*
MIT License
Copyright (c) 2017-2019, <NAME>
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 wi... |
N1ghtRaven/lcdgfx | src/v2/lcd/base/display_base.h | /*
MIT License
Copyright (c) 2018-2020, <NAME>
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, m... |
N1ghtRaven/lcdgfx | src/lcd_hal/interface.h | /*
MIT License
Copyright (c) 2017-2019, <NAME>
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, m... |
N1ghtRaven/lcdgfx | src/v2/lcd/pcd8544/lcd_pcd8544.h | <filename>src/v2/lcd/pcd8544/lcd_pcd8544.h
/*
MIT License
Copyright (c) 2019-2020, <NAME>
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 withou... |
N1ghtRaven/lcdgfx | src/v2/nano_engine/tiler.h | <gh_stars>0
/*
MIT License
Copyright (c) 2018-2019, <NAME>
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 ... |
nozomi1773/trafficserver | iocore/net/quic/QUICRetryIntegrityTag.h | /** @file
*
* A brief file description
*
* @section license License
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... |
nozomi1773/trafficserver | iocore/net/quic/QUICTLS.h | /** @file
*
* QUIC TLS
*
* @section license License
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you... |
nozomi1773/trafficserver | iocore/net/quic/QUICCongestionController.h | /** @file
*
* A brief file description
*
* @section license License
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... |
nozomi1773/trafficserver | plugins/experimental/maxmind_acl/mmdb.h | <filename>plugins/experimental/maxmind_acl/mmdb.h
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache ... |
nozomi1773/trafficserver | iocore/net/quic/qlog/QLogListener.h | /** @file
*
* A brief file description
*
* @section license License
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... |
nozomi1773/trafficserver | iocore/net/quic/qlog/QLogEvent.h | <reponame>nozomi1773/trafficserver
/** @file
*
* A brief file description
*
* @section license License
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyrigh... |
nozomi1773/trafficserver | proxy/http3/QPACK.h | /** @file
*
* A brief file description
*
* @section license License
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... |
sjinks/qt_socketconnector | src/socketconnector_p.h | #ifndef SOCKETCONNECTOR_P_H
#define SOCKETCONNECTOR_P_H
#include <QtNetwork/QHostAddress>
#include <QtNetwork/QHostInfo>
#include "qt4compat.h"
#if QT_VERSION >= 0x040400
QT_FORWARD_DECLARE_CLASS(QSocketNotifier)
QT_FORWARD_DECLARE_CLASS(QTimer)
#else
class QSocketNotifier;
class QTimer;
#endif
class SocketConnector... |
sjinks/qt_socketconnector | src/socketconnector.h | <gh_stars>0
#ifndef SOCKETCONNECTOR_H
#define SOCKETCONNECTOR_H
#include <QtCore/QObject>
#include <QtNetwork/QAbstractSocket>
#include <QtNetwork/QHostInfo>
#if QT_VERSION < 0x050000
typedef qptrdiff qintptr;
#endif
class SocketConnectorPrivate;
class SocketConnector : public QObject {
Q_OBJECT
public:
SocketCon... |
sjinks/qt_socketconnector | qtscriptgenerator/master.h | #ifndef MASTER_H
#define MASTER_H
#include <QtCore/QObject>
#include <QtNetwork/QAbstractSocket>
#include <QtNetwork/QHostAddress>
#include "../src/socketconnector.h"
#endif
|
ErikZhou/swig-example | swig-example.h | <filename>swig-example.h
void swig_example_hello();
void link_liba_hello();
|
batukov/AgentFabrix | c_src/agent_maths.c | <reponame>batukov/AgentFabrix
#include "erl_nif.h"
static ERL_NIF_TERM calc_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
int a;
if (!enif_get_int(env, argv[0], &a))
{
return enif_make_badarg(env);
}
a = a*2;
return enif_make_int(env, a);
}
static ErlNifFunc export_funcs[] = {
... |
zzqcn/udpi | src/dpi_api.c | /*
*------------------------------------------------------------------
* Copyright (c) 2018 Intel, Travelping and/or its affiliates.
* 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:
*
* ... |
zzqcn/udpi | src/dpi_cli.c | /*
*------------------------------------------------------------------
* Copyright (c) 2018 Intel, Travelping and/or its affiliates.
* 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:
*
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.