samples: boards: nrf: ieee802154: New serialization sample
A new sample exposing IEEE 802.15.4 radio controller using serialization over IPM drivers. Signed-off-by: Hubert Miś <hubert.mis@nordicsemi.no>
This commit is contained in:
parent
09f6e8a112
commit
9ec8aec794
@ -11,6 +11,7 @@ menuconfig NRF_802154_RADIO_DRIVER
|
||||
bool "Enable nRF IEEE 802.15.4 radio driver"
|
||||
depends on HAS_HW_NRF_RADIO_IEEE802154
|
||||
select DYNAMIC_INTERRUPTS
|
||||
select ENTROPY_GENERATOR
|
||||
help
|
||||
This option enables nRF IEEE 802.15.4 radio driver in Zephyr. Note,
|
||||
that beside the radio peripheral itself, this drivers occupies several
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(802154_rpmsg)
|
||||
|
||||
target_sources(app PRIVATE src/main.c)
|
||||
32
samples/boards/nrf/ieee802154/802154_rpmsg/README.rst
Normal file
32
samples/boards/nrf/ieee802154/802154_rpmsg/README.rst
Normal file
@ -0,0 +1,32 @@
|
||||
.. _nrf-ieee802154-rpmsg-sample:
|
||||
|
||||
nRF IEEE 802.15.4: Serialization RPMsg
|
||||
######################################
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
This sample exposes IEEE 802.15.4 radio driver support
|
||||
to another device or CPU using the RPMsg transport which is
|
||||
a part of `OpenAMP <https://github.com/OpenAMP/open-amp/>`__.
|
||||
|
||||
Requirements
|
||||
************
|
||||
|
||||
* A board with nRF53 SoC
|
||||
|
||||
Building and Running
|
||||
********************
|
||||
|
||||
This sample can be found under :zephyr_file:`samples/boards/nrf/ieee802154/802154_rpmsg`
|
||||
in the Zephyr tree.
|
||||
|
||||
To use this application, you need a board with nRF53 SoC.
|
||||
You can then build this application and flash it onto your board in
|
||||
the usual way. See :ref:`boards` for board-specific building and
|
||||
programming information.
|
||||
|
||||
To test this sample, you need a separate device/CPU that acts as 802.15.4
|
||||
serialization RPMsg peer.
|
||||
This sample is compatible with the Nordic 802.15.4 serialization. See the
|
||||
:option:`CONFIG_NRF_802154_SER_HOST` configuration option for more information.
|
||||
6
samples/boards/nrf/ieee802154/802154_rpmsg/prj.conf
Normal file
6
samples/boards/nrf/ieee802154/802154_rpmsg/prj.conf
Normal file
@ -0,0 +1,6 @@
|
||||
CONFIG_OPENAMP=y
|
||||
CONFIG_OPENAMP_MASTER=n
|
||||
CONFIG_OPENAMP_SLAVE=y
|
||||
|
||||
CONFIG_NRF_802154_SER_RADIO=y
|
||||
CONFIG_NRF_802154_SL_OPENSOURCE=y
|
||||
4
samples/boards/nrf/ieee802154/802154_rpmsg/sample.yaml
Normal file
4
samples/boards/nrf/ieee802154/802154_rpmsg/sample.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
sample:
|
||||
description: Allows Zephyr to provide 802.15.4 connectivity
|
||||
for nRF devices via RPMsg.
|
||||
name: 802.15.4 RPMsg serialization
|
||||
16
samples/boards/nrf/ieee802154/802154_rpmsg/src/main.c
Normal file
16
samples/boards/nrf/ieee802154/802154_rpmsg/src/main.c
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <sys/__assert.h>
|
||||
#include <zephyr.h>
|
||||
|
||||
#include <nrf_802154_serialization_error.h>
|
||||
|
||||
void nrf_802154_serialization_error(const nrf_802154_ser_err_data_t *err)
|
||||
{
|
||||
(void)err;
|
||||
__ASSERT(false, "802.15.4 serialization error");
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user