From 652f4fb6e1b601e39a2d484d379904652a7efdeb Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 27 Apr 2016 00:59:17 +0200 Subject: [PATCH] Adding define for register value combination for timers --- include/core/lpc_regs_12xx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/core/lpc_regs_12xx.h b/include/core/lpc_regs_12xx.h index 60e1418..1959fff 100644 --- 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 */ -- 2.43.0