fix include paths
authorkristina <kb@kbs-iMac.local>
Mon, 30 May 2016 13:16:20 +0000 (14:16 +0100)
committerkristina <kb@kbs-iMac.local>
Mon, 30 May 2016 13:16:20 +0000 (14:16 +0100)
lib/udelay.c
lib/xprintf.c
lib/xprintf.h

index 58135cf..ba13d32 100755 (executable)
@@ -18,6 +18,7 @@ Simple timer based delay routine.
 =============================================================================*/\r
 \r
 #ifdef __arm__\r
+#include <stdint.h>\r
 #else\r
 #include "common.h"\r
 #endif\r
index 06d8179..7f9b7db 100755 (executable)
@@ -182,7 +182,7 @@ void put_dump (
        case DW_LONG:\r
                lp = buff;\r
                do                                                              /* Hexdecimal dump */\r
-                       xprintf(" %08LX", *lp++);\r
+                       xprintf(" %08X", *lp++);\r
                while (--len);\r
                break;\r
        }\r
index 3ac32e0..32863c7 100755 (executable)
 #define _USE_XFUNC_OUT 1       /* 1: Use output functions */\r
 #define        _CR_CRLF                1       /* 1: Convert \n ==> \r\n in the output char */\r
 \r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
 void xputc (char c);\r
 void xputs (const char* str);\r
 void xfputs (void (*func)(unsigned char), const char* str);\r
@@ -33,4 +37,8 @@ void xvprintf (
 #define DW_SHORT       sizeof(short)\r
 #define DW_LONG                sizeof(long)\r
 \r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
 #endif\r
This page took 0.026349 seconds and 4 git commands to generate.