f4 pios_i2c: refactored usage of portEND_SWITCHING_ISR