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

Subversion Repositories openrisc

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

Go to most recent revision | Show entire file | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

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