From a47d013c28fea50b09afc9b22085af3216be7a8a Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Fri, 28 Dec 2018 12:00:15 +0100 Subject: [PATCH] Add 16bits versions of defines for Autolimit and autoreload register fields --- include/drivers/sctimers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/drivers/sctimers.h b/include/drivers/sctimers.h index 16a3893..292eaea 100644 --- a/include/drivers/sctimers.h +++ b/include/drivers/sctimers.h @@ -106,8 +106,12 @@ struct lpc_sct_timer #define LPC_SCT_CLK_FALLING_IN(x) ((((x) * 2 ) + 1) << 3) /* Other */ #define LPC_SCT_NORELOAD (0x01 << 7) +#define LPC_SCT_NORELOAD_L (0x01 << 7) +#define LPC_SCT_NORELOAD_H (0x01 << 8) #define LPC_SCT_IN_EVT_SYNC(x) ((0x01 << ((x) & 0x03)) << 9) #define LPC_SCT_AUTOLIMIT (0x01 << 17) +#define LPC_SCT_AUTOLIMIT_L (0x01 << 17) +#define LPC_SCT_AUTOLIMIT_H (0x01 << 18) /* Control register */ #define LPC_SCT_DOWN (0x01 << 0) -- 2.43.0