We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 481046e commit 66e7a26Copy full SHA for 66e7a26
zephyr/shim/chip/npcx/npcx_monitor/registers.h
@@ -60,7 +60,9 @@
60
/* Bit functions */
61
#define SET_BIT(reg, bit) ((reg) |= (0x1 << (bit)))
62
#define CLEAR_BIT(reg, bit) ((reg) &= (~(0x1 << (bit))))
63
+#ifndef IS_BIT_SET
64
#define IS_BIT_SET(reg, bit) (((reg) >> (bit)) & (0x1))
65
+#endif
66
#define UPDATE_BIT(reg, bit, cond) \
67
{ \
68
if (cond) \
0 commit comments