Added basic task creating in manager task

This commit is contained in:
dario
2023-09-01 22:39:14 +02:00
parent ac7237b0bb
commit 96e9213b1a
4 changed files with 49 additions and 5 deletions

View File

@@ -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();