nuttx-apps/canutils/libuavcan/Kconfig

233 lines
5.3 KiB
Plaintext
Raw Normal View History

2015-09-23 17:09:29 +02:00
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
2016-05-25 15:07:32 +02:00
config CANUTILS_LIBUAVCAN
bool "libuavcan Library"
2015-09-23 17:09:29 +02:00
default n
2015-09-29 23:11:47 +02:00
depends on STM32_HAVE_CAN1
depends on !STM32_CAN1
depends on !STM32_CAN2
depends on !STM32_TIM2 || (STM32_HAVE_TIM3 && !STM32_TIM3) || (STM32_HAVE_TIM4 && !STM32_TIM4) || (STM32_HAVE_TIM5 && !STM32_TIM5) || (STM32_HAVE_TIM6 && !STM32_TIM6) || (STM32_HAVE_TIM7 && !STM32_TIM7)
2015-09-23 17:09:29 +02:00
depends on C99_BOOL8
depends on HAVE_CXX
depends on !DISABLE_POLL
---help---
2016-05-25 15:07:32 +02:00
Enables support for the libuavcan library.
2015-09-23 17:09:29 +02:00
2016-05-25 15:07:32 +02:00
if CANUTILS_LIBUAVCAN
2015-09-23 17:09:29 +02:00
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_URL
string "libuavcan URL"
default "https://github.com/UAVCAN/libuavcan/archive"
---help---
2016-05-25 15:07:32 +02:00
libuavcan URL.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_VERSION
string "libuavcan Version"
2016-05-03 23:21:38 +02:00
default "b04396ace50155573e545ed9bf2fb09964ee2367"
---help---
2016-05-25 15:07:32 +02:00
libuavcan version.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_DSDL_URL
string "DSDL URL"
default "https://github.com/UAVCAN/dsdl/archive"
---help---
DSDL URL.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_DSDL_VERSION
string "DSDL Version"
default "9804a3e6972825586be252ce08dd899f44994b14"
---help---
DSDL version.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_PYUAVCAN_URL
string "pyuavcan URL"
default "https://github.com/UAVCAN/pyuavcan/archive"
---help---
2016-05-25 15:07:32 +02:00
pyuavcan URL.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_PYUAVCAN_VERSION
string "pyuavcan Version"
default "c58477a644d20ccf95a20c151f3a0402f271c3b8"
---help---
2016-05-25 15:07:32 +02:00
pyuavcan version.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_STM32_NUM_IFACES
2015-09-29 23:11:47 +02:00
int "Number of CAN Interfaces"
default 1
range 1 1 if !STM32_HAVE_CAN2
range 1 2 if STM32_HAVE_CAN2
choice
prompt "Timer"
2016-05-25 15:07:32 +02:00
default LIBUAVCAN_STM32_TIM2 if !STM32_TIM2
default LIBUAVCAN_STM32_TIM3 if STM32_HAVE_TIM3 && !STM32_TIM3
default LIBUAVCAN_STM32_TIM4 if STM32_HAVE_TIM4 && !STM32_TIM4
default LIBUAVCAN_STM32_TIM5 if STM32_HAVE_TIM5 && !STM32_TIM5
default LIBUAVCAN_STM32_TIM6 if STM32_HAVE_TIM6 && !STM32_TIM6
default LIBUAVCAN_STM32_TIM7 if STM32_HAVE_TIM7 && !STM32_TIM7
config LIBUAVCAN_STM32_TIM2
bool "TIM2"
depends on !STM32_TIM2
2015-09-23 17:09:29 +02:00
---help---
The library will use TIM2.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_STM32_TIM3
bool "TIM3"
depends on STM32_HAVE_TIM3 && !STM32_TIM3
---help---
The library will use TIM3.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_STM32_TIM4
bool "TIM4"
depends on STM32_HAVE_TIM4 && !STM32_TIM4
---help---
The library will use TIM4.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_STM32_TIM5
bool "TIM5"
depends on STM32_HAVE_TIM5 && !STM32_TIM5
---help---
The library will use TIM5.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_STM32_TIM6
bool "TIM6"
depends on STM32_HAVE_TIM6 && !STM32_TIM6
---help---
The library will use TIM6.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_STM32_TIM7
bool "TIM7"
depends on STM32_HAVE_TIM7 && !STM32_TIM7
---help---
The library will use TIM7.
endchoice
2015-09-23 17:09:29 +02:00
choice
prompt "C++ Version"
2016-05-25 15:07:32 +02:00
default LIBUAVCAN_CPP03
2015-09-23 17:09:29 +02:00
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_CPP03
2015-09-23 17:09:29 +02:00
bool "C++03"
---help---
The library will use C++03.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_CPP11
2015-09-23 17:09:29 +02:00
bool "C++11"
---help---
The library will use C++11.
endchoice
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_DEBUG
bool "Debug"
default n
---help---
Enables debug.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_EXCEPTIONS
bool "Exceptions"
default n
---help---
Enables exceptions.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_TINY
2015-09-23 17:09:29 +02:00
bool "Tiny"
default n
---help---
Removes some features to save memory.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_NO_GLOBAL_DATA_TYPE_REGISTRY
bool "No Global Data Type Registry"
default n
---help---
Removes the global data type registry.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_TOSTRING
2015-09-23 17:09:29 +02:00
bool "Implement toString"
default n
2016-05-25 15:07:32 +02:00
depends on LIBUAVCAN_EXCEPTIONS
2015-09-23 17:09:29 +02:00
---help---
The library will add a toString method to most of its classes.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_IMPLEMENT_PLACEMENT_NEW
2015-09-23 17:09:29 +02:00
bool "Implement Placement new"
default n
---help---
The library will implement placement new.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_USE_EXTERNAL_SNPRINTF
2015-09-23 17:09:29 +02:00
bool "Use External snprintf"
default n
---help---
The library will use an external snprintf.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_USE_EXTERNAL_FLOAT16_CONVERSION
2015-09-23 17:09:29 +02:00
bool "Use External float16 Conversion"
default n
---help---
The library will use an external float16 conversion.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_NO_ASSERTIONS
bool "No Assertions"
2015-09-23 17:09:29 +02:00
default n
---help---
Disables assertions.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_MEM_POOL_BLOCK_SIZE
2015-09-23 17:09:29 +02:00
int "Memory Pool Block Size"
default 0
---help---
2015-09-30 18:06:28 +02:00
Specifies the memory pool block size. If the value is 0, the
library will use a default value.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_FLOAT_COMPARISON_EPSILON_MULT
int "Float Comparion Epsilon Mult"
default 0
---help---
Specifies the float comparison epsilon mult. If the value is
0, the library will use a default value.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_MAX_CAN_ACCEPTANCE_FILTERS
int "Max CAN Acceptance Filters"
default 0
---help---
Specifies the maximum number of CAN acceptance filters. If
the value is 0, the library will use a default value.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_MAX_NETWORK_SIZE_HINT
int "Max Network Size Hint"
default 0
---help---
Specifies the maximum network size. If the value is 0, the
library will use a default value.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_RX_QUEUE_CAPACITY
2015-09-30 18:06:28 +02:00
int "Rx Queue Capacity"
default 0
---help---
Specifies the rx queue capacity. If the value is 0, the
library will use a default value.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_BIT_RATE
2015-09-30 18:06:28 +02:00
int "Bit Rate"
default 0
range 0 1000000
---help---
Specifies the CAN bit rate. If the value is 0, the library
will automatically detect the bit rate.
2016-05-25 15:07:32 +02:00
config LIBUAVCAN_INIT_RETRIES
2015-09-30 18:06:28 +02:00
int "Initialization Retries"
default 0
---help---
Specifies the number of times to try initializing the CAN
peripherals before panicking. A value of 0 means to try
forever.
2015-09-23 17:09:29 +02:00
endif