mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 11:07:34 +00:00
Rename WATCHDOG macros to SYSTEM_WATCHDOG
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <sta/rtos/system/watchdog.hpp>
|
||||
#ifdef STA_RTOS_WATCHDOG_ENABLE
|
||||
#ifdef STA_RTOS_SYSTEM_WATCHDOG_ENABLE
|
||||
|
||||
#include <sta/assert.hpp>
|
||||
#include <sta/lang.hpp>
|
||||
@@ -60,7 +60,7 @@ namespace sta
|
||||
|
||||
watchdogTimerHandle = osTimerNew(watchdogTimerCallback, osTimerPeriodic, nullptr, &timerAttributes);
|
||||
STA_ASSERT_MSG(watchdogTimerHandle != nullptr, "System watchdog timer initialization failed");
|
||||
osTimerStart(watchdogTimerHandle, STA_RTOS_WATCHDOG_TIMER_PERIOD);
|
||||
osTimerStart(watchdogTimerHandle, STA_RTOS_SYSTEM_WATCHDOG_TIMER_PERIOD);
|
||||
}
|
||||
|
||||
|
||||
@@ -100,4 +100,4 @@ void watchdogTimerCallback(void *)
|
||||
|
||||
|
||||
|
||||
#endif // STA_RTOS_WATCHDOG_ENABLE
|
||||
#endif // STA_RTOS_SYSTEM_WATCHDOG_ENABLE
|
||||
|
Reference in New Issue
Block a user