Go to the documentation of this file.
43 #include "pc_generic.h"
44 #define HELLO_MSG "\n" __FILE__ ", built on " __DATE__ " at " __TIME__ "\n"
58 typedef union _UINT8 {
112 typedef union _UINT16 {
195 #define LSB(a) ((a).u8Bytes[0])
202 #define MSB(a) ((a).u8Bytes[1])
226 typedef union _UINT32 {
249 uint16_t u16Words[2];
361 #define LOWER_WORD(a) ((a).u16Words[0])
368 #define UPPER_WORD(a) ((a).u16Words[1])
375 #define LOWER_LSB(a) ((a).u8Bytes[0])
382 #define LOWER_MSB(a) ((a).u8Bytes[1])
389 #define UPPER_LSB(a) ((a).u8Bytes[2])
396 #define UPPER_MSB(a) ((a).u8Bytes[3])
421 #define DISABLE FALSE
466 #define BIT_SET_MASK(var, mask) ((var) |= (mask))
473 #define BIT_CLEAR_MASK(var, mask) ((var) &= (~(mask)))
480 #define BIT_TOGGLE_MASK(var, mask) ((var) ^= (mask))
490 #define IS_BIT_SET_MASK(var, mask) (((var) & (mask)))
500 #define IS_BIT_CLEAR_MASK(var, mask) ((~(var) & (mask)))
508 #define BIT_SET(var, bitnum) ((var) |= (1 << (bitnum)))
515 #define BIT_CLEAR(var, bitnum) ((var) &= (~(1 << (bitnum))))
522 #define BIT_TOGGLE(var, bitnum) ((var) ^= (1 << (bitnum)))
531 #define IS_BIT_SET(var, bitnum) ((var) & (1 << (bitnum)))
540 #define IS_BIT_CLEAR(var, bitnum) (~(var) & ((1 << (bitnum))))