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:
Hubert Miś 2020-11-06 22:34:29 +01:00 committed by Carles Cufí
parent 09f6e8a112
commit 9ec8aec794
6 changed files with 67 additions and 0 deletions

View File

@ -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

View File

@ -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)

View 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.

View 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

View 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

View 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");
}