Hi,
The KL17 reference manual shows the FlexIO module clock source below:

MCGPCLK is clock output from IRC48M (48MHz);
MCGIRCLK is clock output from IRC8M (IRC8M/2M internal reference clock divided by lirc_div2);
OSCERCLK is System oscillator output sourced from OSCCLK that may clock some on-chip modules (frequence same with external crystal/oscillator)
When customer call CLOCK_SetFlexio0Clock() function, customer need to clear know the FlexIO clock source frequency.
Such as FlexIO_i2c [interrupt_i2c_transfer] demo using MCGPCLK as clock source, which is fixed to 48MHz.
So, the FLEXIO_CLOCK_FREQUENCY macro definition value is 48MHz.
#define FLEXIO_CLOCK_FREQUENCY 48000000U
If customer change to use another clock source, customer need to set the correct clock frequency at FLEXIO_CLOCK_FREQUENCY macro.
Thank you for the attention.
Have a great day,
Mike
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------