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:
6e7eb06
)
Use the saved flags for intr reset. Do not erase possible other interrupt sources.
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Wed, 22 Jul 2015 00:45:05 +0000
(
02:45
+0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/timers.c
patch
|
blob
|
history
diff --git
a/drivers/timers.c
b/drivers/timers.c
index
caf7e96
..
bf4529a
100644
(file)
--- a/
drivers/timers.c
+++ b/
drivers/timers.c
@@
-57,7
+57,7
@@
void TIMER_Handler(struct timer_device* timer)
uint32_t intr_flags = regs->int_reg; /* Backup the flags */
/* Clear the interrupt */
- regs->int_reg =
0xFF
;
+ regs->int_reg =
intr_flags
;
/* And call the user routine if one has been registered */
if (timer->callback != NULL) {
timer->callback(intr_flags);
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 !