HI Miroslav Martisek,
Yes, of course, if you don't want to call the send function with interrupt mode, you can just enable the TX IE, and make sure your send data is ready, then the interrupt will send it.
You just need to write the according code in your interrupt service function.
I have attached a SPI interrupt code for KL25 SPI master and slave which I wrote it by myself a long time ago.
You can refer to it. Please use function:
SPI_Master_Interrupt_test ,this is for interrupt.
SPI_Master_Query_test, this is used for polling mode.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------