mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-02 16:51:53 +00:00
Modified manager task to avoid crashes.
This commit is contained in:
parent
60e1d4c372
commit
ac7237b0bb
@ -1,5 +1,5 @@
|
|||||||
635E684B79701B039C64EA45C3F84D30=C96BA6CC9F20E1205A6EBDFF40205165
|
635E684B79701B039C64EA45C3F84D30=C96BA6CC9F20E1205A6EBDFF40205165
|
||||||
66BE74F758C12D739921AEA421D593D3=4
|
66BE74F758C12D739921AEA421D593D3=4
|
||||||
8DF89ED150041C4CBC7CB9A9CAA90856=C37D8D153607683CBCB65A289104E87E
|
8DF89ED150041C4CBC7CB9A9CAA90856=D6E44E0C9E8538D2672E3627575EB9A7
|
||||||
DC22A860405A8BF2F2C095E5B6529F12=C37D8D153607683CBCB65A289104E87E
|
DC22A860405A8BF2F2C095E5B6529F12=B7A8998BB86F8064A3F4829332693759
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
|
@ -34,6 +34,8 @@ namespace sta
|
|||||||
UARTSettings settings = { .mode = UARTMode::RX_TX };
|
UARTSettings settings = { .mode = UARTMode::RX_TX };
|
||||||
STM32UART * intf_ptr = new STM32UART(&huart2, settings, mutex);
|
STM32UART * intf_ptr = new STM32UART(&huart2, settings, mutex);
|
||||||
Debug = new PrintableUART(intf_ptr);
|
Debug = new PrintableUART(intf_ptr);
|
||||||
|
|
||||||
|
STA_DEBUG_PRINTLN("UART SUCCESSFULLY INITIALIZED");
|
||||||
}
|
}
|
||||||
} // namespace rtos
|
} // namespace rtos
|
||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
@ -12,18 +12,17 @@
|
|||||||
#include <sta/debug/debug.hpp>
|
#include <sta/debug/debug.hpp>
|
||||||
#include <sta/debug/assert.hpp>
|
#include <sta/debug/assert.hpp>
|
||||||
|
|
||||||
|
#include <sta/rtos/system/events.hpp>
|
||||||
|
|
||||||
typedef StaticTask_t osStaticThreadDef_t;
|
typedef StaticTask_t osStaticThreadDef_t;
|
||||||
|
|
||||||
extern "C" void outputTask(void *);
|
extern "C" void outputTask(void *);
|
||||||
|
|
||||||
namespace sta{
|
extern "C" void startManagerTask(void *)
|
||||||
|
{
|
||||||
namespace rtos{
|
|
||||||
|
|
||||||
extern "C" void startManagerTask(void *)
|
|
||||||
{
|
|
||||||
STA_DEBUG_PRINTLN("INITIALIZED MANAGER TASK");
|
STA_DEBUG_PRINTLN("INITIALIZED MANAGER TASK");
|
||||||
|
|
||||||
|
/*
|
||||||
// Create thread using static allocation
|
// Create thread using static allocation
|
||||||
osThreadId_t outputTaskHandle;
|
osThreadId_t outputTaskHandle;
|
||||||
uint32_t outputTaskBuffer[ 128 ];
|
uint32_t outputTaskBuffer[ 128 ];
|
||||||
@ -39,14 +38,13 @@ namespace sta{
|
|||||||
|
|
||||||
outputTaskHandle = osThreadNew(outputTask, NULL, &outputTask_attributes);
|
outputTaskHandle = osThreadNew(outputTask, NULL, &outputTask_attributes);
|
||||||
STA_ASSERT_MSG(outputTaskHandle != nullptr, "outputTask initialization failed");
|
STA_ASSERT_MSG(outputTaskHandle != nullptr, "outputTask initialization failed");
|
||||||
|
*/
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
// TODO
|
STA_DEBUG_PRINTLN("PING!");
|
||||||
}
|
}
|
||||||
|
|
||||||
osThreadExit();
|
osThreadExit();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ const osThreadAttr_t defaultTask_attributes = {
|
|||||||
.stack_size = 128 * 4,
|
.stack_size = 128 * 4,
|
||||||
.priority = (osPriority_t) osPriorityNormal,
|
.priority = (osPriority_t) osPriorityNormal,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Definitions for managerTask */
|
/* Definitions for managerTask */
|
||||||
osThreadId_t managerTaskHandle;
|
osThreadId_t managerTaskHandle;
|
||||||
uint32_t managerTaskBuffer[ 128 ];
|
uint32_t managerTaskBuffer[ 128 ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user