Index: Common.h =================================================================== diff -u -rca1d590217b1bfd14f0e0682f88e04de076ff199 -rc8d764933ccdc4a185131d77bbcc106a9223ae6b --- Common.h (.../Common.h) (revision ca1d590217b1bfd14f0e0682f88e04de076ff199) +++ Common.h (.../Common.h) (revision c8d764933ccdc4a185131d77bbcc106a9223ae6b) @@ -195,7 +195,18 @@ #define GET_TOGGLE(v, l, h) ((v) == (l) ? (h) : (l)) ///< Macro toggles a value #define BIT_BY_POS(p) (1U << (p)) ///< Macro returns a bit mask for a bit of given position #define RAD2DEG(r) ((r) * 180.0F / PI) ///< Macro converts radians to degrees +#define BIT(nr) (1UL << (nr)) ///< Macro for bit mask +#define BITS_PER_LONG 32 +#define BIT0 0 ///< Macro for bit position 0 +#define BIT1 1 ///< Macro for bit position 1 +#define BIT2 2 ///< Macro for bit position 2 +#define BIT3 3 ///< Macro for bit position 3 +#define BIT4 4 ///< Macro for bit position 4 +#define BIT5 5 ///< Macro for bit position 5 +#define BIT6 6 ///< Macro for bit position 6 +#define BIT7 7 ///< Macro for bit position 7 + /// Macro to set a specific alarm with 1 piece of unsigned 32-bit alarm data. #define SET_ALARM_WITH_1_U32_DATA(a,d1) { \ ALARM_DATA_T dat1; \