Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
de8ffcae
Commit
de8ffcae
authored
Dec 06, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: move puts to common header
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
e2d74a4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
mockturtle-rt-common.h
rt/mockturtle-rt-common.h
+3
-0
pp-printf.h
rt/pp-printf.h
+0
-4
printf.c
rt/printf.c
+2
-0
No files found.
rt/mockturtle-rt-common.h
View file @
de8ffcae
...
...
@@ -123,6 +123,9 @@ static inline void delay(int n)
asm
volatile
(
"nop"
);
}
extern
int
puts
(
const
char
*
p
);
/**@}*/
#endif
rt/pp-printf.h
View file @
de8ffcae
...
...
@@ -86,10 +86,6 @@ static inline int pp_vsprintf(char *buf, const char *fmt, va_list args)
#endif
/* This is what we rely on for output */
extern
int
puts
(
const
char
*
s
);
/**@}*/
#endif
rt/printf.c
View file @
de8ffcae
...
...
@@ -11,8 +11,10 @@
#ifdef LIB_PRINTF
#include <stdarg.h>
#include <mockturtle-rt-common.h>
#include <pp-printf.h>
static
char
print_buf
[
CONFIG_PRINT_BUFSIZE
];
int
pp_vprintf
(
const
char
*
fmt
,
va_list
args
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment