Skip to main content
monomonster
Associate II
June 4, 2015
Question

SPI_HandleTypeDef structure extern?

  • June 4, 2015
  • 1 reply
  • 593 views
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?

    This topic has been closed for replies.

    1 reply

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

    #include ''spi.h''