understand freertos logging
This commit is contained in:
parent
b82393d4a2
commit
862fc8da97
@ -60,11 +60,11 @@ unsigned long getRunTimeCounterValue(void);
|
||||
/* Functions needed when configGENERATE_RUN_TIME_STATS is on */
|
||||
__weak void configureTimerForRunTimeStats(void) {
|
||||
// Configure TIM2 as a free-running timer at 1 MHz
|
||||
// __HAL_RCC_TIM2_CLK_ENABLE();
|
||||
// TIM2->PSC = (SystemCoreClock / 1000000) - 1; // 1 MHz
|
||||
// TIM2->ARR = 0xFFFFFFFF;
|
||||
// TIM2->CNT = 0;
|
||||
// TIM2->CR1 = TIM_CR1_CEN;
|
||||
__HAL_RCC_TIM2_CLK_ENABLE();
|
||||
TIM2->PSC = (SystemCoreClock / 1000000) - 1; // 1 MHz
|
||||
TIM2->ARR = 0xFFFFFFFF;
|
||||
TIM2->CNT = 0;
|
||||
TIM2->CR1 = TIM_CR1_CEN;
|
||||
}
|
||||
|
||||
__weak unsigned long getRunTimeCounterValue(void) {
|
||||
|
||||
927
Core/Src/main.c
927
Core/Src/main.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user