2019-05-11 02:14:44 +02:00
|
|
|
#
|
|
|
|
# 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"
|
2020-07-28 04:57:30 +02:00
|
|
|
default "spi"
|
2019-05-11 02:14:44 +02:00
|
|
|
---help---
|
2019-08-23 19:59:28 +02:00
|
|
|
This is the name of the program that will be used when the ELF
|
2019-05-11 02:14:44 +02:00
|
|
|
program is installed.
|
|
|
|
|
|
|
|
config SPITOOL_PRIORITY
|
|
|
|
int "Task priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config SPITOOL_STACKSIZE
|
|
|
|
int "Stack size"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2019-05-11 02:14:44 +02:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2019-11-25 14:41:14 +01:00
|
|
|
config SPITOOL_DEFCMD
|
2019-11-25 14:49:31 +01:00
|
|
|
int "CMD/DATA select"
|
2019-11-25 14:41:14 +01:00
|
|
|
default 0
|
2019-11-25 14:49:31 +01:00
|
|
|
range 0 1
|
|
|
|
depends on SPI_CMDDATA
|
2019-11-25 14:41:14 +01:00
|
|
|
---help---
|
|
|
|
Send in command or data mode
|
|
|
|
0 = Data mode
|
|
|
|
1 = Command mode
|
|
|
|
|
2019-05-11 02:14:44 +02:00
|
|
|
config SPITOOL_DEFMODE
|
2019-10-06 05:37:19 +02:00
|
|
|
int "SPI mode"
|
2019-05-11 02:14:44 +02:00
|
|
|
default 0
|
|
|
|
---help---
|
2019-10-06 05:37:19 +02:00
|
|
|
Default SPI mode, where;
|
2021-05-05 20:39:01 +02:00
|
|
|
0 = CPOL=0, CPHA=0
|
|
|
|
1 = CPOL=0, CPHA=1
|
|
|
|
2 = CPOL=1, CPHA=0
|
|
|
|
3 = CPOL=1, CPHA=1
|
2020-01-31 15:13:45 +01:00
|
|
|
|
2019-05-11 02:14:44 +02:00
|
|
|
config SPITOOL_DEFWIDTH
|
2019-10-06 05:37:19 +02:00
|
|
|
int "SPI Bit width"
|
2019-05-11 02:14:44 +02:00
|
|
|
default 8
|
|
|
|
---help---
|
2019-10-06 05:37:19 +02:00
|
|
|
Number of bits per SPI transfer (default 8)
|
2019-05-11 02:14:44 +02:00
|
|
|
|
|
|
|
config SPITOOL_DEFWORDS
|
2019-10-06 05:37:19 +02:00
|
|
|
int "Number of words to transfer"
|
2019-05-11 02:14:44 +02:00
|
|
|
default 1
|
|
|
|
---help---
|
2019-10-06 05:37:19 +02:00
|
|
|
Number of words to be transferred (default 1)
|
2019-05-11 02:14:44 +02:00
|
|
|
|
|
|
|
endif # SYSTEM_SPITOOL
|