Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
fd5ad609
Commit
fd5ad609
authored
Oct 03, 2019
by
Rahix
Browse files
Merge 'Fix portexpander not being configured'
Closes #171 See merge request
card10/firmware!323
parents
d70f6e30
609e3947
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/card10/portexpander.c
View file @
fd5ad609
...
...
@@ -102,9 +102,8 @@ int portexpander_init(void)
// Enable outputs for the transistors, the LED and the LCD reset
for
(
int
i
=
0
;
i
<
sizeof
(
pe_pin_config
)
/
sizeof
(
pe_pin_config
[
0
]);
i
++
)
{
MXC_ASSERT
(
portexpander_config
(
&
pe_pin_config
[
i
])
==
E_NO_ERROR
);
ret
=
portexpander_config
(
&
pe_pin_config
[
i
]);
MXC_ASSERT
(
ret
==
E_NO_ERROR
);
}
// Latch inputs so we can figure out whether an interrupt was caused by a rising or falling edge
...
...
@@ -161,7 +160,7 @@ int portexpander_config(const portexpander_cfg_t *cfg)
return
E_BAD_PARAM
;
}
portexpander_write
(
PE_C_PULL_
ENABLE
,
pull_selection_state
);
portexpander_write
(
PE_C_PULL_
SEL
,
pull_selection_state
);
portexpander_write
(
PE_C_PULL_ENABLE
,
pull_enable_state
);
return
E_NO_ERROR
;
...
...
Write
Preview
Supports
Markdown
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