| # |
| # For a description of the syntax of this configuration file, |
| # see the file kconfig-language.txt in the NuttX tools repository. |
| # |
| |
| menuconfig SYSTEM_SPITOOL |
| tristate "SPI tool" |
| default n |
| depends on SPI |
| select SPI_DRIVER |
| ---help--- |
| Enable support for the SPI tool. |
| |
| if SYSTEM_SPITOOL |
| |
| config SPITOOL_PROGNAME |
| string "Program name" |
| default "hello" |
| ---help--- |
| This is the name of the program that will be used when the ELF |
| program is installed. |
| |
| config SPITOOL_PRIORITY |
| int "Task priority" |
| default 100 |
| |
| config SPITOOL_STACKSIZE |
| int "Stack size" |
| default DEFAULT_TASK_STACKSIZE |
| |
| config SPITOOL_MINBUS |
| int "Minimum bus number" |
| default 0 |
| ---help--- |
| Smallest bus index supported by the hardware (default 0). |
| |
| config SPITOOL_MAXBUS |
| int "Maximum bus number" |
| default 3 |
| ---help--- |
| Largest bus index supported by the hardware (default 3) |
| |
| config SPITOOL_DEFFREQ |
| int "SPI frequency" |
| default 4000000 |
| ---help--- |
| Default SPI frequency (default: 4000000) |
| |
| config SPITOOL_DEFCMD |
| int "CMD/DATA select" |
| default 0 |
| range 0 1 |
| depends on SPI_CMDDATA |
| ---help--- |
| Send in command or data mode |
| 0 = Data mode |
| 1 = Command mode |
| |
| config SPITOOL_DEFMODE |
| int "SPI mode" |
| default 0 |
| ---help--- |
| Default SPI mode, where; |
| 0 = CPOL=0, CHPHA=0 |
| 1 = CPOL=0, CHPHA=1 |
| 2 = CPOL=1, CHPHA=0 |
| 3 = CPOL=1, CHPHA=1 |
| |
| config SPITOOL_DEFWIDTH |
| int "SPI Bit width" |
| default 8 |
| ---help--- |
| Number of bits per SPI transfer (default 8) |
| |
| config SPITOOL_DEFWORDS |
| int "Number of words to transfer" |
| default 1 |
| ---help--- |
| Number of words to be transferred (default 1) |
| |
| endif # SYSTEM_SPITOOL |