treewide: remove FSF address
[osmocom-bb.git] / src / target / firmware / include / stdio.h
blob86f9333d40a106bb91af59f94fe7ebe36cae611d
1 #ifndef _STDIO_H
2 #define _STDIO_H
4 #ifndef NULL
5 #define NULL 0
6 #endif /* NULL */
8 #include <sys/types.h>
10 int printf(const char *format, ...);
11 int sprintf(char *str, const char *format, ...);
12 int snprintf(char *str, size_t size, const char *format, ...);
13 #define fprintf(fd, fmt, args...) printf(fmt, ## args)
15 #include <stdarg.h>
17 int vprintf(const char *format, va_list ap);
18 int vsprintf(char *str, const char *format, va_list ap);
19 int vsnprintf(char *str, size_t size, const char *format, va_list ap);
20 int puts(const char *s);
22 #if 0
23 /* start.S based uart console */
24 #include <calypso/uart.h>
25 #define putchar(c) uart_putchar_wait(1, c)
26 int puts(const char *s);
27 #endif
29 #if 0
30 /* regular UART console */
31 #include <console.h>
32 #define putchar(c) cons_putchar(c)
33 #define _puts(s) cons_puts(s)
34 #define ARCH_HAS_CONSOLE
35 #endif
37 #if 1
38 /* sercomm based console */
39 #include <comm/sercomm_cons.h>
40 #define putchar(c) sercomm_putchar(c)
41 #define _puts(s) sercomm_puts(s)
42 #define ARCH_HAS_CONSOLE
43 #endif
45 struct __file {
48 typedef struct __file FILE;
50 /* non-standard */
51 extern void phex(unsigned int c, unsigned int len);
53 #endif /* _STDIO_H */