forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zephyrproject-rtos#10 from westonrobot/patch-upstr…
…eam-tag-v2.7.0-can_native_posix Patch upstream tag v2.7.0 can native posix
- Loading branch information
Showing
11 changed files
with
672 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Native posix CAN configuration options | ||
|
||
# Copyright (c) 2019 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config CAN_NATIVE_POSIX | ||
bool "native_posix CAN Driver" | ||
depends on ARCH_POSIX && NETWORKING | ||
help | ||
Enable native_posix CAN driver | ||
|
||
if CAN_NATIVE_POSIX | ||
|
||
config CAN_MAX_FILTER | ||
int "Maximum number of concurrent active filters" | ||
depends on CAN_NATIVE_POSIX | ||
default 32 | ||
range 1 56 | ||
help | ||
Defines the array size of the callback/msgq pointers. | ||
Must be at least the size of concurrent reads. | ||
|
||
## Interface 1 | ||
config CAN_NATIVE_POSIX_INTERFACE_1_ENABLED | ||
bool "CANBUS interface 1" | ||
default y | ||
depends on CAN_NATIVE_POSIX | ||
help | ||
This option enables the CANBUS network interface for Native POSIX board. | ||
|
||
config CAN_NATIVE_POSIX_INTERFACE_1_NAME | ||
string "CANBUS interface 1 name on Linux side" | ||
depends on CAN_NATIVE_POSIX_INTERFACE_1_ENABLED | ||
default "vcan0" | ||
help | ||
This option sets the CANBUS network interface 1 name in host system. | ||
|
||
config CAN_NATIVE_POSIX_INTERFACE_1_SOCKETCAN_NAME | ||
string "Network device name" | ||
depends on CAN_NATIVE_POSIX_INTERFACE_1_ENABLED | ||
default "SOCKET_CAN_1" | ||
help | ||
Name of the network device driver for SocketCAN. | ||
|
||
## Interface 2 | ||
config CAN_NATIVE_POSIX_INTERFACE_2_ENABLED | ||
bool "CANBUS interface 2" | ||
default n | ||
depends on CAN_NATIVE_POSIX | ||
help | ||
This option enables the CANBUS network interface for Native POSIX board. | ||
|
||
if CAN_NATIVE_POSIX_INTERFACE_2_ENABLED | ||
|
||
config CAN_NATIVE_POSIX_INTERFACE_2_NAME | ||
string "CANBUS interface 2 name on Linux side" | ||
depends on CAN_NATIVE_POSIX_INTERFACE_2_ENABLED | ||
default "vcan1" | ||
help | ||
This option sets the CANBUS network interface 2 name in host system. | ||
|
||
config CAN_NATIVE_POSIX_INTERFACE_2_SOCKETCAN_NAME | ||
string "Network device name" | ||
depends on CAN_NATIVE_POSIX_INTERFACE_2_ENABLED | ||
default "SOCKET_CAN_2" | ||
help | ||
Name of the network device driver for SocketCAN. | ||
|
||
endif #CAN_NATIVE_POSIX_INTERFACE_2_ENABLED | ||
|
||
endif #CAN_NATIVE_POSIX |
Oops, something went wrong.