Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
36b4ce7a
Commit
36b4ce7a
authored
May 03, 2012
by
Alejandro Mery
Browse files
bin2fex: show GPIO port id as %02d
parent
e015c63b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin2fex.c
View file @
36b4ce7a
...
...
@@ -79,7 +79,7 @@ static inline int decompile_gpio(struct script_section *section,
port
=
'A'
+
(
gpio
->
port
-
1
);
}
fprintf
(
out
,
"%s
\t
= port:P%c%d"
,
entry
->
name
,
port
,
gpio
->
port_num
);
fprintf
(
out
,
"%s
\t
= port:P%c%
02
d"
,
entry
->
name
,
port
,
gpio
->
port_num
);
for
(
const
int
*
p
=
&
gpio
->
mul_sel
,
*
pe
=
p
+
4
;
p
!=
pe
;
p
++
)
{
if
(
*
p
==
-
1
)
fputs
(
"<default>"
,
out
);
...
...
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