Skip to content

Commit 66e7a26

Browse files
committed
npcx_monitor: do not redefine IS_BIT_SET
1 parent 481046e commit 66e7a26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zephyr/shim/chip/npcx/npcx_monitor/registers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
/* Bit functions */
6161
#define SET_BIT(reg, bit) ((reg) |= (0x1 << (bit)))
6262
#define CLEAR_BIT(reg, bit) ((reg) &= (~(0x1 << (bit))))
63+
#ifndef IS_BIT_SET
6364
#define IS_BIT_SET(reg, bit) (((reg) >> (bit)) & (0x1))
65+
#endif
6466
#define UPDATE_BIT(reg, bit, cond) \
6567
{ \
6668
if (cond) \

0 commit comments

Comments
 (0)