From: Nathael Pajani Date: Thu, 11 Apr 2019 13:58:40 +0000 (+0200) Subject: add LPC_TIMER_INT_RESET_ON_MATCH define X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=30c477a031a51b60273d133da78f328db6abd5ca;p=soft%2Flpc122x%2Fcore add LPC_TIMER_INT_RESET_ON_MATCH define --- 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)