Enabling peripherals for SPI communication in seongji LSM110A project
Hello.
I am working on the LSM110A communications module project https://github.com/Support-SJI/LSM110A and I want to enable the necessary peripherals to be able to communicate the module with a MEMS using the SPI standard.
The first thing I developed was the creation of a project, in STM32CubeIDE, in which I configured the SPI communication to the STM32WLE5CCU6 module. I created the code and used the source files (.c), which are included there, within the LSM110A project.
Inside the “Drivers/STM32WLxx_HAL_Driver” folder of the LSM110A project, I created a file with the “link to file in file system” configuration and linked the source file “stm32wlxx_hal_spi.c”. Likewise, I performed the above procedure but with the “spi.c” file that is hosted in the “Application/User/Core” location; I also made sure that, in the folder containing the header files (.h), the “stm32wlxx_hal_spi.h” and “spi.h” files were included.
My problem is that, when I made the linking of the “spi.c” file to the LSM110A project, I get the following errors:



I have checked with the project I created to enable the peripherals for SPI communication and it does not show any error. The only thing I have been able to detail is that, when I include the header file “stm32wlxx_hal_spi.h” in the “spi.c” file, most of the errors disappear, but the following ones appear:


Explicitly, it is this error that I cannot understand: conflicting types for "conflicting types for 'hspi1'; have 'SPI_HandleTypeDef' {aka 'struct __SPI_HandleTypeDef'}".
Thank you very much in advance for your attention and your cooperation to help me to solve this problem.
