2021-06-12 17:25:20 +02:00
|
|
|
# CANopenNode CANopen protocol stack configuration options
|
2019-09-22 20:24:57 +02:00
|
|
|
|
|
|
|
# Copyright (c) 2019 Vestas Wind Systems A/S
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-06-12 17:25:20 +02:00
|
|
|
config ZEPHYR_CANOPENNODE_MODULE
|
|
|
|
bool
|
|
|
|
|
|
|
|
config CANOPENNODE
|
|
|
|
bool "CANopenNode support"
|
2022-09-26 18:13:43 +02:00
|
|
|
select CRC
|
2022-03-18 10:32:43 +01:00
|
|
|
depends on CAN && !CAN_FD_MODE
|
2019-09-22 20:24:57 +02:00
|
|
|
help
|
2021-06-12 17:25:20 +02:00
|
|
|
This option enables the CANopenNode library.
|
2019-09-22 20:24:57 +02:00
|
|
|
|
2021-06-12 17:25:20 +02:00
|
|
|
if CANOPENNODE
|
2019-09-22 20:24:57 +02:00
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_SDO_BUFFER_SIZE
|
2019-09-22 20:24:57 +02:00
|
|
|
int "CANopen SDO buffer size"
|
|
|
|
default 32
|
|
|
|
range 7 889
|
|
|
|
help
|
|
|
|
Size of the internal CANopen SDO buffer in bytes. Size must
|
|
|
|
be at least equal to the size of the largest variable in the
|
|
|
|
object dictionary. If data type is DOMAIN, data length is
|
|
|
|
not limited to the SDO buffer size. If block transfer is
|
|
|
|
implemented, value should be set to 889.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_TRACE_BUFFER_SIZE
|
2019-09-22 20:24:57 +02:00
|
|
|
int "CANopen trace buffer size"
|
|
|
|
default 100
|
|
|
|
help
|
|
|
|
Size of the CANopen trace buffer in bytes.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_TX_WORKQUEUE_STACK_SIZE
|
2019-09-22 20:24:57 +02:00
|
|
|
int "Stack size for the CANopen transmit workqueue"
|
2022-01-11 15:03:09 +01:00
|
|
|
default 512
|
2019-09-22 20:24:57 +02:00
|
|
|
help
|
|
|
|
Size of the stack used for the internal CANopen transmit
|
|
|
|
workqueue.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_TX_WORKQUEUE_PRIORITY
|
2019-09-22 20:24:57 +02:00
|
|
|
int "Priority for CANopen transmit workqueue"
|
|
|
|
default 0 if !COOP_ENABLED
|
|
|
|
default -1
|
|
|
|
help
|
|
|
|
Priority level of the internal CANopen transmit workqueue.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_STORAGE
|
2019-09-26 15:06:55 +02:00
|
|
|
bool "CANopen object dictionary storage"
|
|
|
|
depends on SETTINGS
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for storing the CANopen object dictionary to
|
|
|
|
non-volatile storage.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_STORAGE_HANDLER_ERASES_EEPROM
|
2019-09-26 15:06:55 +02:00
|
|
|
bool "Erase CANopen object dictionary EEPROM entries in storage handler"
|
2021-06-12 21:41:36 +02:00
|
|
|
depends on CANOPENNODE_STORAGE
|
2019-09-26 15:06:55 +02:00
|
|
|
help
|
|
|
|
Erase CANopen object dictionary EEPROM entries upon write to
|
|
|
|
object dictionary index 0x1011 subindex 1.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_LEDS
|
2019-09-28 21:45:44 +02:00
|
|
|
bool "CANopen LED indicators"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for CANopen LED indicators according to the CiA
|
|
|
|
303-3 specification.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_LEDS_BICOLOR
|
2019-09-28 21:45:44 +02:00
|
|
|
bool "CANopen bicolor LED indicator"
|
2021-06-12 21:41:36 +02:00
|
|
|
depends on CANOPENNODE_LEDS
|
2019-09-28 21:45:44 +02:00
|
|
|
help
|
|
|
|
Handle CANopen LEDs as one bicolor LED, favoring the red LED
|
|
|
|
over the green LED in accordance with the CiA 303-3
|
|
|
|
specification.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_SYNC_THREAD
|
2019-09-22 20:24:57 +02:00
|
|
|
bool "CANopen SYNC thread"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable internal thread for processing CANopen SYNC RPDOs and
|
|
|
|
TPDOs. Application layer must take care of SYNC RPDO and
|
|
|
|
TPDO processing on its own if this is disabled.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_SYNC_THREAD_STACK_SIZE
|
2019-09-22 20:24:57 +02:00
|
|
|
int "Stack size for the CANopen SYNC thread"
|
2021-06-12 21:41:36 +02:00
|
|
|
depends on CANOPENNODE_SYNC_THREAD
|
2022-01-11 15:03:09 +01:00
|
|
|
default 512
|
2019-09-22 20:24:57 +02:00
|
|
|
help
|
|
|
|
Size of the stack used for the internal thread which
|
|
|
|
processes CANopen SYNC RPDOs and TPDOs.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_SYNC_THREAD_PRIORITY
|
2019-09-22 20:24:57 +02:00
|
|
|
int "Priority for CANopen SYNC thread"
|
2021-06-12 21:41:36 +02:00
|
|
|
depends on CANOPENNODE_SYNC_THREAD
|
2019-09-22 20:24:57 +02:00
|
|
|
default 0 if !COOP_ENABLED
|
|
|
|
default -5
|
|
|
|
help
|
|
|
|
Priority level of the internal thread which processes
|
|
|
|
CANopen SYNC RPDOs and TPDOs.
|
|
|
|
|
2021-06-12 21:41:36 +02:00
|
|
|
config CANOPENNODE_PROGRAM_DOWNLOAD
|
2020-02-19 22:18:51 +01:00
|
|
|
bool "CANopen program download"
|
|
|
|
depends on BOOTLOADER_MCUBOOT
|
|
|
|
select IMG_MANAGER
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for program download over CANopen according
|
2020-06-22 10:08:41 +02:00
|
|
|
to the CiA 302-3 (draft) specification.
|
2020-02-19 22:18:51 +01:00
|
|
|
|
2021-06-12 17:25:20 +02:00
|
|
|
endif # CANOPENNODE
|