TACOS/App/Src/tasks/output.cpp
2023-08-31 10:33:46 +02:00

24 lines
317 B
C++

/*
* manager.cpp
*
* Created on: Aug 31, 2023
* Author: Carl
*/
#include <cmsis_os.h>
#include <string>
#include <usart.h>
extern "C" void outputTask(void *)
{
std::string str("Hello World!");
for (char c : str)
{
HAL_UART_Transmit(&huart2, (uint8_t*)&c, 1, HAL_MAX_DELAY);
}
osThreadExit();
}