Hardware Abstraction Layer for FreeRTOS
|
Go to the source code of this file.
Macros | |
#define | WEAK __attribute__ ((weak)) |
#define | ALIAS(x) __attribute__ ((alias(#x))) |
#define | INTERRUPT(x) __attribute__ ((interrut(x))) |
#define | SECTION(x) __attribute__ ((section(x))) |
#define | NAKED __attribute__ ((naked)) |
#define | USED __attribute__ ((used)) |
#define | PACKED __attribute__ ((__packed__)) |
#define | NO_REORDER |
#define | ALIGN(x) __attribute__((aligned(x))) |
#define | NSEC_PER_SEC 1000000000ULL |
#define | BIT(x) ((uint32_t) (1UL << (x))) |
#define | BITS(x, mask, shift) ((uint32_t) ((((uint32_t) (x))<<(shift)) & (mask))) |
#define | BITS_INV(x, mask, shift) ((uint32_t) ((((uint32_t) (x)) & (mask))>>(shift))) |
#define | BITS_MASK(bits, shift) ((uint32_t) ((~(0xFFFFFFFFUL << (bits))) << (shift))) |
#define | BIT64(x) ((uint64_t) (1ULL << (x))) |
#define | BITS64(x, mask, shift) ((uint64_t) ((((uint64_t) (x))<<(shift)) & (mask))) |
#define | BITS64_INV(x, mask, shift) ((uint64_t) ((((uint64_t) (x)) & (mask))>>(shift))) |
#define | BITS64_MASK(bits, shift) ((uint64_t) ((~(0xFFFFFFFFFFFFFFFFULL << (bits))) << (shift))) |
#define | ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
#define | DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) |
#define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | swap32(d) |
#define | swap16(d) |
#define | cpu_to_be32(d) swap32(d) |
#define | be32_to_cpu(d) swap32(d) |
#define | cpu_to_be16(d) swap16(d) |
#define | be16_to_cpu(d) swap16(d) |
#define | cpu_to_le32(d) d |
#define | le32_to_cpu(d) d |
#define | cpu_to_le16(d) d |
#define | le16_to_cpu(d) d |