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
3bbef546
Commit
3bbef546
authored
Aug 01, 2012
by
Henrik Nordstrom
Browse files
pio: Correct drv_level setting
parent
1690132c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pio.c
View file @
3bbef546
...
...
@@ -100,7 +100,7 @@ static int pio_set(char *buf, uint32_t port, uint32_t port_num, struct pio_statu
addr
=
(
uint32_t
*
)
PIO_REG_DLEVEL
(
buf
,
port
,
port_num_pull
);
val
=
le32toh
(
*
addr
);
val
&=
~
(
0x03
<<
offset_pull
);
val
|=
(
pio
->
pul
l
&
0x03
)
<<
offset_pull
;
val
|=
(
pio
->
drv_leve
l
&
0x03
)
<<
offset_pull
;
*
addr
=
htole32
(
val
);
}
...
...
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