I used the APBx clock values for STM32F1x, STM32F3x and STM32F4xx.