Skip to content

Commit 9904e33

Browse files
ZhaoxiangJinmmahadevan108
authored andcommitted
drivers fsl_elemu: undef BIT if already defined
Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent cfb001b commit 9904e33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mcux/mcux-sdk-ng/drivers/elemu/fsl_elemu.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ static status_t ELEMU_StartupWait(ELEMU_Type *mu);
2626
#endif
2727
/* ELEMU driver */
2828

29+
/* undef BIT in case of redefinition
30+
* error: "BIT" redefined
31+
*/
32+
#ifdef BIT
33+
#undef BIT
34+
#endif
2935
#define BIT(x) (((uint32_t)1u << (x)))
3036
#define MU_READ_HEADER (0x01u)
3137
#define READ_RETRIES (0x5u)

0 commit comments

Comments
 (0)