新唐的底层库,同样的问题!
- #include <stdio.h>
- #include "Platform.h"
- #if defined ( __CC_ARM )
- #if (__ARMCC_VERSION < 400000)
- #else
- /* Insist on keeping widthprec, to avoid X propagation by benign code in C-lib */
- #pragma import _printf_widthprec
- #endif
- #endif
- /* Un-comment this line to disable all printf and getchar. getchar() will always return 0x00*/
- //#define DISABLE_UART
- //#define ENABLE_HARDFAULT_STACKDUMP
- /*--------------------------------------------------------------------------------------------------------- */
- /* Global variables */
- /*--------------------------------------------------------------------------------------------------------- */
- #if !(defined(__ICCARM__) && (__VER__ >= 6010000))
- struct __FILE {
- int handle; /* Add whatever you need here */
- };
- #endif
- FILE __stdout;
- FILE __stdin;
|