repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/util.h | <gh_stars>10-100
/*
* File : util.h
* This file is part of RT-Thread RTOS/WebNet Server
* COPYRIGHT (C) 2011, Shanghai Real-Thread Technology Co., Ltd
*
* All rights reserved.
*
* Change Logs:
* Date Author Notes
* 2011-08-02 Bernard the first version
*/
#ifndef __WEBNET_UTIL_H_... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_pm.c | #include <rthw.h>
#include <rtthread.h>
#include <stdint.h>
#include "sys_rtos.h"
#include "rtos_pub.h"
#include "power_save_pub.h"
extern void WFI(void);
extern UINT32 mcu_power_save(UINT32 sleep_tick);
/*
0: normal
1: cpu sleep. -4mA
2: RF sleep. 27mA
3: RF+CPU sleep. 7mA
4: standby to reset. 7uA
*/
static char l... |
ghsecuritylab/bk7231_rtt_sdk | samples/rtcloud/port/rt_cld/rt_cld_port.c | /*
* File : rt_cld_port.c
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-02-06 chenyong the first version
* 2018-03-20 Murphy adapt to beken7231
*/
#include <stdio.h>
#include <string.h>
#include <board.h>
#... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_spi.c | #include <rtthread.h>
#include <rthw.h>
#include <rtdevice.h>
#include <stdio.h>
#include <string.h>
#include "drv_spi.h"
#ifdef BEKEN_USING_SPI
#define DBG_ENABLE
#define DBG_SECTION_NAME "[SPI]:"
#define DBG_LEVEL DBG_LOG
#include <rtdbg.h>
#define SPI_REG_BASE (0x00802700)
#define SPI_CTRL_RE... |
ghsecuritylab/bk7231_rtt_sdk | samples/airkiss_lan/airkiss_lan_raw.c | <gh_stars>10-100
/*
* File : airkiss_lan_raw.c
* A simple DHCP server implementation
*
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2011-2018, Shanghai Real-Thread Technology Co., Ltd
* http://www.rt-thread.com
*
* This program is free software; you can redistribute it and/or modify
... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/include/bk7011_cal_pub.h | <filename>beken378/func/include/bk7011_cal_pub.h
#ifndef _BK7011_CAL_PUB_H_
#define _BK7011_CAL_PUB_H_
#include "typedef.h"
typedef struct tmp_pwr_st {
UINT8 mod;
UINT8 pa;
UINT16 pwr_idx_shift;
} TMP_PWR_ST, *TMP_PWR_PTR;
extern void calibration_main(void);
extern INT32 rwnx_cal_load_trx_rcbekn_reg_val(voi... |
ghsecuritylab/bk7231_rtt_sdk | samples/ota/port/fal_cfg.h | /*
* File : fal_cfg.h
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-05-17 armink the first version
* 2018-05-30 MurphyZhao Adapted beken7231 board feature
*/
#ifndef _FAL_CFG_H_
#define _FAL_CFG_H_
#include ... |
ghsecuritylab/bk7231_rtt_sdk | beken378/common/generic.h | #ifndef _GENERIC_H_
#define _GENERIC_H_
#include <stdbool.h>
#include "include.h"
typedef void (*FUNCPTR)(void);
typedef void (*FUNC_1PARAM_PTR)(void *ctxt);
typedef void (*FUNC_2PARAM_PTR)(void *arg, uint8_t vif_idx);
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((... |
ghsecuritylab/bk7231_rtt_sdk | samples/airkiss_lan/weixin_config_custom.h | <filename>samples/airkiss_lan/weixin_config_custom.h<gh_stars>10-100
#ifndef __WEIXIN_CONFIG_CUSTOM_H__
#define __WEIXIN_CONFIG_CUSTOM_H__
extern const char *WEIXIN_DEVICE_TYPE; /* gh_xxxx 从微信获取: 公众号设置 ==> 帐号详情 ==> 原始ID */
extern const char *WEIXIN_PRODUCT_ID; /* 12345 设备功能 ==> 对应设备 ==> 产品详情 ==> 产品编号 */
#endif /... |
ghsecuritylab/bk7231_rtt_sdk | drivers/psram.c | /**
**************************************************************************************
* @file psram.c
* @brief Driver API PSRAM
*
* @author Aixing.Li
* @version V1.0.0
*
* © 2017 BEKEN Corporation Ltd. All rights reserved.
************************************************************************... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/components/lwp/lwp_memheap.h | /*
* File : lwp_memheap.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ve... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/src/clock.c | /*
* File : clock.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_spi_flash.c | #include <rtthread.h>
#include <rthw.h>
#ifdef BEKEN_USING_SPI_FLASH
#include "spi_flash.h"
#include "spi_flash_sfud.h"
#include "drv_spi.h"
int rt_hw_spi_flash_with_sfud_init(void)
{
if (RT_NULL == rt_sfud_flash_probe("spi_flash", "spi01"))
{
rt_kprintf("[spi_flash]:The spi flash probe failed !!!\n"... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_pwm.c | #include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
#include "typedef.h"
#include "drv_pwm.h"
#include "pwm.h"
#ifdef BEKEN_USING_PWM
struct _pwm_dev
{
struct rt_device parent;
};
static struct _pwm_dev pwm_dev;
static rt_err_t rt_pwm_control(rt_device_t dev, int cmd, void *args)
{
return pwm_ct... |
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/module/module_asp.c | <filename>packages/webnet/module/module_asp.c
/*
* File : module_asp.c
* This file is part of RT-Thread RTOS/WebNet Server
* COPYRIGHT (C) 2011, Shanghai Real-Thread Technology Co., Ltd
*
* All rights reserved.
*
* Change Logs:
* Date Author Notes
* 2011-08-02 Bernard the first ve... |
ghsecuritylab/bk7231_rtt_sdk | samples/peripheral/uart/app_uart.c | <filename>samples/peripheral/uart/app_uart.c
/*
* File : app_uart.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/include/power_save_pub.h | #ifndef _POWER_SAVE_PUB_H_
#define _POWER_SAVE_PUB_H_
#include "arch.h"
#include "rtos_pub.h"
#include "rw_pub.h"
#include "wlan_ui_pub.h"
//#define PS_DEBUG
#ifdef PS_DEBUG
#define PS_PRT os_printf
#define PS_WPRT os_printf
#define PS_DBG os_printf
#else
#define PS_PR... |
ghsecuritylab/bk7231_rtt_sdk | packages/rt_ota/ports/beken/rt_ota_flash_beken7231_port.c | /*
* File : rt_ota_flash_beken7231_port.c
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-01-26 armink the first version
* 2018-02-03 Murphy Adapted beken7231 board feature
* 2018-02-06 Murphy Fix ... |
ghsecuritylab/bk7231_rtt_sdk | packages/rt_ota/ports/stm32f2/rt_ota_cfg.h | /*
* File : rt_ota_cfg.h
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-01-23 armink the first version
*/
#ifndef _RT_OTA_CFG_H_
#define _RT_OTA_CFG_H_
#include <board.h>
/* ========================== Debug Configu... |
ghsecuritylab/bk7231_rtt_sdk | samples/airkiss/airkiss.c | <reponame>ghsecuritylab/bk7231_rtt_sdk
#include <rtthread.h>
#include <rtdevice.h>
#include <rthw.h>
#include <wlan_dev.h>
#include <wlan_mgnt.h>
#include "airkiss.h"
#include <stdio.h>
#include <sys/socket.h>
#define AIRKISS_PRINTF rt_kprintf
#define AIRKISS_SWITCH_TIMER rt_tick_from_millisecond(50) // ms
#def... |
ghsecuritylab/bk7231_rtt_sdk | applications/main.c | <gh_stars>10-100
/*
* File : main.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either... |
ghsecuritylab/bk7231_rtt_sdk | samples/webnet/cgi_led.c | <gh_stars>10-100
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <rtthread.h>
#include <webnet.h>
#include <module.h>
#include <rtdevice.h>
/*for readability */
#define LED_ON 0
#define LED_OFF 1
#define LED_COUNT (2)
static uint8_t led_value_buffer[LED_COUNT];
vo... |
ghsecuritylab/bk7231_rtt_sdk | packages/webclient/webclient.c | /*
* File : webclient.c
* COPYRIGHT (C) 2011-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2013-05-05 Bernard the first version
* 2013-06-10 Bernard fix the slow speed issue when download file.
* 2015-11-14 aozima add conte... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/func.c | #include "include.h"
#include "func_pub.h"
#include "intc.h"
#include "rwnx.h"
#include "uart_pub.h"
#include "lwip_intf.h"
#include "param_config.h"
#include "saradc_pub.h"
#if CFG_ROLE_LAUNCH
#include "role_launch.h"
#endif
#if CFG_SUPPORT_CALIBRATION
#include "bk7011_cal_pub.h"
#endif
#if CFG_UART_DEBUG
#include... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/components/lwp/lwp.h | /*
* File : lwp.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 ... |
ghsecuritylab/bk7231_rtt_sdk | drivers/board.c | /*
* File : board.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of th... |
ghsecuritylab/bk7231_rtt_sdk | test/test_pm.c | <reponame>ghsecuritylab/bk7231_rtt_sdk<filename>test/test_pm.c
#include <rthw.h>
#include <rtthread.h>
#include <stdint.h>
#include <stdlib.h>
extern int beken_pm_level;
extern int bk_wlan_dtim_rf_ps_mode_enable(void );
extern int bk_wlan_dtim_rf_ps_mode_need_disable(void);
extern int bk_wlan_mcu_ps_mode_enable(voi... |
ghsecuritylab/bk7231_rtt_sdk | packages/fal/samples/porting/fal_flash_sfud_port.c | /*
* File : fal_flash_sfud_port.c
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-01-26 armink the first version
*/
#include <fal.h>
#include <sfud.h>
extern sfud_flash sfud_norflash0;
static int read(long offset, ... |
ghsecuritylab/bk7231_rtt_sdk | packages/webclient/webclient.h | /*
* File : webclient.h
* COPYRIGHT (C) 2011-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2013-05-05 Bernard the first version
* 2013-06-10 Bernard fix the slow speed issue when download file.
* 2015-11-14 aozima add conte... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_gpio.h | #ifndef __DRV_GPIO_H__
#define __DRV_GPIO_H__
#include "gpio_pub.h"
int rt_hw_gpio_init(void);
int rt_hw_gpio_exit(void);
#endif |
ghsecuritylab/bk7231_rtt_sdk | drivers/wlan/drv_wlan_fast_connect.c | #include <rtthread.h>
#include <rtdevice.h>
#include <rthw.h>
#include <wlan_dev.h>
#include <wlan_mgnt.h>
#include "drv_wlan.h"
#include "drv_flash.h"
#include "drv_wlan_fast_connect.h"
#include "stdio.h"
extern uint16_t inet_chksum(void *dataptr, uint16_t len);
void flash_data_info_dump(wlan_fast_connect_t *data_in... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/hostapd-2.5/src/radius/radius.h | /*
* RADIUS message processing
* Copyright (c) 2002-2009, 2012, 2014, <NAME> <<EMAIL>>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RADIUS_H
#define RADIUS_H
#include <lwip/def.h>
/* RFC 2865 - RADIUS */
#ifdef _MSC_VER
#pragma pack(push, 1)... |
ghsecuritylab/bk7231_rtt_sdk | beken378/demo/ieee802_11_demo.c | #include "include.h"
#include "common.h"
#include "rwnx_config.h"
#include "app.h"
#if (NX_POWERSAVE)
#include "ps.h"
#endif //(NX_POWERSAVE)
#include "sa_ap.h"
#include "sa_station.h"
#include "main_none.h"
#include "sm.h"
#include "sys_rtos.h"
#include "rtos_pub.h"
#include "error.h"
#include "wlan_ui_pub.h"
#inc... |
ghsecuritylab/bk7231_rtt_sdk | samples/airkiss_lan/weixin_config_custom.c | <reponame>ghsecuritylab/bk7231_rtt_sdk<filename>samples/airkiss_lan/weixin_config_custom.c
#include "weixin_config_custom.h"
const char *WEIXIN_DEVICE_TYPE = "gh_21849de4fbc1";
const char *WEIXIN_PRODUCT_ID = "31033";
|
ghsecuritylab/bk7231_rtt_sdk | rt-thread/components/lwp/lwp.c | /*
* File : clock.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/components/drivers/usb/usbdevice/class/winusb.c | /*
* File : winusb.c
* COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team
*
* Change Logs:
* Date Author Notes
* 2017-11-16 ZYH first version
*/
#include <rthw.h>
#include <rtthread.h>
#include <rtservice.h>
#include <rtdevice.h>
#include <drivers/usb_device.h>
#include "winu... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/components/drivers/wlan/wlan_mgnt.c | /*
* RT-Thread Wi-Fi Device
*
* COPYRIGHT (C) 2014 - 2018, Shanghai Real-Thread Technology Co., Ltd
*
* This file is part of RT-Thread (http://www.rt-thread.org)
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publi... |
ghsecuritylab/bk7231_rtt_sdk | packages/pahomqtt/samples/mqtt_sample.c | <gh_stars>10-100
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <rtthread.h>
#include "paho_mqtt.h"
/**
* MQTT URI farmat:
* domain mode
* tcp://iot.eclipse.org:1883
*
* ipv4 mode
* tcp://192.168.10.1:1883
* ssl://192.168.10.1:1884
*
* ipv6 mode
* tcp://[fe80::20c:29ff:fe9a:a07e]:1883... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/hostapd_intf/hostapd_intf.c | #include "include.h"
#include "hostapd_intf.h"
#include "sk_intf.h"
#include "mem_pub.h"
#include "me_task.h"
#include "ke_event.h"
#include "fake_socket.h"
#include "uart_pub.h"
#include "ieee802_11_defs.h"
#include "driver.h"
#include "driver_beken.h"
#include "hostapd_cfg.h"
#include "rw_pub.h"
#include "drv_model_p... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/usb_plug/usb_plug.c | <reponame>ghsecuritylab/bk7231_rtt_sdk
#include "sys_rtos.h"
#include "rtos_pub.h"
#include "error.h"
#include "include.h"
#include "mem_pub.h"
#include "uart_pub.h"
#include "str_pub.h"
#include "sys_ctrl_pub.h"
#include "gpio_pub.h"
#include "usb_pub.h"
#include "net_param_pub.h"
#include "fake_clock_pub.h"
#if (CF... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/wlan_ui/wlan_ui.c | #include "include.h"
#include "wlan_ui_pub.h"
#include "rw_pub.h"
#include "vif_mgmt.h"
#include "sa_station.h"
#include "param_config.h"
#include "common/ieee802_11_defs.h"
#include "driver_beken.h"
#include "mac_ie.h"
#include "sa_ap.h"
#include "main_none.h"
#include "sm.h"
#include "mac.h"
#include "sm_task.h"
#inc... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/src/memleak.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "memleak.h"
#include <rtthread.h>
#ifdef MEM_LEAK_CHECK
typedef struct _user_memleak_t
{
const char thread[8];
const char function[16];
int line;
void* mem;
int size;
} user_memleak_t;
static user_memleak_t g_memleaks[MA... |
ghsecuritylab/bk7231_rtt_sdk | packages/fal/src/fal.c | <gh_stars>10-100
/*
* File : fal.c
* This file is part of FAL (Flash Abstraction Layer) package
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... |
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/wn_system.c | #include <rtthread.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "wn_system.h"
#if RT_USING_PSRAM
#include <drv_sdram.h>
void* wn_malloc(size_t size)
{
return sdram_malloc(size);
}
void wn_free(void *ptr)
{
sdram_free(ptr);
}
void* wn_realloc(void *ptr, size_t size)
{
return ... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/power_save/mcu_ps.c | #include "intc_pub.h"
#include "pwm_pub.h"
#include "rw_pub.h"
#include "rtos_pub.h"
#include "arm_arch.h"
#include "sys_ctrl_pub.h"
#include "mcu_ps.h"
#include "mcu_ps_pub.h"
#include "power_save_pub.h"
#include "ps_debug_pub.h"
#include "target_util_pub.h"
#include "icu_pub.h"
#include "fake_clock_pub.h"
#include "b... |
ghsecuritylab/bk7231_rtt_sdk | beken378/driver/sdcard/sdcard.c | #include "include.h"
#include "sys_rtos.h"
#include "error.h"
#if CFG_USE_SDCARD_HOST
#include "sdio_driver.h"
#include "rtos_pub.h"
#include "sys_rtos.h"
#include "sdcard.h"
#include "sdcard_pub.h"
#include "drv_model_pub.h"
#include "sys_ctrl_pub.h"
#include "mem_pub.h"
#include "arch.h"
#include "arm_arch.h"
#incl... |
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/module/module_index.c | <filename>packages/webnet/module/module_index.c
/*
* File : module_index.c
* This file is part of RT-Thread RTOS/WebNet Server
* COPYRIGHT (C) 2011, Shanghai Real-Thread Technology Co., Ltd
*
* All rights reserved.
*
* Change Logs:
* Date Author Notes
* 2011-08-02 Bernard the firs... |
ghsecuritylab/bk7231_rtt_sdk | packages/rt_ota/ports/temp/rt_ota_cfg.h | /*
* File : rt_ota_cfg.h
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-01-23 armink the first version
*/
#ifndef _RT_OTA_CFG_H_
#define _RT_OTA_CFG_H_
#include <board.h>
/* ========================== Debug Configu... |
ghsecuritylab/bk7231_rtt_sdk | packages/rt_ota/ports/stm32f2/rt_ota_flash_sfud_port.c | <reponame>ghsecuritylab/bk7231_rtt_sdk<gh_stars>10-100
/*
* File : rt_ota_flash_sfud_port.c
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-01-26 armink the first version
*/
#include <rt_ota_flash_dev.h>
#ifdef RT_OT... |
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/session.h | <filename>packages/webnet/session.h
/*
* File : session.h
* This file is part of RT-Thread RTOS/WebNet Server
* COPYRIGHT (C) 2011, Shanghai Real-Thread Technology Co., Ltd
*
* All rights reserved.
*
* Change Logs:
* Date Author Notes
* 2011-08-02 Bernard the first version
*/
#if... |
ghsecuritylab/bk7231_rtt_sdk | beken378/driver/ble/ble_pub/modules/ali_sdk/src/ais_sdk.c | /**
****************************************************************************************
*
* @file ais_sdk.c
*
* @brief ais SDK Module entry point
*
* @auth gang.cheng
*
* @date 2017.09.19
*
* Copyright (C) Beken 2009-2016
*
*
*************************************************************************... |
ghsecuritylab/bk7231_rtt_sdk | samples/airkiss_lan/airkiss_lan.c | <filename>samples/airkiss_lan/airkiss_lan.c<gh_stars>10-100
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <rthw.h>
#include <rtthread.h>
int airkiss_lan_init(void);
#ifdef RT_USING_DFS_NET
#include <sys/socket.h> // only dfs_net
#include <sys/select.h> // only dfs_n... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/rwnx_intf/rw_msdu.h | #ifndef _RW_MSDU_H_
#define _RW_MSDU_H_
#include "doubly_list.h"
#include "tx_swdesc.h"
#include "lwip/pbuf.h"
#include "rwnx.h"
#define MSDU_TX_MAX_CNT (32)
#define MSDU_RX_MAX_CNT (32)
#define ETH_ADDR_LEN 6 /* Octets in one ethernet addr */
static inline int is_broadc... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_flash.c | #include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
// #define DBG_ENABLE
#define DBG_SECTION_NAME "[FLASH]"
// #define DBG_LEVEL DBG_LOG
// #define DBG_LEVEL DBG_INFO
#define DBG_LEVEL DBG_WARNING
// #define DBG_LEVEL DBG_ERROR
#define DBG_COLOR
#include <rtdbg.h>
#ifdef BE... |
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/wn_system.h | #ifndef WN_SYSTEM_H__
#define WH_SYSTEM_H__
#include <stdint.h>
#include <stdlib.h>
#if RT_USING_PSRAM
void* wn_malloc(size_t size);
void wn_free(void *ptr);
void* wn_realloc(void *ptr, size_t size);
void* wn_tcm_malloc(size_t size);
void wn_tcm_free(void *ptr);
char *wn_strdup(const char *s1);
#else
#define wn_m... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/hostapd-2.5/hostapd/main_none.c | /*
* WPA Supplicant / Example program entrypoint
* Copyright (c) 2003-2005, <NAME> <<EMAIL>>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "include.h"
#include "uart_pub.h"
#include "includes.h"
#include "hostapd_cfg.h"
#include "common.h"
#inc... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/components/lwp/lwp_syscall.h | /*
* File : lwp_syscall.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ve... |
ghsecuritylab/bk7231_rtt_sdk | packages/fal/inc/fal.h | /*
* File : fal.h
* This file is part of FAL (Flash Abstraction Layer) package
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Founda... |
ghsecuritylab/bk7231_rtt_sdk | drivers/wlan/drv_wlan.h | #ifndef __DRV_WLAN_H__
#define __DRV_WLAN_H__
#define MAX_ADDR_LEN 6
enum STATION_MODE
{
NORMAL_MODE = 0,
ADVANCED_MODE = 1,
};
enum CONNECT_STATE
{
CONNECT_DONE = 0,
CONNECT_DOING = 1,
CONNECT_FAILED = 2,
};
struct beken_wifi_info
{
rt_uint8_t mac[MAX_ADDR_LEN];
rt_uint8_t st... |
ghsecuritylab/bk7231_rtt_sdk | samples/ota/port/fal_flash_beken7231_port.c | <reponame>ghsecuritylab/bk7231_rtt_sdk
/*
* File : fal_flash_stm32f2_port.c
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-01-26 armink the first version
*/
#include <fal.h>
#ifdef RT_FLASH_PORT_DRIVER_BEKEN
#includ... |
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/module/module_dav.c | <reponame>ghsecuritylab/bk7231_rtt_sdk<filename>packages/webnet/module/module_dav.c
/*
* File : module_dav.c
* This file is part of RT-Thread RTOS/WebNet Server
* COPYRIGHT (C) 2011, Shanghai Real-Thread Technology Co., Ltd
*
* All rights reserved.
*
* Change Logs:
* Date Author Notes
* 20... |
ghsecuritylab/bk7231_rtt_sdk | packages/fal/samples/porting/fal_cfg.h | /*
* File : fal_cfg.h
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-05-17 armink the first version
*/
#ifndef _FAL_CFG_H_
#define _FAL_CFG_H_
#include <rtconfig.h>
#include <board.h>
/* ===================== Flash... |
ghsecuritylab/bk7231_rtt_sdk | beken378/driver/security/security.h | <gh_stars>10-100
#ifndef _SEC_H_
#define _SEC_H_
#if (CFG_SOC_NAME == SOC_BK7221U)
#include "security_reg.h"
#include "sha.h"
#include "aes.h"
extern int is_secrity_sha_busy(void);
extern int is_secrity_rsa_busy(void);
extern int is_secrity_aes_busy(void);
int security_aes_init(SECURITY_AES_DRV_DESC *p_security_aes_d... |
ghsecuritylab/bk7231_rtt_sdk | libcpu/stack.c | /*
* File : stack.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2013, RT-Thread Develop Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author ... |
ghsecuritylab/bk7231_rtt_sdk | samples/webnet/cgi_calc.c | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <rtthread.h>
#include <webnet.h>
#include <module.h>
void cgi_calc_handler(struct webnet_session* session)
{
int a, b;
const char* mimetype;
struct webnet_request* request;
static const char* header = "<html><head>... |
ghsecuritylab/bk7231_rtt_sdk | samples/peripheral/uart/uart_sample.c | <reponame>ghsecuritylab/bk7231_rtt_sdk
/*
* File : main.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/audio/audio_intf.c | #include "include.h"
#include "arm_arch.h"
#if ((CFG_USE_AUDIO) && (CFG_SOC_NAME == SOC_BK7221U))
#include "audio_pub.h"
#include "mem_pub.h"
#include "drv_model_pub.h"
#include "sys_rtos.h"
#include "rtos_pub.h"
#include "error.h"
#if CFG_SUPPORT_ALIOS
#include "ll.h"
#endif
//#include "song.h"
#define AUD_INTF_D... |
ghsecuritylab/bk7231_rtt_sdk | samples/ota/http/http_client_ota.h | <reponame>ghsecuritylab/bk7231_rtt_sdk
/*
* File : http_client_ota.h
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-03-22 Murphy the first version
*/
#define HTTP_OTA_DEBUG 0
/* error level log */
#ifdef log_e
#unde... |
ghsecuritylab/bk7231_rtt_sdk | beken378/driver/security/aes.c | #include "sys_config.h"
#if (CFG_SOC_NAME == SOC_BK7221U)
#include "rtos_pub.h"
#include "uart_pub.h"
#include "str_pub.h"
#include "mem_pub.h"
#include "drv_model_pub.h"
#include "security_pub.h"
#include "security.h"
void *hal_aes_init(const u8 *key, size_t key_size)
{
SECURITY_AES_DRV_DESC *rk;
int res;
... |
ghsecuritylab/bk7231_rtt_sdk | applications/msh_evm.c | <filename>applications/msh_evm.c
/*
* File : msh_evm.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software... |
ghsecuritylab/bk7231_rtt_sdk | rt-thread/components/libc/compilers/newlib/libc.h | /*
* File : libc.h
* Brief : gcc libc header file
*
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free ... |
ghsecuritylab/bk7231_rtt_sdk | libcpu/interrupt.c | /*
* File : interrupt.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2013-2018, RT-Thread Development Team
*
*/
#include <rthw.h>
#include <rtthread.h>
#include "interrupt.h"
#include "intc.h"
#include "icu_pub.h"
#include "drv_model_pub.h"
extern rt_uint32_t rt_interrupt_nest;
rt_uint32_t rt_int... |
ghsecuritylab/bk7231_rtt_sdk | samples/ayla/port/beken/ayla_flash_port.h | <gh_stars>10-100
/*
* File : ayla_flash_port.h
* COPYRIGHT (C) 2012-2018, Shanghai Real-Thread Technology Co., Ltd
*
* Change Logs:
* Date Author Notes
* 2018-03-22 Murphy the first version
*/
#ifndef __AYLA_FLASH_PORT_H__
#define __AYLA_FLASH_PORT_H__
#include <rtthread.h>
#defi... |
ghsecuritylab/bk7231_rtt_sdk | beken378/func/temp_detect/temp_detect.h | <gh_stars>10-100
#ifndef __TEMP_DETECT_H__
#define __TEMP_DETECT_H__
typedef struct temp_detect_config_st
{
UINT16 last_detect_val;
UINT16 detect_intval;
UINT16 detect_thre;
UINT16 inital_data;
UINT16 dist_inital;
UINT32 detect_intval_change;
beken_timer_t detect_timer;
} TEMP_DETEC... |
ghsecuritylab/bk7231_rtt_sdk | packages/webclient/webclient_internal.h | #ifndef WEBCLIENT_INTERNAL_H__
#define WEBCLIENT_INTERNAL_H__
#include <rtthread.h>
#define web_malloc rt_malloc
#define web_free rt_free
#define web_realloc rt_realloc
#define web_calloc rt_calloc
#endif
|
ghsecuritylab/bk7231_rtt_sdk | beken378/driver/include/ble_pub.h | <gh_stars>10-100
#ifndef _BLE_PUB_H_
#define _BLE_PUB_H_
#include "rtos_pub.h"
#if defined(SUPPORT_MIDEA_BLE)
#include "msm_ble_adapter.h"
#endif
#define BLE_SUCCESS (0)
#define BLE_FAILURE (1)
#define BLE_DEV_NAME "ble"
#define BLE_CMD_MAGIC (0xe2a0000)
#define MAX_ADV_DATA_LEN (0x1F)
e... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_icu.h | <reponame>ghsecuritylab/bk7231_rtt_sdk
#ifndef __DRV_ICU_H__
#define __DRV_ICU_H__
#include "icu_pub.h"
int rt_hw_icu_init(void);
int rt_hw_icu_exit(void);
#endif |
ghsecuritylab/bk7231_rtt_sdk | packages/webnet/module/module_cgi.c | /*
* File : module_cgi.c
* This file is part of RT-Thread RTOS/WebNet Server
* COPYRIGHT (C) 2011, Shanghai Real-Thread Technology Co., Ltd
*
* All rights reserved.
*
* Change Logs:
* Date Author Notes
* 2011-08-02 Bernard the first version
*/
#include <webnet.h>
#include <string... |
ghsecuritylab/bk7231_rtt_sdk | drivers/drv_flash.h | <gh_stars>10-100
#ifndef __DRV_FLASH_H__
#define __DRV_FLASH_H__
#include "typedef.h"
#include "flash_pub.h"
int beken_flash_init(void);
void beken_flash_read(rt_uint32_t address, void *data, rt_uint32_t size);
void beken_flash_write(rt_uint32_t address, const void *data, rt_uint32_t size);
void beken_flash_erase(rt_... |
franklee1/lasthope | src/obj/build.h | // No build information available
#define BUILD_DATE "2018-05-07 13:34:30 +0000"
|
karlvr/libvmod-dynamic | src/vmod_dynamic.h | <filename>src/vmod_dynamic.h
/*-
* Copyright (c) 2016 Varnish Software AS
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* 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 cod... |
lualiliu/RG351P_input-test | sdl.c | /* GCW Zero input tester, code file for SDL 1.2 and 2.0
*
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at... |
moonwho101/DungeonStompDirectX11PixelShader | src/DXUT11/Optional/DXUTsettingsdlg.h | <gh_stars>0
//--------------------------------------------------------------------------------------
// File: DXUTSettingsDlg.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved
//--------------------------------------------------------------------------------------
#pragma once
#ifndef DXUT_SETTINGS_H
#... |
moonwho101/DungeonStompDirectX11PixelShader | src/XAudio2Versions.h | //--------------------------------------------------------------------------------------
// File: XAudio2Versions.h
//
// Defines preprocessor symbols to distinguish between different versions of XAudio2,
// and includes the appropriate header files for the XAudio2 version used.
//
// Copyright (c) Microsoft Corporatio... |
PipeWire/pipewire | spa/include/spa/node/type-info.h | /* Simple Plugin API
*
* Copyright © 2018 <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, ... |
PipeWire/pipewire | test/test-context.c | /* PipeWire
*
* Copyright © 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, modify, merge, pu... |
PipeWire/pipewire | pipewire-v4l2/src/pipewire-v4l2.c | /* PipeWire
*
* Copyright © 2021 <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, pu... |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_4/Number_1/Number_1/funcFor4.1.h | <filename>Semestr_1/HomeWork_4/Number_1/Number_1/funcFor4.1.h
#pragma once
const int bitInt = 32;
void translationIntoAdditionalCode(const int number, bool* mas);
void printBinary(bool *binary);
void sumAdditionalCode(bool* first, bool* second, bool* sum);
int translationIntoDecimal(bool* mas); |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_6/Number_1/Number_1/FunctionFor6.1.h | <reponame>SaveliyLipaev/HomeWork<filename>Semestr_1/HomeWork_6/Number_1/Number_1/FunctionFor6.1.h
#pragma once
#include <string>
//The function returns true if the char is a character from 0..9
bool isNumber(const char &symbol);
//The function returns true if the char is a character "+,-,*,/"
bool isOperator(const c... |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_4/Number_3/Number_3/FuncFor4.3.h | <filename>Semestr_1/HomeWork_4/Number_3/Number_3/FuncFor4.3.h
#pragma once
struct Contact;
void addNote(Contact *mas, const int numberOldNote, int &numberNewNote);
void interactiveWindow(void);
void printNote(Contact *mas, const int numberOldNote, const int numberNewNote);
void saveNewNote(Contact *mas, int &numbe... |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_7/Number_1/Number_1/BST.h | #pragma once
struct BST;
//returns the address for the allocated memory for the BST structure
BST *createBST();
//returns true if the tree is empty
bool isEmpty(BST *tree);
//prints dozens in descending order
void printDecreasing(BST *tree);
//prints dozens in increasing order
void printIncreasing(BST *tree);
//t... |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_9/Number_1/Number_1/ListFor9.1.h | #pragma once
#include <string>
struct NodeList;
struct List;
//A function that returns a pointer to the allocated memory for the List type
List *createList();
//returns the address of the found node if not found returns nullptr
NodeList* findNode(List *&list, const std::string &str);
//The function returns true if ... |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_11/Number_2/Number_2/Graph.h | #pragma once
struct Graph;
//creates a graph with the given number vertices
Graph* createGraph(const int numberNode);
//add arc
void addArc(Graph *graph, const int firstVertex, const int secondVertex, const int value);
//forms the minimum spanning tree,
//if you pass true, then print out the edges belonging to thi... |
SaveliyLipaev/HomeWork | test/ZachetTest/zachetTest_3/zachetTest_3/funcForTask.h | #pragma once
void bypass(int **graph, bool *visitedVertex, int index, int quantityArcs, int quantityVertex, int currentVertex);
bool isGoodVertex(bool *visitedVertex, int quantityVertex);
void findGoodVertex(int **graph, int quantityVertex, int quantityArc); |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_5/Number_1/Number_1/InteractiveWindow.h | #pragma once
void interactiveWindows(SortedList *list);
void addNode(SortedList *list);
void deleteNode(SortedList *list);
void printNodes(SortedList *list);
bool test();
|
SaveliyLipaev/HomeWork | test/ZachetTest/zachetTest_2/zachetTest_2/priorityQueue.h | <reponame>SaveliyLipaev/HomeWork<filename>test/ZachetTest/zachetTest_2/zachetTest_2/priorityQueue.h
#pragma once
struct PriorityQueue;
PriorityQueue *createPriorityQueue();
bool isEmpty(PriorityQueue *queue);
void enqueue(PriorityQueue *queue, const int key, const int data);
void deletePriorityQueue(PriorityQueue *&q... |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_5/Number_2/Number_2/test.h | #pragma once
bool test();
int forTesting(const int warriors, const int step);
|
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_5/Number_1/Number_1/sortedList.h | #pragma once
struct SortedList;
SortedList * createdSortedList();
bool isEmpty(SortedList *list);
void pushList(SortedList *list, const int data);
void printList(SortedList *list);
void deleteElement(SortedList *list, int data);
void deleteList(SortedList *list);
bool checkSortingList(SortedList *list); |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_6/Number_2/Number_2/FunctionFor6.2.h | #pragma once
#include <string>
//returns true if opening bracket
bool isOpeningBracket(const char &symbol);
//returns true if closing bracket
bool isClosingBracket(const char &symbol);
//returns true if family bracket
bool isFamilyBracket(const char &symbol1, const char &symbol2);
//the function returns true if t... |
SaveliyLipaev/HomeWork | Semestr_1/HomeWork_6/Number_3/Number_3/infixToPostfixTranslation.h | #pragma once
#include <string>
//function returns true if the character was an operator
bool isOperator(const char &symbol);
//function returns true if the character was an number
bool isNumber(const char &symbol);
//determines the priority of the operation, if it is "+" or "-" it returns 1, if "*" or "/" it retur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.