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
d6ad2617
Commit
d6ad2617
authored
Dec 06, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: reorder function for better doxygen
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
de8ffcae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
22 deletions
+24
-22
pp-printf.h
rt/pp-printf.h
+24
-22
No files found.
rt/pp-printf.h
View file @
d6ad2617
...
...
@@ -17,73 +17,75 @@
#include <stdarg.h>
/**
* Include this code only if explicitly asked to
*/
#ifdef LIB_PRINTF
#define CONFIG_PRINT_BUFSIZE 128
extern
int
pp_printf
(
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
extern
int
pp_sprintf
(
char
*
s
,
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
2
,
3
)));
extern
int
pp_vprintf
(
const
char
*
fmt
,
va_list
args
);
extern
int
pp_vsprintf
(
char
*
buf
,
const
char
*
,
va_list
args
)
__attribute__
((
format
(
printf
,
2
,
0
)));
#else
/**
* It prints a string on the serial interface
* It prints a string on the serial interface.
* Internally, it uses the puts() function.
* @param[in] fmt string format
* @return number of printed characters
*/
#ifdef LIB_PRINTF
extern
int
pp_printf
(
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
#else
static
inline
int
pp_printf
(
const
char
*
fmt
,
...)
{
return
0
;
}
#endif
/**
* It
fills a buffer with a string
* It
creates a new string according to the given format
* @param[out] s output string
* @param[in] fmt string format
* @return number of printed characters
*/
#ifdef LIB_PRINTF
extern
int
pp_sprintf
(
char
*
s
,
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
2
,
3
)));
#else
static
inline
int
pp_sprintf
(
char
*
s
,
const
char
*
fmt
,
...)
{
return
0
;
}
#endif
/**
* It prints a string on the serial interface
* It prints a string on the serial interface.
* Internally, it uses the puts() function.
* @param[in] fmt string format
* @param[in] args list of arguments according to the string format
* @return number of printed characters
*/
#ifdef LIB_PRINTF
extern
int
pp_vprintf
(
const
char
*
fmt
,
va_list
args
);
#else
static
inline
int
pp_vprintf
(
const
char
*
fmt
,
va_list
args
)
{
return
0
;
}
#endif
/**
* It
fills a buffer with a string
* It
creates a new string according to the given format
* @param[out] s output string
* @param[in] fmt string format
* @param[in] args list of arguments according to the string format
* @return number of printed characters
*/
#ifdef LIB_PRINTF
extern
int
pp_vsprintf
(
char
*
buf
,
const
char
*
,
va_list
args
)
__attribute__
((
format
(
printf
,
2
,
0
)));
#else
static
inline
int
pp_vsprintf
(
char
*
buf
,
const
char
*
fmt
,
va_list
args
)
{
return
0
;
}
#endif
/**@}*/
...
...
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