Working SDHOST/FatFS, boot partition mounts, some other minor fixes too.
[rpi-open-firmware.git] / lib / xprintf.h
1 /*------------------------------------------------------------------------*/
2 /* Universal string handler for user console interface (C)ChaN, 2011 */
3 /*------------------------------------------------------------------------*/
4
5 #ifdef __arm__
6 #include <stdarg.h>
7 #else
8 #include "stdarg.h"
9 #endif
10
11
12 #ifndef _STRFUNC
13 #define _STRFUNC
14
15 #define _USE_XFUNC_OUT 1 /* 1: Use output functions */
16 #define _CR_CRLF 1 /* 1: Convert \n ==> \r\n in the output char */
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 int putchar (int c);
23 int puts (const char* str);
24 int printf (const char* fmt, ...) __attribute__ ((format (printf, 1, 2)));
25 void put_dump (const void* buff, unsigned long addr, int len, int width);
26
27
28 int vprintf (
29 const char* fmt, /* Pointer to the format string */
30 va_list arp /* Pointer to arguments */
31 );
32
33 #define DW_CHAR sizeof(char)
34 #define DW_SHORT sizeof(short)
35 #define DW_LONG sizeof(long)
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif
This page took 0.069131 seconds and 5 git commands to generate.