Line 90... |
Line 90... |
void *memmove(void *dst, const void *src, unsigned long bytes);
|
void *memmove(void *dst, const void *src, unsigned long bytes);
|
int memcmp(const void *cs, const void *ct, unsigned long bytes);
|
int memcmp(const void *cs, const void *ct, unsigned long bytes);
|
void *memset(void *dst, int c, unsigned long bytes);
|
void *memset(void *dst, int c, unsigned long bytes);
|
int abs(int n);
|
int abs(int n);
|
int atoi(const char *s);
|
int atoi(const char *s);
|
int rand(void);
|
unsigned int rand(void);
|
void srand(unsigned int seed);
|
void srand(unsigned int seed);
|
long strtol(const char *s, char **end, int base);
|
long strtol(const char *s, char **end, int base);
|
char *itoa(int num, char *dst, int base);
|
char *itoa(int num, char *dst, int base);
|
|
|
#ifndef NO_ELLIPSIS
|
#ifndef NO_ELLIPSIS
|
int sprintf(char *s, const char *format, ...);
|
int sprintf(char *s, const char *format, ...);
|
int sscanf(const char *s, const char *format, ...);
|
int sscanf(const char *s, const char *format, ...);
|
#endif
|
#endif
|
|
|
|
#define printf UartPrintf
|
#ifndef _LIBC
|
#ifndef _LIBC
|
#define assert(A) if((A)==0){OS_Assert();UartPrintfCritical("\r\nAssert %s:%d\r\n", __FILE__, __LINE__);}
|
#define assert(A) if((A)==0){OS_Assert();UartPrintfCritical("\r\nAssert %s:%d\r\n", __FILE__, __LINE__);}
|
#define printf UartPrintf
|
|
//#define printf UartPrintfPoll
|
|
#define scanf UartScanf
|
#define scanf UartScanf
|
#define NULL (void*)0
|
#define NULL (void*)0
|
|
#else
|
|
#define UartPrintfCritical UartPrintf
|
#endif //_LIBC
|
#endif //_LIBC
|
|
|
#ifdef INCLUDE_DUMP
|
#ifdef INCLUDE_DUMP
|
void dump(const unsigned char *data, int length);
|
void dump(const unsigned char *data, int length);
|
#endif
|
#endif
|
Line 336... |
Line 337... |
float FP_Exp(float x);
|
float FP_Exp(float x);
|
float FP_Log(float x);
|
float FP_Log(float x);
|
float FP_Pow(float x, float y);
|
float FP_Pow(float x, float y);
|
|
|
/***************** Filesys ******************/
|
/***************** Filesys ******************/
|
#ifdef INCLUDE_FILESYS
|
#ifndef EXCLUDE_FILESYS
|
#define FILE OS_FILE
|
#define FILE OS_FILE
|
#define fopen OS_fopen
|
#define fopen OS_fopen
|
#define fclose OS_fclose
|
#define fclose OS_fclose
|
#define fread OS_fread
|
#define fread OS_fread
|
#define fwrite OS_fwrite
|
#define fwrite OS_fwrite
|
Line 357... |
Line 358... |
int OS_fdir(OS_FILE *dir, char name[64]);
|
int OS_fdir(OS_FILE *dir, char name[64]);
|
void OS_fdelete(char *name);
|
void OS_fdelete(char *name);
|
int OS_flength(char *entry);
|
int OS_flength(char *entry);
|
|
|
/***************** Flash ******************/
|
/***************** Flash ******************/
|
|
void FlashLock(void);
|
|
void FlashUnlock(void);
|
void FlashRead(uint16 *dst, uint32 byteOffset, int bytes);
|
void FlashRead(uint16 *dst, uint32 byteOffset, int bytes);
|
void FlashWrite(uint16 *src, uint32 byteOffset, int bytes);
|
void FlashWrite(uint16 *src, uint32 byteOffset, int bytes);
|
void FlashErase(uint32 byteOffset);
|
void FlashErase(uint32 byteOffset);
|
|
|
#endif //__RTOS_H__
|
#endif //__RTOS_H__
|