Skip to main content
Adams
Associate
April 9, 2021
Question

STM32 HAL multiple SPI with interrupt question

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 ?

This topic has been closed for replies.

2 replies

Amel NASRI
ST Technical Moderator
April 13, 2021

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 "Best Answer" on the reply which solved your issue or answered your question.
Adams
AdamsAuthor
Associate
April 14, 2021

Dear Amel,

Thanks for your reply.

My problem has been solved.