mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 09:37:34 +00:00
Added dummy task. Still a lot of compiler errors to be fixed
This commit is contained in:
34
App/Src/tasks/dummy.cpp
Normal file
34
App/Src/tasks/dummy.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* dummy.cpp
|
||||
*
|
||||
* Created on: 22 Sep 2023
|
||||
* Author: Dario
|
||||
*/
|
||||
|
||||
#include <tasks/dummy.hpp>
|
||||
#include <sta/debug/debug.hpp>
|
||||
|
||||
#include <cmsis_os2.h>
|
||||
|
||||
|
||||
namespace demo
|
||||
{
|
||||
DummyTask::DummyTask(const char* name)
|
||||
: TacosThread(name, osPriorityNormal)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void DummyTask::init()
|
||||
{
|
||||
STA_DEBUG_PRINTLN("Initialized dummy task!");
|
||||
}
|
||||
|
||||
void DummyTask::func()
|
||||
{
|
||||
STA_DEBUG_PRINT("Executing ");
|
||||
STA_DEBUG_PRINTLN(this->getName());
|
||||
}
|
||||
} // namespace demo
|
||||
|
||||
|
Reference in New Issue
Block a user