project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
70 lines
2.2 KiB
C
70 lines
2.2 KiB
C
/*
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2008-08-14 Bernard the first version
|
|
*/
|
|
#ifndef __STRING_H__
|
|
#define __STRING_H__
|
|
|
|
#include <rtthread.h>
|
|
#include <sys/types.h>
|
|
|
|
/* replace for standard string library */
|
|
#if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC)
|
|
|
|
#define ZEROPAD (1 << 0) /* pad with zero */
|
|
#define SIGN (1 << 1) /* unsigned/signed long */
|
|
#define PLUS (1 << 2) /* show plus */
|
|
#define SPACE (1 << 3) /* space if plus */
|
|
#define LEFT (1 << 4) /* left justified */
|
|
#define SPECIAL (1 << 5) /* 0x */
|
|
#define LARGE (1 << 6) /* use 'ABCDEF' instead of 'abcdef' */
|
|
|
|
#define _U 0x01 /* upper */
|
|
#define _L 0x02 /* lower */
|
|
#define _D 0x04 /* digit */
|
|
#define _C 0x08 /* cntrl */
|
|
#define _P 0x10 /* punct */
|
|
#define _S 0x20 /* white space (space/lf/tab) */
|
|
#define _X 0x40 /* hex digit */
|
|
#define _SP 0x80 /* hard space (0x20) */
|
|
|
|
void* memset(void *s, int c, size_t n);
|
|
void* memcpy(void *dest, const void *src, size_t n);
|
|
void* memmove(void *dest, const void *src, size_t n);
|
|
int memcmp(const void *s1, const void *s2, size_t n);
|
|
|
|
int tolower(int c);
|
|
int toupper(int c);
|
|
|
|
int strcmp (const char *s1, const char *s2);
|
|
int strncmp(const char *cs,const char *ct, size_t count);
|
|
int strcasecmp(const char *a, const char *b);
|
|
int strncasecmp(const char *cs, const char *ct, size_t count);
|
|
int sscanf(const char * buf, const char * fmt, ...);
|
|
size_t strlen(const char *s);
|
|
char *strstr(const char * s1,const char * s2);
|
|
char *strcpy(char *dest, const char *src);
|
|
char *strncpy(char *dest, const char *src, size_t n);
|
|
size_t strlcpy(char *dst, const char *src, size_t siz);
|
|
char *strncat(char *dest, const char *src, size_t count);
|
|
char *strcat(char * dest, const char * src);
|
|
char *strchr(const char *s1, int i);
|
|
char *strrchr(const char *t, int c);
|
|
char *strdup(const char *s);
|
|
char *strtok(char *s, const char *delim);
|
|
char*strtok_r(char*s, const char*delim, char**ptrptr);
|
|
|
|
size_t strcspn(const char *s, const char *reject);
|
|
size_t strspn (const char *s, const char *accept);
|
|
|
|
long strtol(const char *str, char **endptr, int base);
|
|
long long strtoll(const char *str, char **endptr, int base);
|
|
#endif
|
|
|
|
#endif
|