Open aman4512 opened 4 years ago
Recheck and debug your code
Usually such handles are declared global variable => thus scope of these vars. are for entire program! So as control goes to ISR, we still retain the updated info! - ISR is a function too, in the main file!
I don't understand how the SPI handle is passed to the SPI interrupt. Relevant lines in code file: stm32f407xx_spi_driver.c
I'm architecting a similar application and need to pass SPI information from various applications. I'm using a different controller (dsPIC33). I do not understand how the different SPI handles declared in my application is passed to the interrupt context.