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:
Diffstat (limited to 'src/Linux/DataTransfer.cpp')
-rw-r--r--src/Linux/DataTransfer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Linux/DataTransfer.cpp b/src/Linux/DataTransfer.cpp
index 69c09cd9..bd1312fa 100644
--- a/src/Linux/DataTransfer.cpp
+++ b/src/Linux/DataTransfer.cpp
@@ -304,7 +304,7 @@ pre(bytesToTransfer <= inBuffer.limit; bytesToTransfer <= outBuffer.limit)
// Enable SPI and notify the SBC we are ready
#if SAME5x
- SbcSpiSercom->SPI.INTFLAG.reg = 0xFF; // clear any pending interrupts
+ SbcSpiSercom->SPI.INTFLAG.reg = 0xFF; // clear any pending interrupts
SbcSpiSercom->SPI.INTENSET.reg = SERCOM_SPI_INTENSET_SSL; // enable the start of transfer (SS low) interrupt
SbcSpiSercom->SPI.CTRLA.reg |= SERCOM_SPI_CTRLA_ENABLE;
while (SbcSpiSercom->SPI.SYNCBUSY.reg & (SERCOM_SPI_SYNCBUSY_SWRST | SERCOM_SPI_SYNCBUSY_ENABLE)) { };
@@ -494,9 +494,9 @@ void DataTransfer::Init() noexcept
}
}
-void DataTransfer::SetSBCTask(TaskHandle handle) noexcept
+void DataTransfer::InitFromTask() noexcept
{
- linuxTaskHandle = handle;
+ linuxTaskHandle = TaskBase::GetCallerTaskHandle();
}
void DataTransfer::Diagnostics(MessageType mtype) noexcept