Replace #define with static constexpr for clang-tidy

This commit is contained in:
J. Nick Koston
2026-03-10 13:31:24 -10:00
parent 192080f6d3
commit 20d884a2de
+2 -2
View File
@@ -8,8 +8,8 @@
// Cortex-M0+ exception frame offsets (words)
// When a fault occurs, the CPU pushes: R0, R1, R2, R3, R12, LR, PC, xPSR
#define EF_LR 5
#define EF_PC 6
static constexpr uint32_t EF_LR = 5;
static constexpr uint32_t EF_PC = 6;
static constexpr uint32_t CRASH_MAGIC = 0xDEADBEEF;