zephyr/samples/net/openthread/ncp
Tomasz Bursztyka e18fcbba5a device: Const-ify all device driver instance pointers
Now that device_api attribute is unmodified at runtime, as well as all
the other attributes, it is possible to switch all device driver
instance to be constant.

A coccinelle rule is used for this:

@r_const_dev_1
  disable optional_qualifier
@
@@
-struct device *
+const struct device *

@r_const_dev_2
 disable optional_qualifier
@
@@
-struct device * const
+const struct device *

Fixes #27399

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-09-02 13:48:13 +02:00
..
src device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
Kconfig
README.rst
overlay-tri-n4m-br.conf net: openthread: Add config for NRF52840 DK OpenThread NCP 2020-06-17 08:57:55 +03:00
overlay-usb-nrf-br.conf net: openthread: Add config for NRF52840 DK OpenThread NCP 2020-06-17 08:57:55 +03:00
prj.conf samples: openthread: remove redundant configuration options 2020-06-30 07:48:08 -04:00
sample.yaml

README.rst

.. _ncp-sample:

OpenThread NCP
##############

Overview
********

OpenThread NCP allows building a Thread Border Router. The code in this
sample is only the MCU target part of a complete Thread Border Router.
The Linux tools from https://openthread.io/guides/border-router
(especially wpantund and wpanctl) are required to get a complete Thread
Border Router.

The source code for this sample application can be found at:
:zephyr_file:`samples/net/openthread/ncp`.

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

Build the OpenThread NCP sample application like this:

.. zephyr-app-commands::
   :zephyr-app: samples/net/openthread/ncp
   :board: <board to use>
   :conf: <config file to use>
   :goals: build
   :compact:

There are configuration files for different boards and setups in the
ncp directory:

- :file:`prj.conf`
  Generic config file, normally you should use this.

- :file:`overlay-tri-n4m-br.conf`
  This is an overlay for the dedicated Thread Border Router hardware
  https://www.tridonic.com/com/en/products/net4more-borderROUTER-PoE-Thread.asp.
  The board support is not part of the Zephyr repositories, but the
  product is based on NXP K64 and AT86RF233. This file can be used as an
  example for a development set-up based on development boards.