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 |
|---|---|---|---|---|---|
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#ifndef _HAL_OTG_H_
#define _HAL_OTG_H_
#include "ameba_otg.h"
#include... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/hal_otg.h | C | apache-2.0 | 351 |
#ifndef _HCD_H_
#define _HCD_H_
struct hc_driver {
const char *description; /* "ehci-hcd" etc */
const char *product_desc; /* product/vendor string */
size_t hcd_priv_size; /* size of private data */
/* irq handler */
//irqreturn_t (*irq) (struct usb_hcd *hcd);
int flags;
#def... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/hcd.h | C | apache-2.0 | 8,244 |
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Lennart Augustsson (lennart@augustsson.net) at
* Carlstedt Research & Technology.
*
* Redistribution and use in source and binary forms, with or without
* ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/usb.h | C | apache-2.0 | 66,641 |
/*
* This file holds USB constants and structures that are needed for USB
* device APIs. These are used by the USB device model, which is defined
* in chapter 9 of the USB 2.0 specification. Linux has several APIs in C
* that need these:
*
* - the master/host side Linux-USB kernel driver API;
* - the "usbfs" u... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/usb_ch9.h | C | apache-2.0 | 16,060 |
#ifndef _USB_ERRNO_H
#define _USB_ERRNO_H
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted system call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/usb_errno.h | C | apache-2.0 | 6,737 |
#ifndef __LINUX_USB_ULINKER_H
#define __LINUX_USB_ULINKER_H
//#include "linux/autoconf.h"
//#ifndef CONFIG_RTL_ULINKER_CUSTOMIZATION
#if 1//ModifiedByJD
#define ULINKER_ETHER_VID 0x0BDA
#define ULINKER_ETHER_PID 0x8195
#define ULINKER_MANUFACTURER "Realtek Semicoonductor Corp."
#define ULINKER_WINTOOLS_GUID... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/usb_ulinker.h | C | apache-2.0 | 2,750 |
/**
******************************************************************************
* @file rtl8721d_bootcfg.c
* @author
* @version V1.0.0
* @date 2018-09-12
* @brief This file provides firmware functions to manage the following
* functionalities:
* - memory layout config
**... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721d_bootcfg.c | C | apache-2.0 | 3,511 |
/**
******************************************************************************
* @file rtl8721d_ipccfg.c
* @author
* @version V1.0.0
* @date 2016-05-17
* @brief This file provides configurations for KM0 or KM4 IPC init
***************************************************************************... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721d_ipccfg.c | C | apache-2.0 | 6,616 |
/**
******************************************************************************
* @file rtl8721d_wificfg.c
* @author
* @version V1.0.0
* @date 2016-05-17
* @brief This file provides firmware functions to manage the wifi configration
*************************************************************... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721d_wificfg.c | C | apache-2.0 | 1,009 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "ameba_soc.h"
BOOT_RAM_DATA_SECTION
const TZ_CFG_TypeDef tz_co... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721dhp_boot_trustzonecfg.c | C | apache-2.0 | 941 |
/**
******************************************************************************
* @file rtl8721dlp_intfcfg.c
* @author
* @version V1.0.0
* @date 2016-05-17
* @brief This file provides firmware functions to manage the following
* functionalities:
* - uart mbed function confi... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721dhp_intfcfg.c | C | apache-2.0 | 2,271 |
/**
******************************************************************************
* @file rtl8721dlp_flashcfg.c
* @author
* @version V1.0.0
* @date 2018-09-12
* @brief This file provides firmware functions to manage the following
* functionalities:
* - flash function config
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721dlp_flashcfg.c | C | apache-2.0 | 5,234 |
/**
******************************************************************************
* @file rtl8721dlp_intfcfg.c
* @author
* @version V1.0.0
* @date 2016-05-17
* @brief This file provides firmware functions to manage the following
* functionalities:
* - uart mbed function conf... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721dlp_intfcfg.c | C | apache-2.0 | 1,024 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721dlp_pinmapcfg.c | C | apache-2.0 | 6,901 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usrcfg/rtl8721dlp_pinmapcfg_qfn88_evb_v1.c | C | apache-2.0 | 7,078 |
/**
******************************************************************************
* @file rtl8721d_ota.c
* @author
* @version V1.0.0
* @date 2016-12-19
* @brief This file contains the code which is used to update firmware over the air(OTA) in local area network
*
* @verbatim
*
* ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/misc/rtl8721d_ota.c | C | apache-2.0 | 60,268 |
#ifndef _RTL_LIB_ROM_H_
#define _RTL_LIB_ROM_H_
#include "memproc.h"
#include "strproc.h"
#include "diag.h"
#endif /* _RTL_LIB_ROM_H_ */
| YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/include/rt_lib_rom.h | C | apache-2.0 | 140 |
#ifndef _RTL_LIB_H_
#define _RTL_LIB_H_
#include "memproc.h"
#include "strproc.h"
#include "diag.h"
#endif /* _RTL_LIB_H_ */
| YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/include/rtl_lib.h | C | apache-2.0 | 127 |
include $(MAKE_INCLUDE_GEN)
.PHONY: all clean
MODULE_IFLAGS = -I./include
#*****************************************************************************#
# Object FILE LIST #
#*****************************************************************************#
#... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/Makefile | Makefile | apache-2.0 | 1,380 |
#include <section_config.h>
#include <basic_types.h>
LIBC_ROM_TEXT_SECTION
_LONG_CALL_
u8 _char2num(u8 ch)
{
if((ch>='0')&&(ch<='9'))
return ch - '0';
else if ((ch>='a')&&(ch<='f'))
return ch - 'a' + 10;
else if ((ch>='A')&&(ch<='F'))
return ch - 'A' + 10;
else
return 0xff;
}
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/char2num.c | C | apache-2.0 | 558 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
#include <stdarg.h>
#include "ameba_soc.h"
#inc... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/diag.c | C | apache-2.0 | 8,126 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#ifndef _DIAG_H_
#define _DIAG_H_
#include "platform_autoconf.h"
#inclu... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/diag.h | C | apache-2.0 | 4,869 |
#include <_ansi.h>
//#include <../libc/rom/ctype/local.h>
/* internal function to compute width of wide char. */
int _EXFUN (__wcwidth, (wint_t));
/* Defined in locale/locale.c. Returns a value != 0 if the current
language is assumed to use CJK fonts. */
int __locale_cjk_lang (void);
/*
Taken from glibc:
A... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/local.h | C | apache-2.0 | 692 |
/*
FUNCTION
<<memchr>>---find character in memory
INDEX
memchr
ANSI_SYNOPSIS
#include <string.h>
void *memchr(const void *<[src]>, int <[c]>, size_t <[length]>);
TRAD_SYNOPSIS
#include <string.h>
void *memchr(<[src]>, <[c]>, <[length]>)
void *<[src]>;
void *<[c]>;
size_t <[length]>;
DESCRIPTION
This funct... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/memchr.c | C | apache-2.0 | 3,393 |
/*
FUNCTION
<<memcmp>>---compare two memory areas
INDEX
memcmp
ANSI_SYNOPSIS
#include <string.h>
int memcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
TRAD_SYNOPSIS
#include <string.h>
int memcmp(<[s1]>, <[s2]>, <[n]>)
void *<[s1]>;
void *<[s2]>;
size_t <[n]>;
DESCRIPTION
This function compare... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/memcmp.c | C | apache-2.0 | 2,465 |
/*
FUNCTION
<<memcpy>>---copy memory regions
ANSI_SYNOPSIS
#include <string.h>
void* memcpy(void *restrict <[out]>, const void *restrict <[in]>,
size_t <[n]>);
TRAD_SYNOPSIS
#include <string.h>
void *memcpy(<[out]>, <[in]>, <[n]>
void *<[out]>;
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/memcpy.c | C | apache-2.0 | 2,772 |
/*
FUNCTION
<<memmove>>---move possibly overlapping memory
INDEX
memmove
ANSI_SYNOPSIS
#include <string.h>
void *memmove(void *<[dst]>, const void *<[src]>, size_t <[length]>);
TRAD_SYNOPSIS
#include <string.h>
void *memmove(<[dst]>, <[src]>, <[length]>)
void *<[dst]>;
void *<[src]>;
size_t <[length]>;
DES... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/memmove.c | C | apache-2.0 | 3,423 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#ifndef _MEM_PROC_H_
#define _MEM_PROC_H_
#include <basic_types.h>
/* ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/memproc.h | C | apache-2.0 | 843 |
/*
FUNCTION
<<memset>>---set an area of memory
INDEX
memset
ANSI_SYNOPSIS
#include <string.h>
void *memset(void *<[dst]>, int <[c]>, size_t <[length]>);
TRAD_SYNOPSIS
#include <string.h>
void *memset(<[dst]>, <[c]>, <[length]>)
void *<[dst]>;
int <[c]>;
size_t <[length]>;
DESCRIPTION
This function convert... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/memset.c | C | apache-2.0 | 2,264 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#ifndef _RTL_PRINTF_H_
#define _RTL_PRINTF_H_
#define LONGFLAG 0... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/printf.h | C | apache-2.0 | 880 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "ameba_soc.h"
HAL_ROM_BSS_SECTION u32 rand_seed[4]; //z1, z2, ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/rand.c | C | apache-2.0 | 1,783 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
extern u32 rand_seed[4]; //z1, z2, z3, z4,
extern u32 rand_first;
u32
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/rand.h | C | apache-2.0 | 338 |
#*****************************************************************************#
# ROM Object FILE LIST #
#*****************************************************************************#
SYS_ROM_OBJS = diag.o \
memcmp.o \
memcpy.o \
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/rom_lib.mk | Makefile | apache-2.0 | 377 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/sscanf.c | C | apache-2.0 | 9,480 |
/* Byte-wise substring search, using the Two-Way algorithm.
* Copyright (C) 2008, 2010 Eric Blake
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
/* Before including this file, you need to include <string.h>, and define:
RESULT_T... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/str-two-way.h | C | apache-2.0 | 14,049 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/stratoi.c | C | apache-2.0 | 778 |
/*
FUNCTION
<<strcat>>---concatenate strings
INDEX
strcat
ANSI_SYNOPSIS
#include <string.h>
char *strcat(char *restrict <[dst]>, const char *restrict <[src]>);
TRAD_SYNOPSIS
#include <string.h>
char *strcat(<[dst]>, <[src]>)
char *<[dst]>;
char *<[src]>;
DESCRIPTION
<<strcat>> appends a copy of the string ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strcat.c | C | apache-2.0 | 2,336 |
/*
FUNCTION
<<strchr>>---search for character in string
INDEX
strchr
ANSI_SYNOPSIS
#include <string.h>
char * strchr(const char *<[string]>, int <[c]>);
TRAD_SYNOPSIS
#include <string.h>
char * strchr(<[string]>, <[c]>);
const char *<[string]>;
int <[c]>;
DESCRIPTION
This function finds the first occurence... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strchr.c | C | apache-2.0 | 2,924 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strcmp.c | C | apache-2.0 | 3,289 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strcpy.c | C | apache-2.0 | 2,884 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/stricmp.c | C | apache-2.0 | 1,775 |
/*
FUNCTION
<<strlen>>---character string length
INDEX
strlen
ANSI_SYNOPSIS
#include <string.h>
size_t strlen(const char *<[str]>);
TRAD_SYNOPSIS
#include <string.h>
size_t strlen(<[str]>)
char *<[src]>;
DESCRIPTION
The <<strlen>> function works out the length of the string
starting at <<*<[str]>>> by coun... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strlen.c | C | apache-2.0 | 1,912 |
/*
FUNCTION
<<strncat>>---concatenate strings
INDEX
strncat
ANSI_SYNOPSIS
#include <string.h>
char *strncat(char *restrict <[dst]>, const char *restrict <[src]>,
size_t <[length]>);
TRAD_SYNOPSIS
#include <string.h>
char *strncat(<[dst]>, <[src]>, <[length]>)
char *<[dst]>;
char *<[src]... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strncat.c | C | apache-2.0 | 2,625 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strncmp.c | C | apache-2.0 | 3,686 |
/*
FUNCTION
<<strncpy>>---counted copy string
INDEX
strncpy
ANSI_SYNOPSIS
#include <string.h>
char *strncpy(char *restrict <[dst]>, const char *restrict <[src]>,
size_t <[length]>);
TRAD_SYNOPSIS
#include <string.h>
char *strncpy(<[dst]>, <[src]>, <[length]>)
char *<[dst]>;
char *<[src]... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strncpy.c | C | apache-2.0 | 2,839 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strnlen.c | C | apache-2.0 | 648 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strpbrk.c | C | apache-2.0 | 965 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#ifndef _STRPROC_H_
#define _STRPROC_H_
#include <stddef.h> /* for size... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strproc.h | C | apache-2.0 | 2,868 |
/* BSD strsep function */
/* Copyright 2002, Red Hat Inc. */
/* undef STRICT_ANSI so that strsep prototype will be defined */
#undef __STRICT_ANSI__
#include <section_config.h>
#include <basic_types.h>
#include <string.h>
#include <_ansi.h>
#include <reent.h>
extern char *__strtok_r(char *, const char *, char **,... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strsep.c | C | apache-2.0 | 493 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strstr.c | C | apache-2.0 | 3,884 |
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> /* Compiler defns such as size_t, NULL etc. */
#include "strproc.h"
#include "section_config.h"
#include "diag.h"
#include "ameba_soc.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ig... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtod.c | C | apache-2.0 | 6,129 |
/*
FUNCTION
<<strtod>>, <<strtof>>---string to double or float
INDEX
strtod
INDEX
_strtod_r
INDEX
strtof
ANSI_SYNOPSIS
#include <stdlib.h>
double strtod(const char *restrict <[str]>, char **restrict <[tail]>);
float strtof(const char *restrict <[str]>, char **restrict <[tail]>);
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtod_bk.c | C | apache-2.0 | 28,211 |
/*
FUNCTION
<<strtok>>, <<strtok_r>>, <<strsep>>---get next token from a string
INDEX
strtok
INDEX
strtok_r
INDEX
strsep
ANSI_SYNOPSIS
#include <string.h>
char *strtok(char *restrict <[source]>,
const char *restrict <[delimiters]>)
char *strtok_r(char *restrict <[source]>,
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtok.c | C | apache-2.0 | 3,401 |
/*
* Copyright (c) 1988 Regents of the University of California.
* 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
* ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtok_r.c | C | apache-2.0 | 2,838 |
/*
FUNCTION
<<strtol>>---string to long
INDEX
strtol
INDEX
_strtol_r
ANSI_SYNOPSIS
#include <stdlib.h>
long strtol(const char *restrict <[s]>, char **restrict <[ptr]>,int <[base]>);
long _strtol_r(void *<[reent]>,
const char *restrict <[s]>, char **restrict <[ptr]>,int <... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtol.c | C | apache-2.0 | 7,712 |
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> /* Compiler defns such as size_t, NULL etc. */
#include "strproc.h"
#include "section_config.h"
#include "diag.h"
#include "ameba_soc.h"
/**
* _strtol - convert a string to a signed long
* @cp: The start of the string
* @endp: A pointer... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtol_bk.c | C | apache-2.0 | 699 |
/*
FUNCTION
<<strtoul>>---string to unsigned long
INDEX
strtoul
INDEX
_strtoul_r
ANSI_SYNOPSIS
#include <stdlib.h>
unsigned long strtoul(const char *restrict <[s]>, char **restrict <[ptr]>,
int <[base]>);
unsigned long _strtoul_r(void *<[reent]>, const char *restrict... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtoul.c | C | apache-2.0 | 6,917 |
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> /* Compiler defns such as size_t, NULL etc. */
#include "strproc.h"
#include "section_config.h"
#include "diag.h"
#include "ameba_soc.h"
/* Minimum and maximum values a `signed long int' can hold.
(Same as `int'). */
#ifndef __LONG_MAX__
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strtoul_bk.c | C | apache-2.0 | 2,051 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "basic_types.h"
#include <stdarg.h>
#include <stddef.h> ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/strupr.c | C | apache-2.0 | 750 |
/*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#ifndef _VA_LIST_H_
#define _VA_LIST_H_
#include "platform_autoconf.h"
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/va_list.h | C | apache-2.0 | 1,203 |
/*
* FreeRTOS Kernel V10.2.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/project/realtek_amebaD_cm4_gcc_verification/inc/FreeRTOSConfig.h | C | apache-2.0 | 7,130 |
#ifndef MAIN_H
#define MAIN_H
#include <autoconf.h>
#include "platform_stdlib.h"
#ifndef CONFIG_WLAN
#define CONFIG_WLAN 1
#endif
/* Header file declaration*/
void wlan_network(void);
extern int mbedtls_platform_set_calloc_free(
void * (*calloc_func)( unsigned int, unsigned int ),
void (*free_func)( void * )
);
... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/project/realtek_amebaD_cm4_gcc_verification/inc/main.h | C | apache-2.0 | 3,060 |
/******************************************************************************
*
* Copyright(c) 2007 - 2021 Realtek Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the Licen... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/project/realtek_amebaD_cm4_gcc_verification/inc/platform_autoconf.h | C | apache-2.0 | 3,036 |
/**
******************************************************************************
*This file contains general configurations for ameba platform
******************************************************************************
*/
#ifndef __PLATFORM_OPTS_H__
#define __PLATFORM_OPTS_H__
#include "platform_autoconf.h"
#... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/project/realtek_amebaD_cm4_gcc_verification/inc/platform_opts.h | C | apache-2.0 | 13,297 |
#ifndef __PLATFORM_OPTS_BT_H__
#define __PLATFORM_OPTS_BT_H__
#if defined CONFIG_BT_CENTRAL && CONFIG_BT_CENTRAL
#define CONFIG_BT_USER_COMMAND 0
#endif
#endif // __PLATFORM_OPTS_BT_H__
| YifuLiu/AliOS-Things | hardware/chip/rtl872xd/sdk/project/realtek_amebaD_cm4_gcc_verification/inc/platform_opts_bt.h | C | apache-2.0 | 190 |
#!/bin/sh
echo "test bash script..." | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/test.sh | Shell | apache-2.0 | 37 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <aos/kernel.h>
#include "yunit.h"
#include "cutest/cut.h"
#ifndef SYSINFO_ARCH
#define SYSINFO_ARCH "unknown"
#endif
#ifndef SYSINFO_MCU
#define SYSINFO_MCU "unknown"
#endif
#ifndef SYSINFO_DEVICE_NAME
#define SYSINFO_DEVICE_NAME... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/test/aos_test.c | C | apache-2.0 | 22,830 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include "cut.h"
struct cut_runtime cut;
static void filter(int argc, char** argv)
{
int i = 0;
struct cut_case *c = NULL;
if(argc==2 && 0==strcmp(argv[1], "all"))
return;
for (i = 0; i < cut.ccnt_total; i++) {
c = cut.c... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/test/cutest/cut.c | C | apache-2.0 | 4,195 |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef __CUT_H__
#define __CUT_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <string.h>
#define cut_printf printf
#define cut_snprintf snprintf
#define cut_ma... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/test/cutest/cut.h | C | apache-2.0 | 8,362 |
@echo off
DownloadServer 8082 New_Project.bin
set /p DUMMY=Press Enter to Continue ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/tools/DownloadServer(HTTP)/start.bat | Batchfile | apache-2.0 | 86 |
@echo off
DownloadServer 8082 ota.bin
set /p DUMMY=Press Enter to Continue ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/tools/DownloadServer/start.bat | Batchfile | apache-2.0 | 78 |
@echo off
setlocal enableDelayedExpansion
REM patch files to sdk (for customer)
REM Owen Chiu
echo ... patch files to sdk ...
set FILE_LIST=patch_list
set SDK_PATH=..\..
set UNZIP_PATH=unzip_tmp
echo Please drag in the patch file you want to use:
set /p PATCH_PATH=
if NOT "%PATCH_PATH:~-4%" == ".zip" (
echo Not ... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/tools/autopatch/auto_patch.bat | Batchfile | apache-2.0 | 3,525 |
#include "autoconf.h"
#if !defined(CONFIG_PLATFORM_8195A) && !defined(CONFIG_PLATFORM_8711B)
#include <flash/stm32_flash.h>
#if defined(STM32F2XX)
#include <stm32f2xx_flash.h>
#elif defined(STM32F4XX)
#include <stm32f4xx_flash.h>
#elif defined(STM32f1xx)
#include <stm32f10x_flash.h>
#endif
#include "cloud_updater.h... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/tools/file_check_sum/file_checksum.c | C | apache-2.0 | 1,932 |
SET TOOLS_FOLDER=%~dp0
%TOOLS_FOLDER%\mklittlefs.exe -c %TOOLS_FOLDER%\..\\prebuild\\data\\ -d 5 -b 4096 -p 256 -s 684032 %TOOLS_FOLDER%\..\\prebuild\\littlefs.bin
| YifuLiu/AliOS-Things | hardware/chip/rtl872xd/tools/genfs.bat | Batchfile | apache-2.0 | 165 |
#!/usr/bin/env bash
TOOLS_FOLDER=$(dirname "$0")
if [ "$(uname)" = "Darwin" ]; then
${TOOLS_FOLDER}/mklittlefs_osx -c ${TOOLS_FOLDER}/../prebuild/data/ -d 5 -b 4096 -p 256 -s 684032 ${TOOLS_FOLDER}/../prebuild/littlefs.bin
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
${TOOLS_FOLDER}/mklittlefs_linux -c... | YifuLiu/AliOS-Things | hardware/chip/rtl872xd/tools/genfs.sh | Shell | apache-2.0 | 500 |
/*
* * Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include "aos/debug.h"
#include <ck_usart.h>
/* use for printk */
int alios_debug_print(const char *buf, int size)
{
uint32_t timecount = 0;
uint32_t trans_num = 0;
uint8_t *ch = (uint8_t *)buf;... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/aos/aos.c | C | apache-2.0 | 566 |
/*
* Copyright (c) 2001-2003 Swedish Institute of Computer Science.
* 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 not... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/aos/arch/cc.h | C | apache-2.0 | 3,286 |
/**
******************************************************************************
* @file lwipopts.h
* @author MCD Application Team
* @version V1.0.0
* @date 11/20/2009
* @brief lwIP Options Configuration.
* This file is based on Utilities\lwip-1.3.1\src\include\lwip\opt.h
* ... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/aos/arch/lwipopts.h | C | apache-2.0 | 15,218 |
#include "k_api.h"
#include "aos/hal/uart.h"
#include "drv_usart.h"
#include <csi_config.h>
#include <csi_core.h>
#include "pin.h"
#include "k_config.h"
#include "board.h"
#define MAX_BUF_UART_BYTES 128
kbuf_queue_t g_buf_queue_uart;
char g_buf_uart[MAX_BUF_UART_BYTES];
//static uint8_t rx_buffer[1];
extern usart_ha... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/hal/uart.c | C | apache-2.0 | 2,383 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_aes.h
* @brief Header File for AES Driver
* @version V1.0
* @date 02. June 2017
* @model aes
************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_aes.h | C | apache-2.0 | 9,072 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_common.h
* @brief Header File for Common Driver
* @version V1.0
* @date 19. Feb 2019
* @model common
****************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_common.h | C | apache-2.0 | 2,219 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_crc.h
* @brief Header File for CRC Driver
* @version V1.0
* @date 02. June 2017
* @model crc
************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_crc.h | C | apache-2.0 | 5,275 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_dmac.h
* @brief header file for dmac driver
* @version V1.0
* @date 02. June 2017
* @model dmac
**********************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_dmac.h | C | apache-2.0 | 6,690 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_eflash.h | C | apache-2.0 | 5,465 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_errno.h
* @brief header file for error num
* @version V1.2
* @date 22. May 2019
*******************************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_errno.h | C | apache-2.0 | 3,497 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_gpio.h
* @brief header file for gpio driver
* @version V1.0
* @date 02. June 2017
* @model gpio
**********************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_gpio.h | C | apache-2.0 | 4,697 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_i2s.h
* @brief header file for i2s driver
* @version V1.0
* @date 02. June 2017
* @model i2s
*************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_i2s.h | C | apache-2.0 | 10,025 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_iic.h | C | apache-2.0 | 10,318 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_intc.h | C | apache-2.0 | 6,099 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_irq.h
* @brief header File for IRQ Driver
* @version V1.0
* @date 21. Dec 2018
* @model irq
*************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_irq.h | C | apache-2.0 | 1,033 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_pmu.h
* @brief header file for pmu driver
* @version V1.0
* @date 02. June 2017
* @model pmu
*************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_pmu.h | C | apache-2.0 | 3,425 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_pwm.h
* @brief header file for pwm driver
* @version V1.0
* @date 19. Feb 2019
* @model pwm
**************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_pwm.h | C | apache-2.0 | 5,947 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_rsa.h
* @brief header file for rsa driver
* @version V1.0
* @date 02. June 2017
* @model rsa
*************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_rsa.h | C | apache-2.0 | 7,637 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_rtc.h
* @brief header file for rtc driver
* @version V1.0
* @date 02. June 2017
* @model rtc
*************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_rtc.h | C | apache-2.0 | 3,804 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_sha.h
* @brief header file for sha driver
* @version V1.0
* @date 02. June 2017
* @model sha
*************************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_sha.h | C | apache-2.0 | 5,255 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_spi.h | C | apache-2.0 | 13,638 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_spiflash.h
* @brief header file for spiflash driver
* @version V1.0
* @date 02. June 2017
* @model spiflash
**********************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_spiflash.h | C | apache-2.0 | 5,509 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_timer.h
* @brief header file for timer driver
* @version V1.0
* @date 02. June 2017
* @model timer
*******************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_timer.h | C | apache-2.0 | 4,003 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
/******************************************************************************
* @file drv_trng.h
* @brief header file for trng driver
* @version V1.0
* @date 02. June 2017
* @model trng
**********************************************... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_trng.h | C | apache-2.0 | 2,939 |
/*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*
* License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | YifuLiu/AliOS-Things | hardware/chip/smarth_rv64/include/drv_usart.h | C | apache-2.0 | 18,858 |