Hi, I followed steps specified for development-with-gcc-and-eclipse using link devzone.nordicsemi.com/.../
Following are the snapshots of my development environment which shows that headers(include path) are correct but still we can see errors in the console window.
"Application" is my virtual folder. spi0.c and spi0.h are my custom files. In spi0.c I have written following code
#if (SPI0_ENABLED == 1)
const nrf_drv_spi_t m_spi_master = NRF_DRV_SPI_INSTANCE(0);
#elif (SPI1_ENABLED == 1)
const nrf_drv_spi_t m_spi_master = NRF_DRV_SPI_INSTANCE(1);
#elif (SPI2_ENABLED == 1)
const nrf_drv_spi_t m_spi_master = NRF_DRV_SPI_INSTANCE(2);
#else
#error "No SPI enabled."
#endif
at line #error "No SPI enabled."
I am getting #error encountered with text: "No SPI enabled."
in eclipse while in console I get spi_master/nrf_drv_spi.c:45:6: error: #error "Wrong configuration."
In above image why I am getting spi_master/nrf_drv_spi.c:154:9: error: expected expression before 'NRF_SPIM_Type'
Following is the Makefile showing paths for C source files and include files paths:-
Please help on this issue