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/Storage/FileStore.cpp
parenta38e510ce9bd34bce7fab6923297cb11b0e161a7 (diff)
Use new interrupt enable/disable functions in CoreN2G
Diffstat (limited to 'src/Storage/FileStore.cpp')
-rw-r--r--src/Storage/FileStore.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Storage/FileStore.cpp b/src/Storage/FileStore.cpp
index d6eaff2e..cc82d483 100644
--- a/src/Storage/FileStore.cpp
+++ b/src/Storage/FileStore.cpp
@@ -170,22 +170,22 @@ bool FileStore::Close() noexcept
case FileUseMode::readOnly:
case FileUseMode::readWrite:
{
- const irqflags_t flags = cpu_irq_save();
+ const irqflags_t flags = IrqSave();
if (openCount > 1)
{
--openCount;
- cpu_irq_restore(flags);
+ IrqRestore(flags);
return true;
}
else if (inInterrupt())
{
closeRequested = true;
- cpu_irq_restore(flags);
+ IrqRestore(flags);
return true;
}
else
{
- cpu_irq_restore(flags);
+ IrqRestore(flags);
return ForceClose();
}
}
@@ -193,7 +193,7 @@ bool FileStore::Close() noexcept
case FileUseMode::invalidated:
default:
{
- const irqflags_t flags = cpu_irq_save();
+ const irqflags_t flags = IrqSave();
if (openCount > 1)
{
--openCount;
@@ -202,7 +202,7 @@ bool FileStore::Close() noexcept
{
usageMode = FileUseMode::free;
}
- cpu_irq_restore(flags);
+ IrqRestore(flags);
return true;
}
}
@@ -422,9 +422,9 @@ void FileStore::Duplicate() noexcept
case FileUseMode::readOnly:
case FileUseMode::readWrite:
{
- const irqflags_t flags = cpu_irq_save();
+ const irqflags_t flags = IrqSave();
++openCount;
- cpu_irq_restore(flags);
+ IrqRestore(flags);
}
break;