This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Where should the SPI master enable definition be set? (nRF51 SDK v9)

The nRF51 SDK (version 9) documentation tells to activate SPI using the SPI_MASTER_0_ENABLE and SPI_MASTER_1_ENABLE macros. Where should these definitions be made? Other components seem to use nrf_drv_config.h for their configuration but spi_master does not include this file. Why is SPI treated differently?

Update: In the meantime, SDK version 10 was released. There, the issue has been resolved and the new SPI driver offers a very easy way of configuration and usage. Further, both synchronous (blocking) and asynchronous (callback event) SPI operations are supported an SS handling of the driver can be disabled.

Parents Reply
  • Hi Stefan, thanks for the feedback. In fact, I now that I can set preprocessor symbols (I'm using GCC with makefile, though). I was just wondering why the SPI driver is treated differently (or if there is a differnet place where all drivers should be configured). For a straightforward software design, it would be nice to have all hardware configuration in the same place. Sorry for not making this clear in my initial question.

Children
No Data
Related