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>2019-12-09 22:47:33 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-12-09 22:47:33 +0300
commit14db90f06f74494ee811cf1ae4f12190756ed2ca (patch)
treec5c8332e39db09a5df8c4475cfc03e184ed46016 /src/RepRap.h
parentbf7be88b40ee5b48aacd4d78917cfaa94f7aa3d2 (diff)
Support loading IAP in RAM
Support loading IAP in RAM instead of flash, to make more flash memory available for the main firmware
Diffstat (limited to 'src/RepRap.h')
-rw-r--r--src/RepRap.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/RepRap.h b/src/RepRap.h
index 6fd8a4fa..9e176402 100644
--- a/src/RepRap.h
+++ b/src/RepRap.h
@@ -146,6 +146,11 @@ public:
bool WriteToolParameters(FileStore *f, const bool forceWriteOffsets) const; // save some information in config-override.g
#endif
+ // Firmware update operations
+ bool CheckFirmwareUpdatePrerequisites(const StringRef& reply);
+ void UpdateFirmware();
+ void StartIap();
+
void ReportInternalError(const char *file, const char *func, int line) const; // Report an internal error
static uint32_t DoDivide(uint32_t a, uint32_t b); // helper function for diagnostic tests
@@ -221,7 +226,6 @@ private:
Module spinningModule;
bool stopped;
bool active;
- bool resetting;
bool processingConfig;
#if HAS_LINUX_INTERFACE
bool usingLinuxInterface;
@@ -239,7 +243,9 @@ inline uint16_t RepRap::GetExtrudersInUse() const { return activeExtruders; }
inline uint16_t RepRap::GetToolHeatersInUse() const { return activeToolHeaters; }
inline bool RepRap::IsStopped() const { return stopped; }
+#define STRINGIZE(s) #s
#define INTERNAL_ERROR do { reprap.ReportInternalError((__FILE__), (__func__), (__LINE__)); } while(0)
+#define INTERNAL_ERROR_MESSAGE "Internal error at " __FILE__ "(" STRINGIZE(__LINE__) ")"
#endif