#define REASON0_KBRST 0x02
#define REASON0_POWUP 0x01
#define UNIT_RESET\
- ((REASON1_CPUWD << 8) |\
- REASON0_POWUP | REASON0_COPRST | REASON0_KBRST |\
- REASON0_BPRST | REASON0_SWURST | REASON0_WDRST)
-#define CORE_RESET REASON0_SWCRST
+ (REASON0_POWUP | REASON0_COPRST | REASON0_KBRST |\
+ REASON0_BPRST | REASON0_SWURST | REASON0_WDRST)
+#define CORE_RESET ((REASON1_CPUWD << 8) | REASON0_SWCRST)
bool qrio_reason_unitrst(void)
{