# 1 "../../../Package/cm_backtrace/MyPrintf.c" # 1 "" 1 # 1 "" 3 # 387 "" 3 # 1 "" 1 # 1 "" 2 # 1 "../../../Package/cm_backtrace/MyPrintf.c" 2 # 1 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 1 3 # 53 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 typedef unsigned int size_t; # 68 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 typedef __builtin_va_list __va_list; # 87 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 typedef struct __fpos_t_struct { unsigned long long int __pos; struct { unsigned int __state1, __state2; } __mbstate; } fpos_t; # 108 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 typedef struct __FILE FILE; # 119 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 struct __FILE { union { long __FILE_alignment; char __FILE_size[84]; } __FILE_opaque; }; # 138 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern FILE __stdin, __stdout, __stderr; extern FILE *__aeabi_stdin, *__aeabi_stdout, *__aeabi_stderr; # 224 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int remove(const char * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int rename(const char * , const char * ) __attribute__((__nonnull__(1,2))); # 243 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) FILE *tmpfile(void); extern __attribute__((__nothrow__)) char *tmpnam(char * ); # 265 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fclose(FILE * ) __attribute__((__nonnull__(1))); # 275 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fflush(FILE * ); # 285 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) FILE *fopen(const char * __restrict , const char * __restrict ) __attribute__((__nonnull__(1,2))); # 329 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) FILE *freopen(const char * __restrict , const char * __restrict , FILE * __restrict ) __attribute__((__nonnull__(2,3))); # 342 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) void setbuf(FILE * __restrict , char * __restrict ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int setvbuf(FILE * __restrict , char * __restrict , int , size_t ) __attribute__((__nonnull__(1))); # 370 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 #pragma __printf_args extern __attribute__((__nothrow__)) int fprintf(FILE * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); # 393 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 #pragma __printf_args extern __attribute__((__nothrow__)) int _fprintf(FILE * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); #pragma __printf_args extern __attribute__((__nothrow__)) int printf(const char * __restrict , ...) __attribute__((__nonnull__(1))); #pragma __printf_args extern __attribute__((__nothrow__)) int _printf(const char * __restrict , ...) __attribute__((__nonnull__(1))); #pragma __printf_args extern __attribute__((__nothrow__)) int sprintf(char * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); #pragma __printf_args extern __attribute__((__nothrow__)) int _sprintf(char * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); #pragma __printf_args extern __attribute__((__nothrow__)) int __ARM_snprintf(char * __restrict , size_t , const char * __restrict , ...) __attribute__((__nonnull__(3))); #pragma __printf_args extern __attribute__((__nothrow__)) int snprintf(char * __restrict , size_t , const char * __restrict , ...) __attribute__((__nonnull__(3))); # 460 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 #pragma __printf_args extern __attribute__((__nothrow__)) int _snprintf(char * __restrict , size_t , const char * __restrict , ...) __attribute__((__nonnull__(3))); #pragma __scanf_args extern __attribute__((__nothrow__)) int fscanf(FILE * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); # 503 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 #pragma __scanf_args extern __attribute__((__nothrow__)) int _fscanf(FILE * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); #pragma __scanf_args extern __attribute__((__nothrow__)) int scanf(const char * __restrict , ...) __attribute__((__nonnull__(1))); #pragma __scanf_args extern __attribute__((__nothrow__)) int _scanf(const char * __restrict , ...) __attribute__((__nonnull__(1))); #pragma __scanf_args extern __attribute__((__nothrow__)) int sscanf(const char * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); # 541 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 #pragma __scanf_args extern __attribute__((__nothrow__)) int _sscanf(const char * __restrict , const char * __restrict , ...) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int vfscanf(FILE * __restrict , const char * __restrict , __va_list) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int vscanf(const char * __restrict , __va_list) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int vsscanf(const char * __restrict , const char * __restrict , __va_list) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int _vfscanf(FILE * __restrict , const char * __restrict , __va_list) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int _vscanf(const char * __restrict , __va_list) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int _vsscanf(const char * __restrict , const char * __restrict , __va_list) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int __ARM_vsscanf(const char * __restrict , const char * __restrict , __va_list) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int vprintf(const char * __restrict , __va_list ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int _vprintf(const char * __restrict , __va_list ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int vfprintf(FILE * __restrict , const char * __restrict , __va_list ) __attribute__((__nonnull__(1,2))); # 584 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int vsprintf(char * __restrict , const char * __restrict , __va_list ) __attribute__((__nonnull__(1,2))); # 594 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int __ARM_vsnprintf(char * __restrict , size_t , const char * __restrict , __va_list ) __attribute__((__nonnull__(3))); extern __attribute__((__nothrow__)) int vsnprintf(char * __restrict , size_t , const char * __restrict , __va_list ) __attribute__((__nonnull__(3))); # 609 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int _vsprintf(char * __restrict , const char * __restrict , __va_list ) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int _vfprintf(FILE * __restrict , const char * __restrict , __va_list ) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int _vsnprintf(char * __restrict , size_t , const char * __restrict , __va_list ) __attribute__((__nonnull__(3))); # 635 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 #pragma __printf_args extern __attribute__((__nothrow__)) int __ARM_asprintf(char ** , const char * __restrict , ...) __attribute__((__nonnull__(2))); extern __attribute__((__nothrow__)) int __ARM_vasprintf(char ** , const char * __restrict , __va_list ) __attribute__((__nonnull__(2))); # 649 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fgetc(FILE * ) __attribute__((__nonnull__(1))); # 659 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) char *fgets(char * __restrict , int , FILE * __restrict ) __attribute__((__nonnull__(1,3))); # 673 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fputc(int , FILE * ) __attribute__((__nonnull__(2))); # 683 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fputs(const char * __restrict , FILE * __restrict ) __attribute__((__nonnull__(1,2))); extern __attribute__((__nothrow__)) int getc(FILE * ) __attribute__((__nonnull__(1))); # 704 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int (getchar)(void); # 713 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) char *gets(char * ) __attribute__((__nonnull__(1))); # 725 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int putc(int , FILE * ) __attribute__((__nonnull__(2))); # 737 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int (putchar)(int ); extern __attribute__((__nothrow__)) int puts(const char * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int ungetc(int , FILE * ) __attribute__((__nonnull__(2))); # 778 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) size_t fread(void * __restrict , size_t , size_t , FILE * __restrict ) __attribute__((__nonnull__(1,4))); # 794 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) size_t __fread_bytes_avail(void * __restrict , size_t , FILE * __restrict ) __attribute__((__nonnull__(1,3))); # 810 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) size_t fwrite(const void * __restrict , size_t , size_t , FILE * __restrict ) __attribute__((__nonnull__(1,4))); # 822 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fgetpos(FILE * __restrict , fpos_t * __restrict ) __attribute__((__nonnull__(1,2))); # 833 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fseek(FILE * , long int , int ) __attribute__((__nonnull__(1))); # 850 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int fsetpos(FILE * __restrict , const fpos_t * __restrict ) __attribute__((__nonnull__(1,2))); # 863 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) long int ftell(FILE * ) __attribute__((__nonnull__(1))); # 877 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) void rewind(FILE * ) __attribute__((__nonnull__(1))); # 886 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) void clearerr(FILE * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int feof(FILE * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int ferror(FILE * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) void perror(const char * ); # 917 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdio.h" 3 extern __attribute__((__nothrow__)) int _fisatty(FILE * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) void __use_no_semihosting_swi(void); extern __attribute__((__nothrow__)) void __use_no_semihosting(void); # 3 "../../../Package/cm_backtrace/MyPrintf.c" 2 # 1 "../../../Package/cm_backtrace/MYPRINTF.H" 1 void MyPrintf(const char *fmt,...); # 4 "../../../Package/cm_backtrace/MyPrintf.c" 2 # 1 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" 1 # 61 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" # 1 "../../../Package/SEGGER_RTT/RTT/SEGGER_RTT_Conf.h" 1 # 62 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" 2 # 194 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" # 1 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 1 3 # 91 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 typedef unsigned short wchar_t; typedef struct div_t { int quot, rem; } div_t; typedef struct ldiv_t { long int quot, rem; } ldiv_t; typedef struct lldiv_t { long long quot, rem; } lldiv_t; # 139 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) int __aeabi_MB_CUR_MAX(void); # 158 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) double atof(const char * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int atoi(const char * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) long int atol(const char * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) long long atoll(const char * ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) double strtod(const char * __restrict , char ** __restrict ) __attribute__((__nonnull__(1))); # 206 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) float strtof(const char * __restrict , char ** __restrict ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) long double strtold(const char * __restrict , char ** __restrict ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) long int strtol(const char * __restrict , char ** __restrict , int ) __attribute__((__nonnull__(1))); # 243 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) unsigned long int strtoul(const char * __restrict , char ** __restrict , int ) __attribute__((__nonnull__(1))); # 275 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) long long strtoll(const char * __restrict , char ** __restrict , int ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) unsigned long long strtoull(const char * __restrict , char ** __restrict , int ) __attribute__((__nonnull__(1))); extern __attribute__((__nothrow__)) int rand(void); # 303 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) void srand(unsigned int ); # 313 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 struct _rand_state { int __x[57]; }; extern __attribute__((__nothrow__)) int _rand_r(struct _rand_state *); extern __attribute__((__nothrow__)) void _srand_r(struct _rand_state *, unsigned int); struct _ANSI_rand_state { int __x[1]; }; extern __attribute__((__nothrow__)) int _ANSI_rand_r(struct _ANSI_rand_state *); extern __attribute__((__nothrow__)) void _ANSI_srand_r(struct _ANSI_rand_state *, unsigned int); extern __attribute__((__nothrow__)) void *calloc(size_t , size_t ); extern __attribute__((__nothrow__)) void free(void * ); extern __attribute__((__nothrow__)) void *malloc(size_t ); extern __attribute__((__nothrow__)) void *realloc(void * , size_t ); # 374 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 typedef int (*__heapprt)(void *, char const *, ...); extern __attribute__((__nothrow__)) void __heapstats(int (* )(void * , char const * , ...), void * ) __attribute__((__nonnull__(1))); # 390 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) int __heapvalid(int (* )(void * , char const * , ...), void * , int ) __attribute__((__nonnull__(1))); # 411 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__noreturn__)) void abort(void); # 422 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) int atexit(void (* )(void)) __attribute__((__nonnull__(1))); # 444 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__noreturn__)) void exit(int ); # 460 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__noreturn__)) void _Exit(int ); # 471 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) char *getenv(const char * ) __attribute__((__nonnull__(1))); # 484 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) int system(const char * ); # 497 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern void *bsearch(const void * , const void * , size_t , size_t , int (* )(const void *, const void *)) __attribute__((__nonnull__(1,2,5))); # 532 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern void qsort(void * , size_t , size_t , int (* )(const void *, const void *)) __attribute__((__nonnull__(1,4))); # 560 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__const__)) int abs(int ); extern __attribute__((__nothrow__)) __attribute__((__const__)) div_t div(int , int ); # 579 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__const__)) long int labs(long int ); # 589 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__const__)) ldiv_t ldiv(long int , long int ); # 610 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__const__)) long long llabs(long long ); # 620 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) __attribute__((__const__)) lldiv_t lldiv(long long , long long ); # 644 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 typedef struct __sdiv32by16 { long quot, rem; } __sdiv32by16; typedef struct __udiv32by16 { unsigned long quot, rem; } __udiv32by16; typedef struct __sdiv64by32 { long rem, quot; } __sdiv64by32; __attribute__((__value_in_regs__)) extern __attribute__((__nothrow__)) __attribute__((__const__)) __sdiv32by16 __rt_sdiv32by16( int , short int ); __attribute__((__value_in_regs__)) extern __attribute__((__nothrow__)) __attribute__((__const__)) __udiv32by16 __rt_udiv32by16( unsigned int , unsigned short ); __attribute__((__value_in_regs__)) extern __attribute__((__nothrow__)) __attribute__((__const__)) __sdiv64by32 __rt_sdiv64by32( int , unsigned int , int ); extern __attribute__((__nothrow__)) unsigned int __fp_status(unsigned int , unsigned int ); # 705 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) int mblen(const char * , size_t ); # 720 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) int mbtowc(wchar_t * __restrict , const char * __restrict , size_t ); # 739 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) int wctomb(char * , wchar_t ); # 761 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) size_t mbstowcs(wchar_t * __restrict , const char * __restrict , size_t ) __attribute__((__nonnull__(2))); # 779 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) size_t wcstombs(char * __restrict , const wchar_t * __restrict , size_t ) __attribute__((__nonnull__(2))); # 798 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdlib.h" 3 extern __attribute__((__nothrow__)) void __use_realtime_heap(void); extern __attribute__((__nothrow__)) void __use_realtime_division(void); extern __attribute__((__nothrow__)) void __use_two_region_memory(void); extern __attribute__((__nothrow__)) void __use_no_heap(void); extern __attribute__((__nothrow__)) void __use_no_heap_region(void); extern __attribute__((__nothrow__)) char const *__C_library_version_string(void); extern __attribute__((__nothrow__)) int __C_library_version_number(void); # 195 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" 2 # 1 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdarg.h" 1 3 # 40 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdarg.h" 3 typedef __builtin_va_list va_list; # 134 "d:\\Keil\\ARM\\ARMCLANG\\Bin\\..\\include\\stdarg.h" 3 typedef va_list __gnuc_va_list; # 196 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" 2 # 230 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" typedef struct { const char* sName; char* pBuffer; unsigned SizeOfBuffer; unsigned WrOff; volatile unsigned RdOff; unsigned Flags; } SEGGER_RTT_BUFFER_UP; typedef struct { const char* sName; char* pBuffer; unsigned SizeOfBuffer; volatile unsigned WrOff; unsigned RdOff; unsigned Flags; } SEGGER_RTT_BUFFER_DOWN; typedef struct { char acID[16]; int MaxNumUpBuffers; int MaxNumDownBuffers; SEGGER_RTT_BUFFER_UP aUp[(3)]; SEGGER_RTT_BUFFER_DOWN aDown[(3)]; } SEGGER_RTT_CB; extern SEGGER_RTT_CB _SEGGER_RTT; # 285 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" int SEGGER_RTT_AllocDownBuffer (const char* sName, void* pBuffer, unsigned BufferSize, unsigned Flags); int SEGGER_RTT_AllocUpBuffer (const char* sName, void* pBuffer, unsigned BufferSize, unsigned Flags); int SEGGER_RTT_ConfigUpBuffer (unsigned BufferIndex, const char* sName, void* pBuffer, unsigned BufferSize, unsigned Flags); int SEGGER_RTT_ConfigDownBuffer (unsigned BufferIndex, const char* sName, void* pBuffer, unsigned BufferSize, unsigned Flags); int SEGGER_RTT_GetKey (void); unsigned SEGGER_RTT_HasData (unsigned BufferIndex); int SEGGER_RTT_HasKey (void); unsigned SEGGER_RTT_HasDataUp (unsigned BufferIndex); void SEGGER_RTT_Init (void); unsigned SEGGER_RTT_Read (unsigned BufferIndex, void* pBuffer, unsigned BufferSize); unsigned SEGGER_RTT_ReadNoLock (unsigned BufferIndex, void* pData, unsigned BufferSize); int SEGGER_RTT_SetNameDownBuffer (unsigned BufferIndex, const char* sName); int SEGGER_RTT_SetNameUpBuffer (unsigned BufferIndex, const char* sName); int SEGGER_RTT_SetFlagsDownBuffer (unsigned BufferIndex, unsigned Flags); int SEGGER_RTT_SetFlagsUpBuffer (unsigned BufferIndex, unsigned Flags); int SEGGER_RTT_WaitKey (void); unsigned SEGGER_RTT_Write (unsigned BufferIndex, const void* pBuffer, unsigned NumBytes); unsigned SEGGER_RTT_WriteNoLock (unsigned BufferIndex, const void* pBuffer, unsigned NumBytes); unsigned SEGGER_RTT_WriteSkipNoLock (unsigned BufferIndex, const void* pBuffer, unsigned NumBytes); unsigned SEGGER_RTT_ASM_WriteSkipNoLock (unsigned BufferIndex, const void* pBuffer, unsigned NumBytes); unsigned SEGGER_RTT_WriteString (unsigned BufferIndex, const char* s); void SEGGER_RTT_WriteWithOverwriteNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes); unsigned SEGGER_RTT_PutChar (unsigned BufferIndex, char c); unsigned SEGGER_RTT_PutCharSkip (unsigned BufferIndex, char c); unsigned SEGGER_RTT_PutCharSkipNoLock (unsigned BufferIndex, char c); unsigned SEGGER_RTT_GetAvailWriteSpace (unsigned BufferIndex); unsigned SEGGER_RTT_GetBytesInBuffer (unsigned BufferIndex); # 327 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" unsigned SEGGER_RTT_ReadUpBuffer (unsigned BufferIndex, void* pBuffer, unsigned BufferSize); unsigned SEGGER_RTT_ReadUpBufferNoLock (unsigned BufferIndex, void* pData, unsigned BufferSize); unsigned SEGGER_RTT_WriteDownBuffer (unsigned BufferIndex, const void* pBuffer, unsigned NumBytes); unsigned SEGGER_RTT_WriteDownBufferNoLock (unsigned BufferIndex, const void* pBuffer, unsigned NumBytes); # 340 "../../../Package/SEGGER_RTT/RTT\\SEGGER_RTT.h" int SEGGER_RTT_SetTerminal (unsigned char TerminalId); int SEGGER_RTT_TerminalOut (unsigned char TerminalId, const char* s); int SEGGER_RTT_printf(unsigned BufferIndex, const char * sFormat, ...); int SEGGER_RTT_vprintf(unsigned BufferIndex, const char * sFormat, va_list * pParamList); # 5 "../../../Package/cm_backtrace/MyPrintf.c" 2 # 1 "../../../Package/OS/Task\\cfg/task_cfg.h" 1 # 7 "../../../Package/cm_backtrace/MyPrintf.c" 2 int bInitPrint = 0; char buffer[256] = {0}; void MyPrintf(const char *fmt,...) { if(bInitPrint==0) { bInitPrint = 1; SEGGER_RTT_Init(); SEGGER_RTT_ConfigUpBuffer(0, 0, 0, 0, (2)); SEGGER_RTT_WriteString(0, "SEGGER Real-Time-Terminal Sample\r\n\r\n"); SEGGER_RTT_WriteString(0, "###### Testing SEGGER_printf() ######\r\n"); } va_list args; __builtin_va_start(args, fmt); int tmp_size = vsnprintf(buffer,sizeof(buffer),fmt,args); SEGGER_RTT_WriteString(0,buffer); __builtin_va_end(args); }