OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [lib/] [include/] [printf.h] - Diff between revs 393 and 485

Only display areas with differences | Details | Blame | View Log

Rev 393 Rev 485
#ifndef _PRINTF_H_
#ifndef _PRINTF_H_
#define _PRINTF_H_
#define _PRINTF_H_
 
 
 
int sprintf(char* str, const char *fmt, ...);
 
 
#define PRINTFBUFFER_SIZE 512
#define PRINTFBUFFER_SIZE 512
extern char PRINTFBUFFER[PRINTFBUFFER_SIZE]; // Declare a global printf buffer
extern char PRINTFBUFFER[PRINTFBUFFER_SIZE]; // Declare a global printf buffer
//int vfnprintf ( char *stream, size_t n, const char *format, va_list arg);
//int vfnprintf ( char *stream, size_t n, const char *format, va_list arg);
 
 
 
 
int printf_to_uart(const char *fmt, ...);
int printf_to_uart(const char *fmt, ...);
int printf_to_sim(const char *fmt, ...);
int printf_to_sim(const char *fmt, ...);
 
 
int putchar_to_uart(int c);
int putchar_to_uart(int c);
int putchar_to_sim(int c);
int putchar_to_sim(int c);
 
 
int puts_to_uart(const char *str);
int puts_to_uart(const char *str);
int puts_to_sim(const char *str);
int puts_to_sim(const char *str);
 
 
// for now...
// for now...
 
 
#ifdef _UART_H_
#ifdef _UART_H_
#define printf printf_to_uart
#define printf printf_to_uart
#define putchar putchar_to_uart
#define putchar putchar_to_uart
#define puts puts_to_uart
#define puts puts_to_uart
#else
#else
#define printf printf_to_sim
#define printf printf_to_sim
#define putchar putchar_to_sim
#define putchar putchar_to_sim
#define puts puts_to_sim
#define puts puts_to_sim
#endif
#endif
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.