Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2018-03-28 15:02:45 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-03-28 15:02:45 +0300
commit7dc69052785af80f68e09a136c6e78d47f33ff0e (patch)
tree6b22ddb5f969ee41ee78607968b6fbaf07ba7999 /src/Platform.h
parentb29378abe0e5d9608e73f32d07c6871616f5fd28 (diff)
Verison 2.0alpha1
Initial build using FreeRTOS
Diffstat (limited to 'src/Platform.h')
-rw-r--r--src/Platform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 253b66ec..f1a16a35 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -181,7 +181,12 @@ enum class SoftwareResetReason : uint16_t
hardFault = 0x30, // most exceptions get escalated to a hard fault
stuckInSpin = 0x40, // we got stuck in a Spin() function for too long
wdtFault = 0x50, // secondary watchdog
+ usageFault = 0x60,
otherFault = 0x70,
+ stackOverflow = 0x80,
+ assertCalled = 0xA0,
+
+ // Bits that are or'ed in
inAuxOutput = 0x0800, // this bit is or'ed in if we were in aux output at the time
inLwipSpin = 0x2000, // we got stuck in a call to LWIP for too long
inUsbOutput = 0x4000, // this bit is or'ed in if we were in USB output at the time
@@ -713,7 +718,6 @@ private:
uint32_t errorCodeBits;
void InitialiseInterrupts();
- void GetStackUsage(uint32_t* currentStack, uint32_t* maxStack, uint32_t* neverUsed) const;
// DRIVES
void SetDriverCurrent(size_t driver, float current, int code);