I am moving from S110 and SDK 6 point something to S130 and SDK 10. I have my basic BLE code going but am unable to get the SPI back-in-action. I am using gcc and the s130 make file.
When I compile I get this error message first among a few others:
/Users/george/Dropbox/Workv2/BoxUnfolded_FW/Nordic_Semiconductor/nRF51_SDK_10.0.0/components/drivers_nrf/spi_master/nrf_drv_spi.c:45:6: error: #error "Wrong configuration."
#error "Wrong configuration."
I modified the lines:
/* SPI */
#define SPI0_ENABLED 1
#if (SPI0_ENABLED == 1)
#define SPI0_USE_EASY_DMA 0
#define SPI0_CONFIG_SCK_PIN 2
#define SPI0_CONFIG_MOSI_PIN 3
#define SPI0_CONFIG_MISO_PIN 4
#define SPI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
#define SPI0_INSTANCE_INDEX 0
#endif
and put the following compiler flags in:
CFLAGS += -DSPI_MASTER_0_ENABLE
ASMFLAGS += -DSPI_MASTER_0_ENABLE
What am I missing?