Tool/software: TI C/C++ Compiler
Hi,
In the attached file SPI_UCB0.c, I have encountered a compiler error that has stymied me.
After a clean/build this is what it says: #148 declaration is incompatible with "USCI_B_SPI_initMasterParam my_spi_param" (declared at line 11)
If I delete this file from my project, it compiles OK
In the path variables ( see attached Path_Variables.pdf ), I see that I have 2 references to the MSP430_DIVERLIB for my project.
Could this be the cause of my error ?
Thank you for any assistance.
Roy
/* * SPI_UCB0.c * * Created on: Feb 20, 2018 * */ #include <usci_b_spi.h> //Initialize Master USCI_B_SPI_initMasterParam my_spi_param; my_spi_param.selectClockSource = USCI_B_SPI_CLOCKSOURCE_SMCLK;