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>2020-07-10 15:18:34 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-07-10 15:18:34 +0300
commit320756c21f985755055a26a83edf0a9950f691df (patch)
tree9089e8b27f3a5d08817f1cffe006ffaa3bf98cc3 /src/RepRapFirmware.h
parenta75ad424fe8f40a94951cd339892ddd0d73fbfa6 (diff)
Changed Duet 3 Mini build to use CoreN2G
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r--src/RepRapFirmware.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/RepRapFirmware.h b/src/RepRapFirmware.h
index bdbf003e..0daac02f 100644
--- a/src/RepRapFirmware.h
+++ b/src/RepRapFirmware.h
@@ -385,23 +385,6 @@ inline void SetBasePriority(uint32_t prio) noexcept
__set_BASEPRI(prio << (8 - __NVIC_PRIO_BITS));
}
-// Atomic section locker, alternative to InterruptCriticalSectionLocker (is safe to call from within an ISR, and may be faster)
-class AtomicCriticalSectionLocker
-{
-public:
- AtomicCriticalSectionLocker() : flags(cpu_irq_save())
- {
- }
-
- ~AtomicCriticalSectionLocker()
- {
- cpu_irq_restore(flags);
- }
-
-private:
- irqflags_t flags;
-};
-
// Classes to facilitate range-based for loops that iterate from 0 up to just below a limit
template<class T> class SimpleRangeIterator
{