Skip to main content
Explorer
April 9, 2021
Question

STM32 HAL multiple SPI with interrupt question

  • April 9, 2021
  • 1 reply
  • 758 views

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.

    1 reply

    Technical Moderator
    April 13, 2021

    Hi @Adams​ ,

    All HAL APIs get peripheral instance as parameter.

    Do you face an issue with that?

    -Amel

    AdamsAuthor
    Explorer
    April 14, 2021

    Dear Amel,

    Thanks for your reply.

    My problem has been solved.