fix include paths

This commit is contained in:
kristina 2016-05-30 14:16:20 +01:00
parent 57a51c5746
commit 99bdd2580f
3 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Simple timer based delay routine.
=============================================================================*/ =============================================================================*/
#ifdef __arm__ #ifdef __arm__
#include <stdint.h>
#else #else
#include "common.h" #include "common.h"
#endif #endif

View File

@ -182,7 +182,7 @@ void put_dump (
case DW_LONG: case DW_LONG:
lp = buff; lp = buff;
do /* Hexdecimal dump */ do /* Hexdecimal dump */
xprintf(" %08LX", *lp++); xprintf(" %08X", *lp++);
while (--len); while (--len);
break; break;
} }

View File

@ -15,6 +15,10 @@
#define _USE_XFUNC_OUT 1 /* 1: Use output functions */ #define _USE_XFUNC_OUT 1 /* 1: Use output functions */
#define _CR_CRLF 1 /* 1: Convert \n ==> \r\n in the output char */ #define _CR_CRLF 1 /* 1: Convert \n ==> \r\n in the output char */
#ifdef __cplusplus
extern "C" {
#endif
void xputc (char c); void xputc (char c);
void xputs (const char* str); void xputs (const char* str);
void xfputs (void (*func)(unsigned char), const char* str); void xfputs (void (*func)(unsigned char), const char* str);
@ -33,4 +37,8 @@ void xvprintf (
#define DW_SHORT sizeof(short) #define DW_SHORT sizeof(short)
#define DW_LONG sizeof(long) #define DW_LONG sizeof(long)
#ifdef __cplusplus
}
#endif
#endif #endif