|
| #define | UNUSED(var) do { (void)(var); } while (0) |
| |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| |
| #define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| |
| #define | cassert(predicate, file) impl_cassert_line(predicate, __LINE__, file) |
| |
| #define | impl_paste(a, b) a##b |
| |
| #define | impl_cassert_line(predicate, line, file) typedef char impl_paste(assertion_failed_##file##_, line)[2 * !!(predicate) - 1] |
| |
| #define | BIT(x) (1UL << (uint32_t)(x)) |
| |
| #define | ct_assert(e) enum LENGTH_CHECK { ct_assert_value = 1 / ((!(!(e)))) } |
| |
| #define | __IRQ |
| |
| #define | __ISR __IRQ |
| |