Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
131b756
)
Fix setup on interupts on GPIO
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 26 Apr 2016 22:56:47 +0000
(
00:56
+0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio.c
b/drivers/gpio.c
index
be02053
..
0773efb
100644
(file)
--- a/
drivers/gpio.c
+++ b/
drivers/gpio.c
@@
-145,6
+145,9
@@
int set_gpio_callback(void (*callback) (uint32_t), const struct pio* gpio, uint8
default: /* Not handled, do not activate the interrupt */
return -EINVAL;
}
+ /* Clear edge detection logic */
+ gpio_port->int_clear |= (1 << gpio->pin);
+ /* Enable interrupt */
gpio_port->int_enable |= (1 << gpio->pin);
NVIC_EnableIRQ(irq);
return 0;
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !