Question
SPI_HandleTypeDef structure extern?
Posted on June 05, 2015 at 00:09
I've used CubeMX to init SPI. There is a struct called hspi3 created by the init code which holds settings for SPI. I would like to use SPI library in a C file I've written (DAC driver) but I can't because HAL_SPI_Transmit() required a pointer to the hspi3. What is the common method for solving this?