Are there any advantages of using a macro for bit positions over using a simple bit mask?
The only ones I can think of are:
o not having magic numbers throughout your code.
Are there any others?
instead of using a simple bit mask:Code:
#define BIT3 (0x1 <<3)
uiData |= BIT3;
uiData |= 0x08;