mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 19:17:34 +00:00
Improve doxygen comments. Add HAL init
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
/**
|
||||
* @brief System startup task.
|
||||
*/
|
||||
#include <sta/os2/startup.hpp>
|
||||
#ifdef STA_OS2_STARTUP_ENABLE
|
||||
|
||||
#include <sta/lang.hpp>
|
||||
#include <sta/hal/init.hpp>
|
||||
#include <sta/os2/system_event.hpp>
|
||||
#include <sta/os2/watchdog.hpp>
|
||||
|
||||
#include <main.h>
|
||||
|
||||
#include <cmsis_os2.h>
|
||||
|
||||
|
||||
@@ -32,16 +34,14 @@ extern "C"
|
||||
// Call further initialization code
|
||||
sta::startupExtras(arg);
|
||||
|
||||
// Initialize HAL
|
||||
sta::initHAL();
|
||||
|
||||
#ifdef STA_OS2_WATCHDOG_ENABLE
|
||||
// Start timers
|
||||
sta::startWatchdogTimer();
|
||||
#endif // STA_OS2_WATCHDOG_ENABLE
|
||||
|
||||
#ifdef STA_HAL_DELAY_US_TIM
|
||||
HAL_TIM_Base_Start(&STA_HAL_DELAY_US_TIM);
|
||||
#endif // STA_HAL_DELAY_US_TIM
|
||||
|
||||
// Wake tasks
|
||||
sta::signalStartupEvent();
|
||||
|
||||
|
Reference in New Issue
Block a user