cancel
Showing results for 
Search instead for 
Did you mean: 

SPI_HandleTypeDef structure extern?

monomonster
Associate II
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?

1 REPLY 1
hbarta
Associate II
Posted on June 06, 2015 at 02:57

#include ''spi.h''