Closed gaborsimon closed 8 years ago
File: utils.h Problematic macro: #define BIT_GET(reg,bit) ((reg) & (1u << (bit)))
#define BIT_GET(reg,bit) ((reg) & (1u << (bit)))
The macro has to return with TRUE or FALSE. Shift operation is missing, so in this case the macro cannot return with 1 or 0.
File: utils.h Problematic macro:
#define BIT_GET(reg,bit) ((reg) & (1u << (bit)))
The macro has to return with TRUE or FALSE. Shift operation is missing, so in this case the macro cannot return with 1 or 0.