STM32F1 SysTick configuration with HAL_SYSTICK_Config()
I am using the STM32F1 HAL and low-layer driver library. The 1ms SysTick timer works well. One of ST's examples computes the system clock ticks between SysTick interrupts: with SystemCoreClock=16,000,000 Hz, and uwTickFreq=1 kHz this function outputs 16,000 ticks:
HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq))
However, why is the denominator a division and not (1000U * uwTickFreq)? This product would result in a division of two frequencies, which cancels the units and provides a unitless number of system clock ticks. For a Time Base of 1ms it is irrelevant, but for another time base it should matter.
