Constant PCLK1_HZ

Source
const PCLK1_HZ: u32 = 16_000_000;
Expand description

The APB1 peripheral clock frequency in Hz. This value is used for timing calculations in the I2C peripheral.

ยงNote

This should be updated to match the actual clock configuration of your MCU.