Adding define for register value combination for timers
authorNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 26 Apr 2016 22:59:17 +0000 (00:59 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
include/core/lpc_regs_12xx.h

index 60e1418..1959fff 100644 (file)
@@ -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 */