mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-11 02:26:00 +00:00
Changed execution order in ALPAKA initialization
This commit is contained in:
parent
1028264eef
commit
cf5466fe55
28
include/sta/rtos/debug.hpp
Normal file
28
include/sta/rtos/debug.hpp
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* debug.hpp
|
||||||
|
*
|
||||||
|
* Created on: Oct 15, 2023
|
||||||
|
* Author: Dario
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef RTOS2_UTILS_INCLUDE_STA_RTOS_DEBUG_HPP_
|
||||||
|
#define RTOS2_UTILS_INCLUDE_STA_RTOS_DEBUG_HPP_
|
||||||
|
|
||||||
|
#include <sta/config.hpp>
|
||||||
|
#ifdef STA_DEBUGGING_ENABLED
|
||||||
|
|
||||||
|
# define STA_DEBUG_THREADS() \
|
||||||
|
{ \
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#else // !STA_DEBUGGING_ENABLED
|
||||||
|
|
||||||
|
# define STA_DEBUG_THREADS() ((void)0)
|
||||||
|
|
||||||
|
|
||||||
|
#endif // STA_DEBUGGING_ENABLED
|
||||||
|
|
||||||
|
#endif /* RTOS2_UTILS_INCLUDE_STA_RTOS_DEBUG_HPP_ */
|
@ -44,15 +44,15 @@ void startALPAKA(void * arg)
|
|||||||
{
|
{
|
||||||
STA_ASSERT_MSG(osKernelGetState() != osKernelInactive, "Cannot call startALPAKA() before osKernelInitialize()");
|
STA_ASSERT_MSG(osKernelGetState() != osKernelInactive, "Cannot call startALPAKA() before osKernelInitialize()");
|
||||||
|
|
||||||
// Call further initialization code
|
|
||||||
sta::rtos::startupExtras(arg);
|
|
||||||
|
|
||||||
// Initialize HAL
|
// Initialize HAL
|
||||||
sta::initHAL();
|
sta::initHAL();
|
||||||
|
|
||||||
// Initialize RTOS system resources
|
// Initialize RTOS system resources
|
||||||
sta::rtos::initSystem();
|
sta::rtos::initSystem();
|
||||||
|
|
||||||
|
// Call further initialization code
|
||||||
|
sta::rtos::startupExtras(arg);
|
||||||
|
|
||||||
// Wake threads
|
// Wake threads
|
||||||
sta::rtos::signalStartupEvent();
|
sta::rtos::signalStartupEvent();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user