mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-18 00:51:56 +00:00
The $srctree environment variable gives the path relative to which '(o)source' statements work (the current directory is used if $srctree is unset). It is set to $ZEPHYR_BASE in cmake/kconfig.cmake, so there's no need to qualify the source of Kconfig.zephyr in sample Kconfig files (or in external projects). All 'source's in Zephyr assume that the Zephyr root directory is used as the srctree as well, and would break otherwise. Remove the $(ZEPHYR_BASE)s to make it clearer that all 'source' statements work relative to the Zephyr root. There was some user confusion on IRC. Also explain how things work in the documentation. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
34 lines
858 B
Plaintext
34 lines
858 B
Plaintext
mainmenu "SPI Loopback Test"
|
|
|
|
source "Kconfig.zephyr"
|
|
|
|
config SPI_LOOPBACK_DRV_NAME
|
|
string "SPI device name to use for test"
|
|
default SPI_1_NAME
|
|
|
|
config SPI_LOOPBACK_CS_GPIO
|
|
bool "SPI port CS pin is controlled via a GPIO port during test"
|
|
depends on GPIO
|
|
|
|
config SPI_LOOPBACK_CS_CTRL_GPIO_DRV_NAME
|
|
string "The GPIO port which is used to control CS"
|
|
depends on SPI_LOOPBACK_CS_GPIO
|
|
default "GPIO_0"
|
|
|
|
config SPI_LOOPBACK_CS_CTRL_GPIO_PIN
|
|
int "The GPIO PIN which is used to act as a CS pin"
|
|
depends on SPI_LOOPBACK_CS_GPIO
|
|
default 0
|
|
|
|
config SPI_LOOPBACK_SLAVE_NUMBER
|
|
int "Slave number from 0 to host controller slave limit"
|
|
default 0
|
|
|
|
config SPI_LOOPBACK_SLOW_FREQ
|
|
int "The frequency in Hz to use when testing in slow mode"
|
|
default 500000
|
|
|
|
config SPI_LOOPBACK_FAST_FREQ
|
|
int "The frequency in Hz to use when testing in fast mode"
|
|
default 16000000
|