diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-04-02 13:46:24 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-04-02 13:46:24 +0300 |
commit | 52afd5e7f34200a7ae9d3d9b56e95acc5300c6d0 (patch) | |
tree | d57d39053510c8ea26e23b4e3bc1c5cabbf70141 /src/InputMonitors | |
parent | a38e510ce9bd34bce7fab6923297cb11b0e161a7 (diff) |
Use new interrupt enable/disable functions in CoreN2G
Diffstat (limited to 'src/InputMonitors')
-rw-r--r-- | src/InputMonitors/InputMonitor.cpp | 4 |
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 { |