Add 16bits versions of defines for Autolimit and autoreload register fields
authorNathael Pajani <nathael.pajani@ed3l.fr>
Fri, 28 Dec 2018 11:00:15 +0000 (12:00 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Fri, 28 Dec 2018 11:00:15 +0000 (12:00 +0100)
include/drivers/sctimers.h

index 16a3893..292eaea 100644 (file)
@@ -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)