From: Nathael Pajani Date: Tue, 26 Apr 2016 22:59:17 +0000 (+0200) Subject: Adding define for register value combination for timers X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=652f4fb6e1b601e39a2d484d379904652a7efdeb;p=soft%2Flpc122x%2Fcore Adding define for register value combination for timers --- 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 */