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>2021-04-02 13:46:24 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-04-02 13:46:24 +0300
commit52afd5e7f34200a7ae9d3d9b56e95acc5300c6d0 (patch)
treed57d39053510c8ea26e23b4e3bc1c5cabbf70141 /src/InputMonitors
parenta38e510ce9bd34bce7fab6923297cb11b0e161a7 (diff)
Use new interrupt enable/disable functions in CoreN2G
Diffstat (limited to 'src/InputMonitors')
-rw-r--r--src/InputMonitors/InputMonitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InputMonitors/InputMonitor.cpp b/src/InputMonitors/InputMonitor.cpp
index 45e6a9a3..5f797606 100644
--- a/src/InputMonitors/InputMonitor.cpp
+++ b/src/InputMonitors/InputMonitor.cpp
@@ -26,10 +26,10 @@ bool InputMonitor::Activate(bool useInterrupt) noexcept
if (threshold == 0)
{
// Digital input
- const irqflags_t flags = cpu_irq_save();
+ const irqflags_t flags = IrqSave();
ok = !useInterrupt || port.AttachInterrupt(CommonDigitalPortInterrupt, InterruptMode::change, CallbackParameter(this));
state = port.ReadDigital();
- cpu_irq_restore(flags);
+ IrqRestore(flags);
}
else
{