Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
a74474ca
Commit
a74474ca
authored
Oct 20, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kconfig: add choice for pp_printf
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
75dad625
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
1 deletion
+48
-1
Kconfig
Kconfig
+48
-1
No files found.
Kconfig
View file @
a74474ca
...
...
@@ -2,13 +2,60 @@
mainmenu "WR PTP Core software configuration"
config MPRINTF
boolean
boolean
"Use the old mprintf implementation for printf
default y
help
wrpc-sw has traditionally used mprintf as its printf engine.
Unfortunately, the code base has unclear copyright status,
and we are now able to run pp_printf instead. Such implementation
however has had little testing in wrpc-sw by now. Mprintf
is scheduled to be removed in the future, as soon as pp_printf
is more tested on the field.
If unsure, say y for the time being.
config PP_PRINTF
boolean
default !MPRINTF
choice
prompt "Implementation of pp_printf"
depends on PP_PRINTF
default PRINTF_XINT
config PRINTF_FULL
bool "full"
help
This selects an implementation that supports all standard
formats with modifiers, like "%08X" and "%.5s". It costs
around 2k of compiled code more than XINT.
See pp_printf/README for details.
config PRINTF_XINT
bool "hex-and-int"
help
This selects a printf that can only print decimal and hex
numbers, without obeying the format modifiers. %c and %s are
supported too, and %p is equivalente to %x.
See pp_printf/README for details.
config PRINTF_MINI
bool "minimal"
help
This selects a printf that prints all integers as hex,
without obeying the format modifiers. %c and %s are
supported too. See pp_printf/README for details.
This is not probably what you want for wrpc-sw.
config PRINTF_NONE
bool "empty"
help
This selects a printf that prints the format string
alone and ignores all further arguments. Minimal size,
but not suited for wrpc-sw. See pp_printf/README for details.
endchoice
config PRINT_BUFSIZE
depends on PP_PRINTF
int "Size for the temporary output string of pp_printf"
...
...
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