mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-12 02:36:00 +00:00
Rename runtime stats macro
This commit is contained in:
parent
3a02ba19f2
commit
61d586ae47
@ -1,5 +1,5 @@
|
|||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
#ifdef STA_RTOS_STM32_RUNTIME_TIM
|
#ifdef STA_RTOS_RUNTIME_STATS_TIM
|
||||||
|
|
||||||
#include <tim.h>
|
#include <tim.h>
|
||||||
|
|
||||||
@ -7,14 +7,14 @@
|
|||||||
void configureTimerForRunTimeStats()
|
void configureTimerForRunTimeStats()
|
||||||
{
|
{
|
||||||
// Start timer base
|
// Start timer base
|
||||||
HAL_TIM_Base_Start(&STA_RTOS_STM32_RUNTIME_TIM);
|
HAL_TIM_Base_Start(&STA_RTOS_RUNTIME_STATS_TIM);
|
||||||
// Reset timer
|
// Reset timer
|
||||||
__HAL_TIM_SET_COUNTER(&STA_RTOS_STM32_RUNTIME_TIM, 0);
|
__HAL_TIM_SET_COUNTER(&STA_RTOS_RUNTIME_STATS_TIM, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long getRunTimeCounterValue()
|
unsigned long getRunTimeCounterValue()
|
||||||
{
|
{
|
||||||
return __HAL_TIM_GET_COUNTER(&STA_RTOS_STM32_RUNTIME_TIM);
|
return __HAL_TIM_GET_COUNTER(&STA_RTOS_RUNTIME_STATS_TIM);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // STA_RTOS_STM32_RUNTIME_TIM
|
#endif // STA_RTOS_RUNTIME_STATS_TIM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user