2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-13 04:14:09 +02:00
|
|
|
|
|
|
|
config EXAMPLES_CAN
|
|
|
|
bool "CAN example"
|
|
|
|
default n
|
2016-12-06 15:54:38 +01:00
|
|
|
depends on CAN
|
2012-04-13 04:14:09 +02:00
|
|
|
---help---
|
|
|
|
Enable the CAN example
|
|
|
|
|
|
|
|
if EXAMPLES_CAN
|
2015-08-17 19:07:39 +02:00
|
|
|
|
2015-11-10 21:13:13 +01:00
|
|
|
config EXAMPLES_CAN_DEVPATH
|
|
|
|
string "Device Path"
|
|
|
|
default "/dev/can0"
|
|
|
|
---help---
|
|
|
|
The device path
|
|
|
|
|
2015-08-17 19:07:39 +02:00
|
|
|
config EXAMPLES_CAN_NMSGS
|
|
|
|
int "Number of Messages"
|
|
|
|
default 32
|
2015-11-10 21:13:13 +01:00
|
|
|
depends on NSH_BUILTIN_APPS
|
2015-08-17 19:07:39 +02:00
|
|
|
---help---
|
|
|
|
The number of CAN messages to send before returning
|
|
|
|
|
2015-11-10 21:13:13 +01: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 04:14:09 +02:00
|
|
|
endif
|
|
|
|
|