Commit de8ffcae authored by Federico Vaga's avatar Federico Vaga

rt: move puts to common header

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent e2d74a4d
...@@ -123,6 +123,9 @@ static inline void delay(int n) ...@@ -123,6 +123,9 @@ static inline void delay(int n)
asm volatile("nop"); asm volatile("nop");
} }
extern int puts(const char *p);
/**@}*/ /**@}*/
#endif #endif
...@@ -86,10 +86,6 @@ static inline int pp_vsprintf(char *buf, const char *fmt, va_list args) ...@@ -86,10 +86,6 @@ static inline int pp_vsprintf(char *buf, const char *fmt, va_list args)
#endif #endif
/* This is what we rely on for output */
extern int puts(const char *s);
/**@}*/ /**@}*/
#endif #endif
...@@ -11,8 +11,10 @@ ...@@ -11,8 +11,10 @@
#ifdef LIB_PRINTF #ifdef LIB_PRINTF
#include <stdarg.h> #include <stdarg.h>
#include <mockturtle-rt-common.h>
#include <pp-printf.h> #include <pp-printf.h>
static char print_buf[CONFIG_PRINT_BUFSIZE]; static char print_buf[CONFIG_PRINT_BUFSIZE];
int pp_vprintf(const char *fmt, va_list args) int pp_vprintf(const char *fmt, va_list args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment