From 5bfc6b66bc5e90f4ec51a4746caef43a065ccf78 Mon Sep 17 00:00:00 2001 From: "@CarlWachter" Date: Thu, 14 Dec 2023 17:46:13 +0100 Subject: [PATCH] Added reminder to call startALPAKA --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e8408d..289e63f 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,28 @@ This is the Trajectory Analysis Control OS (TACOS) that serves as a starting poi ## Setting Up TACOS -Clone the repository using `--recurse-submodules` and then add it to an existing CubeIDE project. Be sure to add the include paths for Tacos, sta-core and rtos2-utils to the project with the following steps: +Clone the repository using `--recurse-submodules` and then add it to an existing CubeIDE FreeRTOS project. Be sure to add the include paths for Tacos, sta-core and rtos2-utils to the project with the following steps: ``` Properties -> C/C++ General -> Paths and Symbols -> Includes -> GNU C -> Add... ``` +Under Core/Src/freertos.c you must call startALPAKA() from the default task. It should look like this: +``` +void StartDefaultTask(void *argument) +{ + /* USER CODE BEGIN StartDefaultTask */ + extern void startALPAKA(void *); + startALPAKA(argument); + + /* Infinite loop */ + for(;;) + { + osDelay(1); + } + /* USER CODE END StartDefaultTask */ +} +``` + ## Configuring TACOS Be sure to add a "config.hpp" to the App/Inc/sta directory. This file could look like this: ``` @@ -44,4 +61,4 @@ Be sure to add a "config.hpp" to the App/Inc/sta directory. This file could look #define STA_TACOS_INITIAL_STATE 0 #endif /* INC_STA_CONFIG_HPP_ */ -``` +``` \ No newline at end of file