Ben Tyner | 92e39fd | 2020-02-05 18:11:02 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | /** |
| 4 | * @file hei_user_defines.hpp |
Ben Tyner | 0205f3b | 2020-02-24 10:24:47 -0600 | [diff] [blame] | 5 | * @brief The purpose of this file is to provide defines that are required by |
| 6 | * the hardware error isolator library (libhei) |
Ben Tyner | 92e39fd | 2020-02-05 18:11:02 -0600 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <assert.h> |
| 10 | #include <inttypes.h> |
| 11 | #include <stdio.h> |
| 12 | |
| 13 | #define HEI_INF(...) \ |
| 14 | { \ |
| 15 | printf("HWDIAGS I> " __VA_ARGS__); \ |
| 16 | printf("\n"); \ |
| 17 | } |
| 18 | |
| 19 | #define HEI_ERR(...) \ |
| 20 | { \ |
| 21 | printf("HWDIAGS E> " __VA_ARGS__); \ |
| 22 | printf("\n"); \ |
| 23 | } |
| 24 | |
| 25 | #define HEI_ASSERT(expression) assert(expression); |