mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-07 01:57:33 +00:00
Added basic task creating in manager task
This commit is contained in:
@@ -9,14 +9,16 @@
|
||||
#include <string>
|
||||
#include <usart.h>
|
||||
|
||||
#include <sta/debug/debug.hpp>
|
||||
|
||||
|
||||
extern "C" void outputTask(void *)
|
||||
{
|
||||
std::string str("Hello World!");
|
||||
|
||||
for (char c : str)
|
||||
while (true)
|
||||
{
|
||||
HAL_UART_Transmit(&huart2, (uint8_t*)&c, 1, HAL_MAX_DELAY);
|
||||
STA_DEBUG_PRINTLN("OUTPUT TASK RUNNING");
|
||||
|
||||
osThreadYield();
|
||||
}
|
||||
|
||||
osThreadExit();
|
||||
|
Reference in New Issue
Block a user