refactor: moved startup from rtos2-utils to TACOS

This commit is contained in:
CarlWachter
2024-11-03 12:43:46 +01:00
committed by carlwachter
parent fa3f420fa6
commit 4ac600d2b7
3 changed files with 58 additions and 10 deletions

View File

@@ -11,13 +11,13 @@ Properties -> C/C++ General -> Paths and Symbols -> Includes -> GNU C++ -> Add..
Properties -> C/C++ General -> Paths and Symbols -> Source Location -> Add Folder...
```
Create a new thread via the project's IOC and call `startALPAKA()` from this thread. If your thread is called `defaultTask`, the corresponding function `StartDefaultTask` generated in `Core/Src/freertos.c` should look like this:
Create a new thread via the project's IOC and call `startTACOS()` from this thread. If your thread is called `defaultTask`, the corresponding function `StartDefaultTask` generated in `Core/Src/freertos.c` should look like this:
```
void StartDefaultTask(void *argument)
{
/* USER CODE BEGIN StartDefaultTask */
extern void startALPAKA(void *);
startALPAKA(argument);
extern void startTACOS(void *);
startTACOS(argument);
/* Infinite loop */
for(;;)