Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
A2720
a2720-mod
Commits
da035d2a
Commit
da035d2a
authored
Apr 01, 2021
by
Alessio Igor Bogani
Browse files
Rename GPIO2_9 and add GPIO2_1
parent
43f8ee2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
a2720.c
View file @
da035d2a
...
...
@@ -235,9 +235,13 @@ static int setup_gpio(void)
if
(
gpio_request
(
GPIO2_11
,
"RST"
))
return
-
EINVAL
;
gpio_direction_output
(
GPIO2_11
,
0
);
if
(
!
gpio_is_valid
(
GPIO2_1
))
return
-
EINVAL
;
if
(
gpio_request
(
GPIO2_1
,
"benchPRU0"
))
return
-
EINVAL
;
gpio_direction_output
(
GPIO2_1
,
1
);
if
(
!
gpio_is_valid
(
GPIO2_9
))
return
-
EINVAL
;
if
(
gpio_request
(
GPIO2_9
,
"
Degauss
"
))
return
-
EINVAL
;
gpio_direction_output
(
GPIO2_9
,
0
);
if
(
gpio_request
(
GPIO2_9
,
"
benchPRU1
"
))
return
-
EINVAL
;
gpio_direction_output
(
GPIO2_9
,
1
);
if
(
!
gpio_is_valid
(
GPIO1_6
))
return
-
EINVAL
;
if
(
gpio_request
(
GPIO1_6
,
"Dcct Fault"
))
return
-
EINVAL
;
...
...
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