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.
drivers: can: native_posix_linux: initial implementation
This driver provides an interface to SocketCAN interfaces of the Linux system running a Zephyr application with the native_posix board. These interfaces may be virtual or actual CAN buses. Signed-off-by: Martin Jäger <[email protected]>
- Loading branch information
1 parent
fd4d188
commit 77e4c65
Showing
8 changed files
with
702 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Native Linux SocketCAN configuration options | ||
|
||
# Copyright (c) 2022 Martin Jäger <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config CAN_NATIVE_POSIX_LINUX | ||
bool "Native Linux SocketCAN Driver" | ||
default y | ||
depends on DT_HAS_ZEPHYR_NATIVE_POSIX_LINUX_CAN_ENABLED | ||
help | ||
Enable native Linux SocketCAN Driver | ||
|
||
if CAN_NATIVE_POSIX_LINUX | ||
|
||
config CAN_NATIVE_POSIX_LINUX_RX_THREAD_PRIORITY | ||
int "Priority for internal RX thread" | ||
default 2 | ||
help | ||
Priority level of the internal thread which is run for | ||
handling of incoming packets. | ||
|
||
config CAN_MAX_FILTER | ||
int "Maximum number of concurrent active filters" | ||
default 5 | ||
range 1 32 | ||
help | ||
Defines the array size of the callback/msgq pointers. | ||
Must be at least the size of concurrent reads. | ||
|
||
endif # CAN_NATIVE_POSIX_LINUX |
Oops, something went wrong.