Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 1 | #include <hei_main.hpp> |
| 2 | |
| 3 | namespace analyzer |
| 4 | { |
| 5 | |
| 6 | // Quick test that we can call the core libhei functions. This function |
| 7 | // is called from the attention handler when a checkstop event is active. |
| 8 | void analyzeHardware() |
| 9 | { |
| 10 | using namespace libhei; |
| 11 | |
| 12 | // Add some chips for error isolation |
| 13 | std::vector<Chip> chipList; |
| 14 | chipList.emplace_back(Chip{"proc", static_cast<ChipType_t>(0xdeadbeef)}); |
| 15 | |
| 16 | // Isolation data that will be populated by isolator |
| 17 | IsolationData isoData{}; |
| 18 | |
| 19 | // Isolate active hardware errors in chips |
| 20 | initialize(nullptr, 0); |
| 21 | isolate(chipList, isoData); |
| 22 | uninitialize(); |
| 23 | } |
| 24 | |
| 25 | } // namespace analyzer |