cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 HAL multiple SPI with interrupt question

Adams
Associate II

My new project use 3 SPI with interrupt method.

When the SPI is received

in HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi) this function

How to identify which set of SPI has been received ?

2 REPLIES 2
Amel NASRI
ST Employee

Hi @Adams​ ,

All HAL APIs get peripheral instance as parameter.

Do you face an issue with that?

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Dear Amel,

Thanks for your reply.

My problem has been solved.