2012-04-06 16:33:17 +00:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 08:14:53 -06:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 16:33:17 +00:00
|
|
|
#
|
2012-04-13 02:14:09 +00:00
|
|
|
|
|
|
|
config EXAMPLES_CAN
|
2018-09-03 09:29:56 -06:00
|
|
|
tristate "CAN example"
|
2012-04-13 02:14:09 +00:00
|
|
|
default n
|
2016-12-06 08:54:38 -06:00
|
|
|
depends on CAN
|
2012-04-13 02:14:09 +00:00
|
|
|
---help---
|
|
|
|
Enable the CAN example
|
|
|
|
|
|
|
|
if EXAMPLES_CAN
|
2015-08-17 11:07:39 -06:00
|
|
|
|
2015-11-10 15:13:13 -05:00
|
|
|
config EXAMPLES_CAN_DEVPATH
|
|
|
|
string "Device Path"
|
|
|
|
default "/dev/can0"
|
|
|
|
---help---
|
|
|
|
The device path
|
|
|
|
|
2015-08-17 11:07:39 -06:00
|
|
|
config EXAMPLES_CAN_NMSGS
|
|
|
|
int "Number of Messages"
|
2019-10-07 02:37:56 -06:00
|
|
|
default 0
|
2015-08-17 11:07:39 -06:00
|
|
|
---help---
|
|
|
|
The number of CAN messages to send before returning
|
|
|
|
|
2015-11-10 15:13:13 -05:00
|
|
|
choice
|
|
|
|
prompt "Read-only, write-only or read-write"
|
|
|
|
default EXAMPLES_CAN_READWRITE
|
|
|
|
---help---
|
|
|
|
Choose to only read, only write, or read and write CAN messages
|
|
|
|
|
|
|
|
config EXAMPLES_CAN_READ
|
|
|
|
bool "Read-only"
|
|
|
|
---help---
|
|
|
|
Only read CAN messages
|
|
|
|
|
|
|
|
config EXAMPLES_CAN_WRITE
|
|
|
|
bool "Write-only"
|
|
|
|
---help---
|
|
|
|
Only write CAN messages
|
|
|
|
|
|
|
|
config EXAMPLES_CAN_READWRITE
|
|
|
|
bool "Read-write"
|
|
|
|
---help---
|
|
|
|
Read and write CAN messages
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2012-04-13 02:14:09 +00:00
|
|
|
endif
|