summaryrefslogtreecommitdiffstats
path: root/reg/wdog.h
diff options
context:
space:
mode:
Diffstat (limited to 'reg/wdog.h')
-rw-r--r--reg/wdog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reg/wdog.h b/reg/wdog.h
index 8b3b23e..5d9d5eb 100644
--- a/reg/wdog.h
+++ b/reg/wdog.h
@@ -6,7 +6,7 @@
#define WDOG_STCTRLH REG_16(0x40052000) /* Watchdog Status and Control Register High */
#define STCTRLH_DISTESTWDOG 14 /* Functional test mode disable */
#define STCTRLH_BYTESEL 12 /* Byte test mode byte selector */
-#define STCTRLH_BYTESEL_M (uint16_t)(BITS(2) << STCTRLH_BYTESEL)
+#define STCTRLH_BYTESEL_M REG_16_M(STCTRLH_BYTESEL, 2)
#define STCTRLH_TESTSEL 11 /* Functional test mode test selector */
#define STCTRLH_TESTWDOG 10 /* Functional test mode enable */
#define STCTRLH_WAITEN 7 /* Wait mode WDOG enable */