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