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:
3cdb29a
)
Adding define for register value combination for timers
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 26 Apr 2016 22:59:17 +0000
(
00:59
+0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
include/core/lpc_regs_12xx.h
patch
|
blob
|
history
diff --git
a/include/core/lpc_regs_12xx.h
b/include/core/lpc_regs_12xx.h
index
60e1418
..
1959fff
100644
(file)
--- a/
include/core/lpc_regs_12xx.h
+++ b/
include/core/lpc_regs_12xx.h
@@
-720,6
+720,8
@@
struct lpc_timer
#define LPC_TIMER_INTERRUPT_ON_MATCH 0x01
#define LPC_TIMER_RESET_ON_MATCH 0x02
#define LPC_TIMER_STOP_ON_MATCH 0x04
+#define LPC_TIMER_INT_RESET_AND_STOP_ON_MATCH \
+ (LPC_TIMER_INTERRUPT_ON_MATCH | LPC_TIMER_RESET_ON_MATCH | LPC_TIMER_STOP_ON_MATCH)
#define LPC_TIMER_MATCH_ERASE(x) (0x07 << (((x) & 0x03) * 3))
#define LPC_TIMER_MATCH_SHIFT(x) (((x) & 0x03) * 3)
/* Capture internal configuration */
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 !