|
@@ -66,11 +66,11 @@ stm32f4_timer_t TimerHandle[NUM_HARDWARE_TIMERS];
|
66
|
66
|
// Public functions
|
67
|
67
|
// --------------------------------------------------------------------------
|
68
|
68
|
|
69
|
|
-bool timers_initialised[NUM_HARDWARE_TIMERS] = {false};
|
|
69
|
+bool timers_initialized[NUM_HARDWARE_TIMERS] = { false };
|
70
|
70
|
|
71
|
71
|
void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
|
72
|
72
|
|
73
|
|
- if (!timers_initialised[timer_num]) {
|
|
73
|
+ if (!timers_initialized[timer_num]) {
|
74
|
74
|
uint32_t step_prescaler = STEPPER_TIMER_PRESCALE - 1,
|
75
|
75
|
temp_prescaler = TEMP_TIMER_PRESCALE - 1;
|
76
|
76
|
switch (timer_num) {
|
|
@@ -90,7 +90,7 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
|
90
|
90
|
HAL_NVIC_SetPriority(TEMP_TIMER_IRQ_NAME, TEMP_TIMER_IRQ_PRIO, 0);
|
91
|
91
|
break;
|
92
|
92
|
}
|
93
|
|
- timers_initialised[timer_num] = true;
|
|
93
|
+ timers_initialized[timer_num] = true;
|
94
|
94
|
}
|
95
|
95
|
}
|
96
|
96
|
|