I went to so many references and definitions of variables and functions but I can't seem to find where is decided to use either spi_master_0 or 1.. where is this magic config file mentioned here:
- This example uses only one instance of the SPI master.
- Please make sure that only one instance of the SPI master is enabled in config file.
or what exactly does this do:
#if defined(SPI_MASTER_0_ENABLE)
#define SPI_MASTER_HW SPI_MASTER_0
#elif defined(SPI_MASTER_1_ENABLE)
#define SPI_MASTER_HW SPI_MASTER_1
#else
#error "No SPI enabled"
#endif
It defines SPI_MASTER_HW SPI_MASTER_0 when SPI_MASTER_0_ENABLE is defined? But where is SPI_MASTER_0_ENABLE defined??? I can't seem to find it nowhere.