posix: can: if name from command-line
This commit introduces the ability to set the CAN interface from command-line. This is helpful if we want to run multiple instances of the app with different CAN interfaces without making separate compilations for each instance. Signed-off-by: Kacper Dalach <dalachowsky@gmail.com>
This commit is contained in:
parent
72d98692dc
commit
32eb346e05
3 changed files with 42 additions and 4 deletions
|
@ -500,10 +500,14 @@ The following peripherals are currently provided with this board:
|
|||
:ref:`its section <nsim_per_disp_sdl>`.
|
||||
|
||||
**CAN controller**
|
||||
It is possible to use a host CAN controller with the native SockerCAN Linux driver. It can be
|
||||
It is possible to use a host CAN controller with the native SocketCAN Linux driver. It can be
|
||||
enabled with :kconfig:option:`CONFIG_CAN_NATIVE_LINUX` and configured with the device tree binding
|
||||
:dtcompatible:`zephyr,native-linux-can`.
|
||||
|
||||
It is possible to specify which CAN interface will be used by the app using the ``--can-if``
|
||||
command-line option. This option overrides **every** Linux SocketCAN driver instance to use the specified
|
||||
interface.
|
||||
|
||||
.. _native_ptty_uart:
|
||||
|
||||
PTTY UART
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue