Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
b16c3548
Commit
b16c3548
authored
Mar 21, 2017
by
Damien George
Browse files
esp8266/machine_pin: Fix memset size for zeroing of pin_irq_is_hard.
Thanks to @robert-hh.
parent
ebbaf7ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/machine_pin.c
View file @
b16c3548
...
...
@@ -95,7 +95,7 @@ void pin_init0(void) {
ETS_GPIO_INTR_ATTACH
(
pin_intr_handler_iram
,
NULL
);
// disable all interrupts
memset
(
&
MP_STATE_PORT
(
pin_irq_handler
)[
0
],
0
,
16
*
sizeof
(
mp_obj_t
));
memset
(
pin_irq_is_hard
,
0
,
sizeof
(
pin_irq_
obj
));
memset
(
pin_irq_is_hard
,
0
,
sizeof
(
pin_irq_
is_hard
));
for
(
int
p
=
0
;
p
<
16
;
++
p
)
{
GPIO_REG_WRITE
(
GPIO_STATUS_W1TC_ADDRESS
,
1
<<
p
);
SET_TRIGGER
(
p
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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