From b0020992348e24fdfce52caf8ac8ad8982e993c6 Mon Sep 17 00:00:00 2001 From: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com> Date: Wed, 22 May 2024 17:08:19 -0700 Subject: [PATCH] Fixing changes to OSAL Tasks (#65) Co-authored-by: Michael D Starch --- LedBlinker/Top/LedBlinkerTopology.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LedBlinker/Top/LedBlinkerTopology.cpp b/LedBlinker/Top/LedBlinkerTopology.cpp index 560007a..186f9ab 100644 --- a/LedBlinker/Top/LedBlinkerTopology.cpp +++ b/LedBlinker/Top/LedBlinkerTopology.cpp @@ -142,7 +142,7 @@ void setupTopology(const TopologyState& state) { Os::TaskString name("ReceiveTask"); // Uplink is configured for receive so a socket task is started comm.configure(state.hostname, state.port); - comm.startSocketTask(name, true, COMM_PRIORITY, Default::STACK_SIZE); + comm.start(name, true, COMM_PRIORITY, Default::STACK_SIZE); } } @@ -158,7 +158,7 @@ void startSimulatedCycle(U32 milliseconds) { // Main loop while (cycling) { LedBlinker::blockDrv.callIsr(); - Os::Task::delay(milliseconds); + Os::Task::delay(Fw::Time(milliseconds/1000, milliseconds % 1000)); cycleLock.lock(); cycling = cycleFlag; @@ -178,8 +178,8 @@ void teardownTopology(const TopologyState& state) { freeThreads(state); // Other task clean-up. - comm.stopSocketTask(); - (void)comm.joinSocketTask(nullptr); + comm.stop(); + (void)comm.join(); // Resource deallocation cmdSeq.deallocateBuffer(mallocator);