Files
crosspoint-reader-mod/lib/hal/HalSystem.h
Xuan-Son Nguyen c40e92e4d1 fix: dump crash log without usb plugged, bump release log to INFO (#1332)
## Summary

Follow-up
https://github.com/crosspoint-reader/crosspoint-reader/pull/1145

- Fix log not being record without USB connected
- Bump release log to INFO for more logging details

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? **NO**

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-03-06 22:05:23 +01:00

21 lines
326 B
C++

#pragma once
#include <cstdint>
#include <string>
namespace HalSystem {
struct StackFrame {
uint32_t sp;
uint32_t spp[8];
};
void begin();
// Dump panic info to SD card if necessary
void checkPanic();
void clearPanic();
std::string getPanicInfo(bool full = false);
bool isRebootFromPanic();
} // namespace HalSystem