I checked I2C interrupt flags, when I realized at new interrupt bit 16 is also checked for SR1, bit 17 is also checked for SR2 registers, despite they are 16-bit registers. Why?
I did not plan to use SB, I just wanted to know if I need to check 16th bit when I use my own raw code instead of HAL. :) It is working only checking the actual bit to the corresponding flag, as you wrote the 16th bit is only for HAL. Thank you!