ioLibrary for Cortex M series
|
![]() |
Macros | |
#define | MEM_FREE(mem_p) do{ if(mem_p) { free(mem_p); mem_p = NULL; } }while(0) |
#define | BITSET(var_v, bit_v) (var_v |= bit_v) |
#define | BITCLR(var_v, bit_v) (var_v &= ~(bit_v)) |
Typedefs | |
typedef union long2char_t | long2char |
typedef union short2char_t | short2char |
Simple Macro Utilities.
#define MEM_FREE | ( | mem_p) | do{ if(mem_p) { free(mem_p); mem_p = NULL; } }while(0) |
#define BITSET | ( | var_v, | |
bit_v | |||
) | (var_v |= bit_v) |
#define BITCLR | ( | var_v, | |
bit_v | |||
) | (var_v &= ~(bit_v)) |
General purpose type change union (32bit <-> 8bit).
General purpose type change union (16bit <-> 8bit).