mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-07 01:57:33 +00:00
Added basic output Task
This commit is contained in:
23
App/Src/tasks/output.cpp
Normal file
23
App/Src/tasks/output.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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();
|
||||
}
|
Reference in New Issue
Block a user