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:
Diffstat (limited to 'src/RepRap.h')
-rw-r--r--src/RepRap.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/RepRap.h b/src/RepRap.h
index 1c403b65..842b8d64 100644
--- a/src/RepRap.h
+++ b/src/RepRap.h
@@ -80,6 +80,10 @@ public:
Scanner& GetScanner() const;
PrintMonitor& GetPrintMonitor() const;
+#if SUPPORT_IOBITS
+ PortControl& GetPortControl() const;
+#endif
+
void Tick();
uint16_t GetTicksInSpinState() const;
bool IsStopped() const;
@@ -114,6 +118,10 @@ private:
Scanner* scanner;
PrintMonitor* printMonitor;
+#if SUPPORT_IOBITS
+ PortControl *portControl;
+#endif
+
Tool* toolList;
Tool* currentTool;
uint32_t lastWarningMillis; // When we last sent a warning message for things that can happen very often
@@ -148,6 +156,10 @@ inline Roland& RepRap::GetRoland() const { return *roland; }
inline Scanner& RepRap::GetScanner() const { return *scanner; }
inline PrintMonitor& RepRap::GetPrintMonitor() const { return *printMonitor; }
+#if SUPPORT_IOBITS
+inline PortControl& RepRap::GetPortControl() const { return *portControl; }
+#endif
+
inline bool RepRap::Debug(Module m) const { return debug & (1 << m); }
inline Module RepRap::GetSpinningModule() const { return spinningModule; }