From 30c477a031a51b60273d133da78f328db6abd5ca Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 11 Apr 2019 15:58:40 +0200 Subject: [PATCH] add LPC_TIMER_INT_RESET_ON_MATCH define --- include/drivers/countertimers.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drivers/countertimers.h b/include/drivers/countertimers.h index 6701937..e7bb245 100644 --- a/include/drivers/countertimers.h +++ b/include/drivers/countertimers.h @@ -69,6 +69,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_ON_MATCH \ + (LPC_TIMER_INTERRUPT_ON_MATCH | LPC_TIMER_RESET_ON_MATCH) #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_SHIFT(x) (((x) & 0x03) * 3) -- 2.43.0