[2.0.x] HAL timer set/get count => set/get compare (#9581)
To reduce confusion over the current timer count vs. the compare (aka "top") value. Caution: this re-uses the function name, changing its meaning.
This commit is contained in:
@ -91,12 +91,12 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency);
|
||||
void HAL_timer_enable_interrupt(const uint8_t timer_num);
|
||||
void HAL_timer_disable_interrupt(const uint8_t timer_num);
|
||||
|
||||
void HAL_timer_set_count(const uint8_t timer_num, const uint32_t count);
|
||||
hal_timer_t HAL_timer_get_count(const uint8_t timer_num);
|
||||
uint32_t HAL_timer_get_current_count(const uint8_t timer_num);
|
||||
void HAL_timer_set_compare(const uint8_t timer_num, const uint32_t compare);
|
||||
hal_timer_t HAL_timer_get_compare(const uint8_t timer_num);
|
||||
uint32_t HAL_timer_get_count(const uint8_t timer_num);
|
||||
|
||||
void HAL_timer_set_current_count(const uint8_t timer_num, const uint32_t count); // New
|
||||
/*FORCE_INLINE static void HAL_timer_set_current_count(const uint8_t timer_num, const hal_timer_t count) {
|
||||
void HAL_timer_set_count(const uint8_t timer_num, const uint32_t count); // New
|
||||
/*FORCE_INLINE static void HAL_timer_set_count(const uint8_t timer_num, const hal_timer_t count) {
|
||||
// To do ??
|
||||
}*/
|
||||
|
||||
|
Reference in New Issue
Block a user