zephyr/samples/drivers/CAN
Nick Ward cbaa75daff samples: drivers: CAN: Use common Zephyr bus-speed of 125kbit/s
Consistent use of 125000bit/s for Zephyr CAN code

Signed-off-by: Nick Ward <nix.ward@gmail.com>
2019-10-15 15:48:43 +02:00
..
src samples: drivers: CAN: Use common Zephyr bus-speed of 125kbit/s 2019-10-15 15:48:43 +02:00
CMakeLists.txt
Kconfig
README.rst doc: s/device tree/devicetree/ 2019-10-08 11:53:40 +02:00
mcp2515-dts.overlay drivers: CAN: MCP2515: Move OSC frequency definition to device-tree 2019-10-09 06:27:53 -05:00
prj.conf
sample.yaml samples: CAN: Add testing harness 2019-08-26 22:33:14 -04:00

README.rst

.. _can-sample:

Controller Area Network
#######################

Overview
********

This sample demonstrates how to use the Controller Area Network (CAN) API.
Messages with standard and extended identifiers are sent over the bus.
Messages are received using message-queues and work-queues.
Reception is indicated by blinking the LED (if present) and output to the console.

Building and Running
********************

In loopback mode, the board receives its own messages. This could be used for
standalone testing.

The sample can be built and executed on boards supporting CAN.
The LED output pin is defined in the board's devicetree.

Sample output
=============

.. code-block:: console

   Change LED filter ID: 0
   Finished init.
   Counter filter id: 4

   uart:~$ Counter received: 0
   Counter received: 1
   Counter received: 2
   Counter received: 3

.. note:: The values shown above might differ.