diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-04-19 22:58:29 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-04-19 22:58:29 +0300 |
commit | 3db926aa900541ed770a66c99d14e9d13f4fa5f0 (patch) | |
tree | 46a12cd392b8657117e44cf708fe4de62371d27d /src/GCodes/GCodes.h | |
parent | 19884205c02c0d9af93c46a79eb5f4f91feb7080 (diff) |
Added a separate Move task
Diffstat (limited to 'src/GCodes/GCodes.h')
-rw-r--r-- | src/GCodes/GCodes.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/GCodes/GCodes.h b/src/GCodes/GCodes.h index 970ace92..d6c43a49 100644 --- a/src/GCodes/GCodes.h +++ b/src/GCodes/GCodes.h @@ -708,25 +708,6 @@ private: static constexpr int8_t ObjectModelAuxStatusReportType = 100; // A non-negative value distinct from any M408 report type }; -// Flag that a new move is available for consumption by the Move subsystem -// Code that sets up a new move should ensure that segmentsLeft is zero, then set up all the move parameters, -// then call this function to update SegmentsLeft safely in a multi-threaded environment -inline void GCodes::NewMoveAvailable(unsigned int sl) noexcept -{ - moveBuffer.totalSegments = sl; - __DMB(); // make sure that all the move details have been written first - moveBuffer.segmentsLeft = sl; // set the number of segments to indicate that a move is available to be taken -} - -// Flag that a new move is available for consumption by the Move subsystem -// This version is for when totalSegments has already be set up. -inline void GCodes::NewMoveAvailable() noexcept -{ - const unsigned int sl = moveBuffer.totalSegments; - __DMB(); // make sure that the move details have been written first - moveBuffer.segmentsLeft = sl; // set the number of segments to indicate that a move is available to be taken -} - // Get the total baby stepping offset for an axis inline float GCodes::GetTotalBabyStepOffset(size_t axis) const noexcept { |