diff --git a/nrf_802154_driver_sources.cmake b/nrf_802154_driver_sources.cmake index ffa1c4a..1d0de9e 100644 --- a/nrf_802154_driver_sources.cmake +++ b/nrf_802154_driver_sources.cmake @@ -8,6 +8,7 @@ set(NRF_802154_DRIVER_SOURCES_COMMON ${NRF_802154_DRIVER_ROOT}/src/nrf_802154_debug.c ${NRF_802154_DRIVER_ROOT}/src/nrf_802154_debug_assert.c ${NRF_802154_DRIVER_ROOT}/src/nrf_802154_pib.c + ${NRF_802154_DRIVER_ROOT}/src/nrf_802154_peripherals_alloc.c ${NRF_802154_DRIVER_ROOT}/src/nrf_802154_queue.c ${NRF_802154_DRIVER_ROOT}/src/nrf_802154_rssi.c ${NRF_802154_DRIVER_ROOT}/src/nrf_802154_rx_buffer.c @@ -24,7 +25,7 @@ set(NRF_802154_DRIVER_SOURCES_COMMON ${NRF_802154_DRIVER_ROOT}/src/mac_features/ack_generator/nrf_802154_ack_generator.c ${NRF_802154_DRIVER_ROOT}/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.c ${NRF_802154_DRIVER_ROOT}/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.c - ${NRF_802154_DRIVER_ROOT}/src/platform/random/nrf_802154_random_zephyr.c + ${NRF_802154_DRIVER_ROOT}/src/platform/random/nrf_802154_random_newlib.c ${NRF_802154_DRIVER_ROOT}/src/platform/temperature/nrf_802154_temperature_none.c ) diff --git a/nrf_802154_sl/include/fem/none/nrf_fem_config.h b/nrf_802154_sl/include/fem/none/nrf_fem_config.h deleted file mode 100644 index c495a06..0000000 --- a/nrf_802154_sl/include/fem/none/nrf_fem_config.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. - * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRF_FEM_NONE_CONFIG_H_ -#define NRF_FEM_NONE_CONFIG_H_ - -/** @brief The ID of "none" FEM type (e.g. for run-time selection) */ -#define NRF_FEM_IF_TYPE_NONE 0 - -#endif /* NRF_FEM_NONE_CONFIG_H_ */ diff --git a/nrf_802154_sl/include/fem/nrf_fem_abstract_interface.h b/nrf_802154_sl/include/fem/nrf_fem_abstract_interface.h deleted file mode 100644 index 97adc60..0000000 --- a/nrf_802154_sl/include/fem/nrf_fem_abstract_interface.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. - * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRF_FEM_ABSTRACT_INTERFACE_H_ -#define NRF_FEM_ABSTRACT_INTERFACE_H_ - -#include -#include - -#include "nrf_fem_protocol_api.h" - -/** - * @brief Set of pointers to functions that enables run-time choice of FEM implementation. - */ -typedef struct -{ - uint32_t fem_type_id; - - int32_t (* p_pa_configuration_set)(const nrf_802154_fal_event_t * const p_activate_event, - const nrf_802154_fal_event_t * const p_deactivate_event); - int32_t (* p_lna_configuration_set)(const nrf_802154_fal_event_t * const p_activate_event, - const nrf_802154_fal_event_t * const p_deactivate_event); - int32_t (* p_pa_configuration_clear)(void); - int32_t (* p_lna_configuration_clear)(void); - void (* p_deactivate_now)(nrf_fal_functionality_t type); - void (* p_cleanup)(void); - bool (* p_prepare_powerdown)(NRF_TIMER_Type * p_instance, - uint32_t compare_channel, - nrf_ppi_channel_t ppi_id); - void (* p_pa_is_configured)(int8_t * const p_gain); - int32_t (* p_abort_set)(uint32_t event, nrf_ppi_channel_group_t group); - int32_t (* p_abort_extend)(nrf_ppi_channel_t channel_to_add, nrf_ppi_channel_group_t group); - int32_t (* p_abort_reduce)(nrf_ppi_channel_t channel_to_remove, nrf_ppi_channel_group_t group); - int32_t (* p_abort_clear)(void); -} nrf_802154_fal_interface_t; - -/** - * @brief Connects to one of FEM implementation - * - * @param[in] p_methods Pointer to structure of pointers. This will be used in case of future calls - * to specific FEM implementation methods. - * - * @note This must be used by FEM implementation "constructor" and this is the only case - * in which it can be used. - * - * @retval ::NRFX_SUCCESS The "link" was successfuly created. - * @retval ::NRFX_ERROR_FORBIDDEN Some error occured (e.q. null pointer was passed) - */ -int32_t nrf_802154_fal_interface_set(const nrf_802154_fal_interface_t * p_methods); - -#endif // NRF_FEM_ABSTRACT_INTERFACE_ diff --git a/nrf_802154_sl/include/fem/nrf_fem_common_config.h b/nrf_802154_sl/include/fem/nrf_fem_common_config.h deleted file mode 100644 index fd4bb02..0000000 --- a/nrf_802154_sl/include/fem/nrf_fem_common_config.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. - * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRF_FEM_COMMON_CONFIG_H_ -#define NRF_FEM_COMMON_CONFIG_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Configuration parameters for pins that enable or disable (or both) either Power Amplifier (PA) or Low Noise Amplifier (LNA). - */ -typedef struct -{ - bool enable; /* Enable toggling for this pin. */ - bool active_high; /* If true, the pin will be active high. Otherwise, the pin will be active low. */ - uint8_t gpio_pin; /* GPIO pin number for the pin. */ - uint8_t gpiote_ch_id; /* GPIOTE channel to be used for toggling pins. */ -} nrf_fem_gpiote_pin_config_t; - -/** Mask of GPIO pins used for FEM control. */ -#define NRF_802154_FEM_PINS_USED_MASK 0 - -/** Mask of PPI channels used for FEM control. */ -#define NRF_802154_FEM_PPI_CHANNELS_USED_MASK 0 - -/** Mask of GPIOTE channels used for FEM control. */ -#define NRF_802154_FEM_GPIOTE_CHANNELS_USED_MASK 0 - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/nrf_802154_sl/include/fem/nrf_fem_control_config.h b/nrf_802154_sl/include/fem/nrf_fem_control_config.h deleted file mode 100644 index 89f1b71..0000000 --- a/nrf_802154_sl/include/fem/nrf_fem_control_config.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. - * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRF_FEM_CONTROL_CONFIG_H_ -#define NRF_FEM_CONTROL_CONFIG_H_ - -#include "none/nrf_fem_config.h" -#include "simple_gpio/nrf_fem_config.h" -#include "three_pin_gpio/nrf_fem_config.h" - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @section Configuration - */ - -/** - * @brief Retrieves last selected PA, LNA device interface ID code. - */ -int32_t nrf_fem_interface_type_get(void); - -#ifdef __cplusplus -} -#endif - -#endif /* NRF_FEM_CONTROL_CONFIG_H_ */ diff --git a/nrf_802154_sl/include/fem/nrf_fem_protocol_api.h b/nrf_802154_sl/include/fem/nrf_fem_protocol_api.h deleted file mode 100644 index 28fe06c..0000000 --- a/nrf_802154_sl/include/fem/nrf_fem_protocol_api.h +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright (c) 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. - * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/** - * @brief Protocol interface for Power Amplifier (PA) and Low Noise Amplifier (LNA). - * - * This module enables toggling of GPIO pins before and after the radio transmission and the radio reception - * in order to control a Power Amplifier or a Low Noise Amplifier, or both. - * - * The application must first provide PA and LNA device-specific configuration parameters to this module. - * The protocol must then provide PA and LNA protocol configuration parameters before it can use the functionality. - * - * When the PA/LNA module is configured, the stack can call the provided enable functions before radio activity - * to enable the PA or LNA timer configurations for the upcoming radio activity. - * By default, PA/LNA is automatically deactivated on the radio DISABLED event. - */ - -#ifndef NRF_FEM_PROTOCOL_API_H__ -#define NRF_FEM_PROTOCOL_API_H__ - -#include - -#if defined(NRF52_SERIES) -#include "hal/nrf_ppi.h" -#elif defined(NRF53_SERIES) -#include "hal/nrf_dppi.h" -#else -#error Unsupported chip -#endif - -typedef enum -{ - NRF_802154_FAL_PA = 1 << 0, - NRF_802154_FAL_LNA = 1 << 1, - NRF_802154_FAL_ALL = NRF_802154_FAL_PA | NRF_802154_FAL_LNA -} nrf_fal_functionality_t; - -/** - * @brief PA and LNA activation event types. - */ -typedef enum -{ - NRF_802154_FAL_EVENT_TYPE_TIMER, - NRF_802154_FAL_EVENT_TYPE_GENERIC, - NRF_802154_FAL_EVENT_TYPE_PPI, -} nrf_802154_fal_event_type_t; - -/** - * @brief Frontend Abstraction Layer event. - * - * The event can be a Timer Compare event or an Any event. - * Register value is only used for the Timer Compare event and should only contain the timer value relative to the Timer Compare event. - */ -typedef struct -{ - union - { - struct - { - NRF_TIMER_Type * p_timer_instance; /* Pointer to a 1-us resolution timer instance. */ - - struct - { - uint32_t start; /* Timer value when the FEM can start preparing PA/LNA. */ - uint32_t end; /* Timer value at which the PA/LNA have to be prepared. Radio operation shall start at this point. */ - } counter_period; - uint8_t compare_channel_mask; /* Mask of the compare channels that can be used by the FEM to schedule its own tasks. */ - } timer; - struct - { - uint32_t register_address; /* Address of event register. */ - } generic; - } event; - bool override_ppi; /* False to ignore the PPI channel below and use the one set by application. True to use the PPI channel below. */ - uint8_t ppi_ch_id; /* PPI channel to be used for this event. */ - nrf_802154_fal_event_type_t type; /* Type of event source. */ -} nrf_802154_fal_event_t; - -/** - * @brief Sets up PA using the provided events for the upcoming radio transmission. - * - * Multiple configurations can be provided by repeating calls to this function (that is, you can set the activate and the deactivate events in multiple calls, - * and the configuration is preserved between calls). - * - * The order of calls of this function and its `lna` counterpart must match the order of radio operations. - * I.e. if you want to perform the CCA and then send the frame, you need first to issue @ref nrf_802154_fal_lna_configuration_set and only after @ref nrf_802154_fal_pa_configuration_set. - * - * If a NRF_802154_PA_LNA_EVENT_TYPE_TIMER timer event is provided, the PA will be configured to activate or deactivate at the application-configured time gap - * before the timer instance reaches the given register_value. The time gap is set via @ref nrf_fem_interface_configuration_set. - * - * If a NRF_802154_PA_LNA_EVENT_TYPE_GENERIC event is provided, the PA will be configured to activate or deactivate when an event occurs. - * - * The function sets up the PPIs and the GPIOTE channel to activate PA for the upcoming radio transmission. - * The PA pin will be active until deactivated, which can happen either by encountering a configured deactivation event or by using @ref nrf_802154_fal_deactivate_now. - * - * @param[in] p_activate_event Pointer to the activation event structure. - * @param[in] p_deactivate_event Pointer to the deactivation event structure. - * - * @pre To activate PA, nrf_fem_interface_configuration_set() must have been called first. - * - * @note If a timer event is provided, the caller of this function is responsible for starting the timer and configuring its shorts. - * Moreover, the caller is responsible for stopping the timer no earlier than the compare channel of the lowest ID among the provided ones does expire. - * - * @retval ::NRFX_SUCCESS PA activate setup is successful. - * @retval ::NRFX_ERROR_FORBIDDEN PA is currently disabled. - * @retval ::NRFX_ERROR_INVALID_STATE PA activate setup could not be performed due to invalid or missing configuration parameters - * in p_activate_event or p_deactivate_event, or both. - */ -int32_t nrf_802154_fal_pa_configuration_set(const nrf_802154_fal_event_t * const p_activate_event, - const nrf_802154_fal_event_t * const p_deactivate_event); - -/** - * @brief Clears up the configuration provided by the @ref nrf_802154_fal_pa_configuration_set function. - * - * @retval ::NRFX_SUCCESS PA activate setup purge is successful. - * @retval ::NRFX_ERROR_FORBIDDEN PA is currently disabled. - * @retval ::NRFX_ERROR_INVALID_STATE PA activate setup purge could not be performed due to invalid or missing configuration parameters, - * that were previously used in @ref nrf_802154_fal_pa_configuration_set call. - */ -int32_t nrf_802154_fal_pa_configuration_clear(void); - -/** - * @brief Sets up LNA using the provided event for the upcoming radio reception. - * - * Multiple configurations can be provided by repeating calls to this function (that is, you can set the activate and the deactivate event in multiple calls, - * and the configuration is preserved between calls). - * - * The order of calls of this function and its `pa` counterpart must match the order of radio operations. - * I.e. if you want to perform the CCA and then send the frame, you need first to issue @ref nrf_802154_fal_lna_configuration_set and only after @ref nrf_802154_fal_pa_configuration_set. - * - * If a NRF_802154_PA_LNA_EVENT_TYPE_TIMER timer event is provided, the LNA will be configured to activate or deactivate at the application-configured time gap - * before the timer instance reaches the given register_value. The time gap is set via @ref nrf_fem_interface_configuration_set. - * - * If a NRF_802154_PA_LNA_EVENT_TYPE_GENERIC event is provided, the LNA will be configured to activate or deactivate when an event occurs. - * - * The function sets up the PPIs and the GPIOTE channel to activate LNA for the upcoming radio transmission. - * The LNA pin will be active until deactivated, which can happen either by encountering a configured deactivation event or by using @ref nrf_802154_fal_deactivate_now. - * - * @param[in] p_activate_event Pointer to the activation event structure. - * @param[in] p_deactivate_event Pointer to the deactivation event structure. - * - * @pre To activate LNA, nrf_fem_interface_configuration_set() must have been called first. - * - * @note If a timer event is provided, the caller of this function is responsible for starting the timer and configuring its shorts. - * Moreover, the caller is responsible for stopping the timer no earlier than the compare channel of the lowest ID among the provided ones does expire. - * - * @retval ::NRFX_SUCCESS LNA activate setup is successful. - * @retval ::NRFX_ERROR_FORBIDDEN LNA is currently disabled. - * @retval ::NRFX_ERROR_INVALID_STATE LNA activate setup could not be performed due to invalid or missing configuration parameters - * in p_activate_event or p_deactivate_event, or both. - */ -int32_t nrf_802154_fal_lna_configuration_set(const nrf_802154_fal_event_t * const p_activate_event, - const nrf_802154_fal_event_t * const p_deactivate_event); - -/** - * @brief Clears up the configuration provided by the @ref nrf_802154_fal_lna_configuration_set function. - * - * - * @retval ::NRFX_SUCCESS LNA activate setup purge is successful. - * @retval ::NRFX_ERROR_FORBIDDEN LNA is currently disabled. - * @retval ::NRFX_ERROR_INVALID_STATE LNA activate setup purge could not be performed due to invalid or missing configuration parameters, - * that were previously used in @ref nrf_802154_fal_lna_configuration_set call. - */ -int32_t nrf_802154_fal_lna_configuration_clear(void); - -/** - * @brief Deactivates PA/LNA pins with immediate effect. - */ -void nrf_802154_fal_deactivate_now(nrf_fal_functionality_t type); - -#if defined(NRF52_SERIES) -/** - * @brief Instruct FEM to disable PA and LNA as soon as possible using the group following the event. - * - * @param[in] event Address of the event which is triggered when the abort condition occurs. - * @param[in] group PPI Group which shall be disabled when the abort event is triggered. - * - * @retval ::NRFX_SUCCESS Setting of the abort sequence path is successful. - * @retval ::NRFX_ERROR_FORBIDDEN Setting of the abort sequence path could not be performed. - */ -int32_t nrf_802154_fal_abort_set(uint32_t event, nrf_ppi_channel_group_t group); - -/** - * @brief Adds one more PPI channel to the PPI Group prepared by the @ref nrf_802154_fal_abort_set function. - * - * @param[in] channel_to_add - * @param[in] group - * - * @retval ::NRFX_SUCCESS Setting of the abort sequence path is successful. - */ -int32_t nrf_802154_fal_abort_extend(nrf_ppi_channel_t channel_to_add, - nrf_ppi_channel_group_t group); - -/** - * @brief Removes one PPI channel from the PPI Group prepared by the @ref nrf_802154_fal_abort_set function. - * - * @param[in] channel_to_remove - * @param[in] group - * - * @retval ::NRFX_SUCCESS Setting of the abort sequence path is successful. - */ -int32_t nrf_802154_fal_abort_reduce(nrf_ppi_channel_t channel_to_remove, - nrf_ppi_channel_group_t group); - -/** - * @brief Clears up the configuration provided by the @ref nrf_802154_fal_abort_set function. - * - * @retval ::NRFX_SUCCESS Clearing of the abort sequence path is successful. - * @retval ::NRFX_ERROR_FORBIDDEN Clearing was not done - the possible reason is that there was nothing to clear. - */ -int32_t nrf_802154_fal_abort_clear(void); -#endif // NRF52_SERIES - -/** - * @brief Cleans up the configured PA/LNA timer/radio instance and resources of PPI and GPIOTE. - * The function resets the hardware that has been set up for the PA/LNA activation. The PA and LNA module control configuration parameters are not deleted. - * The function is intended to be called after the radio disable signal. - */ -void nrf_802154_fal_cleanup(void); - -/** - * @brief Checks if the PA signaling is configured and enabled, and gets the configured gain in dB. - * - * @param[out] p_gain The configured gain in dB if PA is configured and enabled. - If there is no PA present or the PA does not affect the signal gain, returns 0 dB. - * - */ -void nrf_802154_fal_pa_is_configured(int8_t * const p_gain); - -#if defined(NRF52_SERIES) -/** - * @brief Prepares the FEM module to switch to the Power Down state. - * - * @param[in] p_instance Timer instance that is used to schedule the transition to the Power Down state. - * @param[in] compare_channel Compare channel to hold a value for the timer. - * @param[in] ppi_id ID of the PPI channel used to switch to the Power Down state. - * - * @return bool Whether the scheduling of the transition was successful or not. - * - */ -bool nrf_fem_prepare_powerdown(NRF_TIMER_Type * p_instance, - uint32_t compare_channel, - nrf_ppi_channel_t ppi_id); -#endif // NRF52_SERIES - -#endif // NRF_FEM_PROTOCOL_API_H__ diff --git a/nrf_802154_sl/include/fem/simple_gpio/nrf_fem_config.h b/nrf_802154_sl/include/fem/simple_gpio/nrf_fem_config.h deleted file mode 100644 index 9b905a1..0000000 --- a/nrf_802154_sl/include/fem/simple_gpio/nrf_fem_config.h +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. - * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRF_FEM_SIMPLE_GPIO_CONFIG_H_ -#define NRF_FEM_SIMPLE_GPIO_CONFIG_H_ - -#include -#include -#include "../nrf_fem_common_config.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** @brief The ID of "simpe gpio" FEM type (e.g. for run-time selection) */ -#define NRF_FEM_IF_TYPE_SIMPLE_GPIO 1 - -/** - * @brief Configuration parameters for the PA/LNA interface in the "simple gpio" variant - */ -typedef struct -{ - struct - { - uint32_t pa_time_gap_us; /* Time between the activation of the PA pin and the start of the radio transmission. */ - uint32_t lna_time_gap_us; /* Time between the activation of the LNA pin and the start of the radio reception. */ - int8_t pa_gain_db; /* Configurable PA gain. Ignored if the amplifier is not supporting this feature. */ - int8_t lna_gain_db; /* Configurable LNA gain. Ignored if the amplifier is not supporting this feature. */ - } fem_config; - - nrf_fem_gpiote_pin_config_t pa_pin_config; /* Power Amplifier pin configuration. */ - nrf_fem_gpiote_pin_config_t lna_pin_config; /* Low Noise Amplifier pin configuration. */ - - uint8_t ppi_channels[2]; - -} nrf_fem_simple_gpio_interface_config_t; - -/** - * @brief Configures the PA and LNA device interface. - * - * This function sets device interface parameters for the PA/LNA module. - * The module can then be used to control a power amplifier or a low noise amplifier (or both) through the given interface and resources. - * - * The function also sets the PPI and GPIOTE channels to be configured for the PA/LNA interface. - * - * @param[in] p_config Pointer to the interface parameters for the PA/LNA device. - * - * @retval ::NRFX_SUCCESS PA/LNA control successfully configured. - * @retval ::NRFX_ERROR_NOT_SUPPORTED PA/LNA is not available. - * - */ -int32_t nrf_fem_simple_gpio_interface_config_set( - nrf_fem_simple_gpio_interface_config_t const * const p_config); - -/** - * @brief Retrieves the configuration of PA and LNA device interface. - * - * This function gets device interface parameters for the PA/LNA module. - * The module can then be used to control a power amplifier or a low noise amplifier (or both) through the given interface and resources. - * - * - * @param[in] p_config Pointer to the interface parameters for the PA/LNA device to be populated. - * - * @retval ::NRFX_SUCCESS PA/LNA control successfully configured. - * @retval ::NRFX_ERROR_NOT_SUPPORTED PA/LNA is not available. - * @retval ::NRFX_ERROR_FORBIDDEN The "simpe gpio" is not currently selected as the FEM type. - * - */ -int32_t nrf_fem_simple_gpio_interface_config_get(nrf_fem_simple_gpio_interface_config_t * p_config); - -/** - * @section Timings. - */ - -/** Time in microseconds when PA GPIO is activated before the radio is ready for transmission. */ -#define NRF_FEM_SIMPLE_GPIO_PA_TIME_IN_ADVANCE_US 23 - -/** Time in microseconds when LNA GPIO is activated before the radio is ready for reception. */ -#define NRF_FEM_SIMPLE_GPIO_LNA_TIME_IN_ADVANCE_US 5 - -/** - * @section Gains. - */ - -#define NRF_FEM_SIMPLE_GPIO_PA_GAIN_DB 20 -#define NRF_FEM_SIMPLE_GPIO_LNA_GAIN_DB 20 - -#ifdef __cplusplus -} -#endif - -#endif /* NRF_FEM_SIMPLE_GPIO_CONFIG_H_ */ diff --git a/nrf_802154_sl/include/fem/three_pin_gpio/nrf_fem_config.h b/nrf_802154_sl/include/fem/three_pin_gpio/nrf_fem_config.h deleted file mode 100644 index 5bd95e9..0000000 --- a/nrf_802154_sl/include/fem/three_pin_gpio/nrf_fem_config.h +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright (c) 2020, Nordic Semiconductor ASA - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. - * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef NRF_FEM_3PIN_GPIO_CONFIG_H_ -#define NRF_FEM_3PIN_GPIO_CONFIG_H_ - -#include -#include -#include "../nrf_fem_common_config.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** @brief The ID of "3pin gpio" FEM type (e.g. for run-time selection) */ -#define NRF_FEM_IF_TYPE_THREE_PIN_GPIO 2 - -/** - * @brief Configuration parameters for the PA/LNA interface in the "3-pin gpio" variant - */ -typedef struct -{ - struct - { - uint32_t pa_time_gap_us; /* Time between the activation of the PA pin and the start of the radio transmission. */ - uint32_t lna_time_gap_us; /* Time between the activation of the LNA pin and the start of the radio reception. */ - uint32_t pdn_settle_us; /* The time between activating the PDN and asserting the PA/LNA pin. */ - uint32_t trx_hold_us; /* The time between deasserting the PA/LNA pin and deactivating PDN. */ - int8_t pa_gain_db; /* Configurable PA gain. Ignored if the amplifier is not supporting this feature. */ - int8_t lna_gain_db; /* Configurable LNA gain. Ignored if the amplifier is not supporting this feature. */ - } fem_config; - - nrf_fem_gpiote_pin_config_t pa_pin_config; /* Power Amplifier pin configuration. */ - nrf_fem_gpiote_pin_config_t lna_pin_config; /* Low Noise Amplifier pin configuration. */ - nrf_fem_gpiote_pin_config_t pdn_pin_config; /* Power Down pin configuration. */ - - uint8_t ppi_channels[3]; - -} nrf_fem_3pin_gpio_interface_config_t; - -/** - * @brief Configures the PA and LNA device interface. - * - * This function sets device interface parameters for the PA/LNA module. - * The module can then be used to control a power amplifier or a low noise amplifier (or both) through the given interface and resources. - * - * The function also sets the PPI and GPIOTE channels to be configured for the PA/LNA interface. - * - * @param[in] p_config Pointer to the interface parameters for the PA/LNA device. - * - * @retval ::NRFX_SUCCESS PA/LNA control successfully configured. - * @retval ::NRFX_ERROR_NOT_SUPPORTED PA/LNA is not available. - * - */ -int32_t nrf_fem_3pin_gpio_interface_config_set( - nrf_fem_3pin_gpio_interface_config_t const * const p_config); - -/** - * @brief Retrieves the configuration of PA and LNA device interface. - * - * This function gets device interface parameters for the PA/LNA module. - * The module can then be used to control a power amplifier or a low noise amplifier (or both) through the given interface and resources. - * - * - * @param[in] p_config Pointer to the interface parameters for the PA/LNA device to be populated. - * - * @retval ::NRFX_SUCCESS PA/LNA control successfully configured. - * @retval ::NRFX_ERROR_NOT_SUPPORTED PA/LNA is not available. - * @retval ::NRFX_ERROR_FORBIDDEN The "3pin gpio" is not currently selected as the FEM type. - * - */ -int32_t nrf_fem_3pin_gpio_interface_config_get(nrf_fem_3pin_gpio_interface_config_t * p_config); - -/** - * @section Timings. - */ - -/** Time in microseconds when PA GPIO is activated before the radio is ready for transmission. */ -#define NRF_FEM_THREE_PIN_GPIO_PA_TIME_IN_ADVANCE_US 13 - -/** Time in microseconds when LNA GPIO is activated before the radio is ready for reception. */ -#define NRF_FEM_THREE_PIN_GPIO_LNA_TIME_IN_ADVANCE_US 13 - -/** The time between activating the PDN and asserting the RX_EN/TX_EN. */ -#define NRF_FEM_THREE_PIN_GPIO_PDN_SETTLE_US 18 - -/** The time between deasserting the RX_EN/TX_EN and deactivating PDN. */ -#define NRF_FEM_THREE_PIN_GPIO_TRX_HOLD_US 5 - -/** - * @section Gains. - */ - -#define NRF_FEM_THREE_PIN_GPIO_PA_GAIN_DB 20 -#define NRF_FEM_THREE_PIN_GPIO_LNA_GAIN_DB 20 - -#ifdef __cplusplus -} -#endif - -#endif /* NRF_FEM_3PIN_GPIO_CONFIG_H_ */ diff --git a/nrf_802154_sl/include/nrf_802154_sl_ant_div.h b/nrf_802154_sl/include/nrf_802154_sl_ant_div.h index 2afdac9..67638b8 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_ant_div.h +++ b/nrf_802154_sl/include/nrf_802154_sl_ant_div.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/nrf_802154_sl_capabilities.h b/nrf_802154_sl/include/nrf_802154_sl_capabilities.h new file mode 100644 index 0000000..8f681ec --- /dev/null +++ b/nrf_802154_sl/include/nrf_802154_sl_capabilities.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2021, Nordic Semiconductor ASA + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + +/** + * @file This file implements the nRF 802.15.4 Service Layer capabilities API. + * + */ +#ifndef NRF_802154_SL_CAPABILITIES_H__ +#define NRF_802154_SL_CAPABILITIES_H__ + +#include + +/** + * @brief Capabilities of nrf 802.15.4 service layer + * + * Possible values: + * - @ref NRF_802154_SL_CAPABILITY_CSMA, + * - @ref NRF_802154_SL_CAPABILITY_DELAYED_TX, + * - @ref NRF_802154_SL_CAPABILITY_DELAYED_RX, + * - @ref NRF_802154_SL_CAPABILITY_ANT_DIVERSITY, + * - @ref NRF_802154_SL_CAPABILITY_MULTITIMER, + * - @ref NRF_802154_SL_CAPABILITY_TIMESTAMP + * + */ +typedef uint32_t nrf_802154_sl_capabilities_t; + +#define NRF_802154_SL_CAPABILITY_CSMA (1UL << 0UL) // !< CSMA-CA supported +#define NRF_802154_SL_CAPABILITY_DELAYED_TX (1UL << 1UL) // !< TX at specified time supported +#define NRF_802154_SL_CAPABILITY_DELAYED_RX (1UL << 2UL) // !< RX at specified time supported +#define NRF_802154_SL_CAPABILITY_ANT_DIVERSITY (1UL << 3UL) // !< Antenna diversity supported +#define NRF_802154_SL_CAPABILITY_MULTITIMER (1UL << 4UL) // !< Scheduling multiple timers supported +#define NRF_802154_SL_CAPABILITY_TIMESTAMP (1UL << 5UL) // !< Frame timestamping supported + +/** + * @brief Get capabilities of current nRF 802.15.4 SL implementation. + * + * @return Mask of current SL capabilities + */ +nrf_802154_sl_capabilities_t nrf_802154_sl_capabilities_get(void); + +#endif // NRF_802154_SL_CAPABILITIES_H__ diff --git a/nrf_802154_sl/include/nrf_802154_sl_coex.h b/nrf_802154_sl/include/nrf_802154_sl_coex.h index 56c34bc..92bcb95 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_coex.h +++ b/nrf_802154_sl/include/nrf_802154_sl_coex.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_SL_COEX_H__ diff --git a/nrf_802154_sl/include/nrf_802154_sl_config.h b/nrf_802154_sl/include/nrf_802154_sl_config.h index a7bc680..0b403f6 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_config.h +++ b/nrf_802154_sl/include/nrf_802154_sl_config.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -59,7 +55,7 @@ * The priority of RTC interrupt used in the standalone timer driver implementation. * * @note This configuration is only applicable for the Low Power Timer Abstraction Layer - * implementation in nrf_802154_lp_timer_nodrv.c. + * implementation in nrf_802154_lp_timer.c. * */ #ifndef NRF_802154_SL_RTC_IRQ_PRIORITY @@ -75,4 +71,13 @@ #define NRF_802154_SL_TIMESTAMP_ENABLED 1 #endif +/** + * @def NRF_802154_SL_ANT_DIV_ENABLED + * + * Configures if antenna diversity is to be enabled. + */ +#ifndef NRF_802154_SL_ANT_DIV_ENABLED +#define NRF_802154_SL_ANT_DIV_ENABLED 1 +#endif + #endif // NRF_802154_SL_CONFIG_H__ diff --git a/nrf_802154_sl/include/nrf_802154_sl_fault.h b/nrf_802154_sl/include/nrf_802154_sl_fault.h index 3af9e03..95b69ee 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_fault.h +++ b/nrf_802154_sl/include/nrf_802154_sl_fault.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/nrf_802154_sl_log.h b/nrf_802154_sl/include/nrf_802154_sl_log.h index 72915ff..9db9440 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_log.h +++ b/nrf_802154_sl/include/nrf_802154_sl_log.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -213,7 +209,7 @@ extern volatile uint32_t gp_nrf_802154_sl_log_ptr; nrf_802154_sl_debug_log_write_raw( \ ((NRF_802154_LOG_TYPE_FUNCTION_ENTER) << NRF_802154_SL_DEBUG_LOG_TYPE_BITPOS) | \ ((NRF_802154_MODULE_ID) << NRF_802154_SL_DEBUG_LOG_MODULE_ID_BITPOS) | \ - ((uint32_t)((uintptr_t)(__func__)) << 0)); \ + ((uint32_t)((uintptr_t)(__func__) & 0x000FFFFFUL) << 0)); \ } \ } \ while (0) @@ -230,7 +226,7 @@ extern volatile uint32_t gp_nrf_802154_sl_log_ptr; nrf_802154_sl_debug_log_write_raw( \ ((NRF_802154_LOG_TYPE_FUNCTION_EXIT) << NRF_802154_SL_DEBUG_LOG_TYPE_BITPOS) | \ ((NRF_802154_MODULE_ID) << NRF_802154_SL_DEBUG_LOG_MODULE_ID_BITPOS) | \ - ((uint32_t)((uintptr_t)(__func__)) << 0)); \ + ((uint32_t)((uintptr_t)(__func__) & 0x000FFFFFUL) << 0)); \ } \ } \ while (0) diff --git a/nrf_802154_sl/include/nrf_802154_sl_periphs.h b/nrf_802154_sl/include/nrf_802154_sl_periphs.h index cd3e7e8..52339d8 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_periphs.h +++ b/nrf_802154_sl/include/nrf_802154_sl_periphs.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/nrf_802154_sl_rsch.h b/nrf_802154_sl/include/nrf_802154_sl_rsch.h index 2a28b7f..1052bf2 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_rsch.h +++ b/nrf_802154_sl/include/nrf_802154_sl_rsch.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_SL_RSCH_H__ diff --git a/nrf_802154_sl/include/nrf_802154_sl_stats.h b/nrf_802154_sl/include/nrf_802154_sl_stats.h index 63a43a1..0cf0a6c 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_stats.h +++ b/nrf_802154_sl/include/nrf_802154_sl_stats.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_SL_STATS_H__ diff --git a/nrf_802154_sl/include/nrf_802154_sl_timer.h b/nrf_802154_sl/include/nrf_802154_sl_timer.h index b5ce32d..a9649f2 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_timer.h +++ b/nrf_802154_sl/include/nrf_802154_sl_timer.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/nrf_802154_sl_utils.h b/nrf_802154_sl/include/nrf_802154_sl_utils.h index 1d86d54..b116686 100644 --- a/nrf_802154_sl/include/nrf_802154_sl_utils.h +++ b/nrf_802154_sl/include/nrf_802154_sl_utils.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/platform/clock/nrf_802154_clock.h b/nrf_802154_sl/include/platform/clock/nrf_802154_clock.h index 9ba8d6c..fe98388 100644 --- a/nrf_802154_sl/include/platform/clock/nrf_802154_clock.h +++ b/nrf_802154_sl/include/platform/clock/nrf_802154_clock.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/platform/gpiote/nrf_802154_gpiote.h b/nrf_802154_sl/include/platform/gpiote/nrf_802154_gpiote.h index acceef6..c29274f 100644 --- a/nrf_802154_sl/include/platform/gpiote/nrf_802154_gpiote.h +++ b/nrf_802154_sl/include/platform/gpiote/nrf_802154_gpiote.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/platform/hp_timer/nrf_802154_hp_timer.h b/nrf_802154_sl/include/platform/hp_timer/nrf_802154_hp_timer.h index 9117ee5..18ddb9e 100644 --- a/nrf_802154_sl/include/platform/hp_timer/nrf_802154_hp_timer.h +++ b/nrf_802154_sl/include/platform/hp_timer/nrf_802154_hp_timer.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/platform/irq/nrf_802154_irq.h b/nrf_802154_sl/include/platform/irq/nrf_802154_irq.h index a841309..ce8257f 100644 --- a/nrf_802154_sl/include/platform/irq/nrf_802154_irq.h +++ b/nrf_802154_sl/include/platform/irq/nrf_802154_irq.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/platform/lp_timer/nrf_802154_lp_timer.h b/nrf_802154_sl/include/platform/lp_timer/nrf_802154_lp_timer.h index 085909a..d1c6121 100644 --- a/nrf_802154_sl/include/platform/lp_timer/nrf_802154_lp_timer.h +++ b/nrf_802154_sl/include/platform/lp_timer/nrf_802154_lp_timer.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/rsch/coex/nrf_802154_wifi_coex.h b/nrf_802154_sl/include/rsch/coex/nrf_802154_wifi_coex.h index 54e7ee7..d5516c3 100644 --- a/nrf_802154_sl/include/rsch/coex/nrf_802154_wifi_coex.h +++ b/nrf_802154_sl/include/rsch/coex/nrf_802154_wifi_coex.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/rsch/nrf_802154_rsch.h b/nrf_802154_sl/include/rsch/nrf_802154_rsch.h index b628a75..f5f4758 100644 --- a/nrf_802154_sl/include/rsch/nrf_802154_rsch.h +++ b/nrf_802154_sl/include/rsch/nrf_802154_rsch.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/rsch/nrf_802154_rsch_crit_sect.h b/nrf_802154_sl/include/rsch/nrf_802154_rsch_crit_sect.h index 72010fe..f4475ba 100644 --- a/nrf_802154_sl/include/rsch/nrf_802154_rsch_crit_sect.h +++ b/nrf_802154_sl/include/rsch/nrf_802154_rsch_crit_sect.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_RSCH_CRIT_SECT_H__ diff --git a/nrf_802154_sl/include/rsch/nrf_802154_rsch_prio_drop.h b/nrf_802154_sl/include/rsch/nrf_802154_rsch_prio_drop.h index f5dc8cd..45d7724 100644 --- a/nrf_802154_sl/include/rsch/nrf_802154_rsch_prio_drop.h +++ b/nrf_802154_sl/include/rsch/nrf_802154_rsch_prio_drop.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_RSCH_PRIO_DROP_H__ diff --git a/nrf_802154_sl/include/rsch/raal/nrf_raal_api.h b/nrf_802154_sl/include/rsch/raal/nrf_raal_api.h index d19ee62..12b7e9e 100644 --- a/nrf_802154_sl/include/rsch/raal/nrf_raal_api.h +++ b/nrf_802154_sl/include/rsch/raal/nrf_raal_api.h @@ -1,40 +1,37 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ + /** * @brief Module that defines the Radio Arbiter Abstraction Layer interface. * diff --git a/nrf_802154_sl/include/rsch/raal/nrf_raal_config.h b/nrf_802154_sl/include/rsch/raal/nrf_raal_config.h index 13eb745..6d7d63a 100644 --- a/nrf_802154_sl/include/rsch/raal/nrf_raal_config.h +++ b/nrf_802154_sl/include/rsch/raal/nrf_raal_config.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_RAAL_CONFIG_H__ diff --git a/nrf_802154_sl/include/timer/nrf_802154_timer_coord.h b/nrf_802154_sl/include/timer/nrf_802154_timer_coord.h index d34581c..82466b5 100644 --- a/nrf_802154_sl/include/timer/nrf_802154_timer_coord.h +++ b/nrf_802154_sl/include/timer/nrf_802154_timer_coord.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/include/timer/nrf_802154_timer_sched.h b/nrf_802154_sl/include/timer/nrf_802154_timer_sched.h index 43f3137..5d3f28a 100644 --- a/nrf_802154_sl/include/timer/nrf_802154_timer_sched.h +++ b/nrf_802154_sl/include/timer/nrf_802154_timer_sched.h @@ -1,39 +1,35 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/lib/nRF52811/soft-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52811/soft-float/libnrf_802154_sl.a index b01a677..ebd228b 100644 Binary files a/nrf_802154_sl/lib/nRF52811/soft-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52811/soft-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF52820/soft-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52820/soft-float/libnrf_802154_sl.a index 36d57c3..7ae0fa2 100644 Binary files a/nrf_802154_sl/lib/nRF52820/soft-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52820/soft-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF52833/hard-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52833/hard-float/libnrf_802154_sl.a index e8d364c..dcf7998 100644 Binary files a/nrf_802154_sl/lib/nRF52833/hard-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52833/hard-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF52833/soft-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52833/soft-float/libnrf_802154_sl.a index 5aea03d..7bc9c97 100644 Binary files a/nrf_802154_sl/lib/nRF52833/soft-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52833/soft-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF52833/softfp-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52833/softfp-float/libnrf_802154_sl.a index 4163c98..3acb232 100644 Binary files a/nrf_802154_sl/lib/nRF52833/softfp-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52833/softfp-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF52840/hard-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52840/hard-float/libnrf_802154_sl.a index 24014d0..c791dae 100644 Binary files a/nrf_802154_sl/lib/nRF52840/hard-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52840/hard-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF52840/soft-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52840/soft-float/libnrf_802154_sl.a index 28d651e..5dfc220 100644 Binary files a/nrf_802154_sl/lib/nRF52840/soft-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52840/soft-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF52840/softfp-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF52840/softfp-float/libnrf_802154_sl.a index 4ff9ecc..1717767 100644 Binary files a/nrf_802154_sl/lib/nRF52840/softfp-float/libnrf_802154_sl.a and b/nrf_802154_sl/lib/nRF52840/softfp-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/lib/nRF5340_cpunet/soft-float/libnrf_802154_sl.a b/nrf_802154_sl/lib/nRF5340_cpunet/soft-float/libnrf_802154_sl.a new file mode 100644 index 0000000..22be716 Binary files /dev/null and b/nrf_802154_sl/lib/nRF5340_cpunet/soft-float/libnrf_802154_sl.a differ diff --git a/nrf_802154_sl/nrf_802154_sl_files.cmake b/nrf_802154_sl/nrf_802154_sl_files.cmake index 6831efe..af644a1 100644 --- a/nrf_802154_sl/nrf_802154_sl_files.cmake +++ b/nrf_802154_sl/nrf_802154_sl_files.cmake @@ -5,21 +5,30 @@ set(NRF_802154_SL_OPENSOURCE_SOURCES ${NRF_802154_SL_ROOT}/open/src/nrf_802154_sl_log.c ${NRF_802154_SL_ROOT}/open/src/nrf_802154_sl_rsch.c ${NRF_802154_SL_ROOT}/open/src/nrf_802154_sl_timer.c - ${NRF_802154_SL_ROOT}/platform/clock/nrf_802154_clock_zephyr.c - ${NRF_802154_SL_ROOT}/platform/irq/nrf_802154_irq_zephyr.c + ${NRF_802154_SL_ROOT}/open/src/nrf_802154_sl_capabilities.c + ${NRF_802154_SL_ROOT}/platform/clock/nrf_802154_clock.c + ${NRF_802154_SL_ROOT}/platform/irq/nrf_802154_irq_baremetal.c ) set(NRF_802154_SL_OPENSOURCE_INCLUDE_DIRS ${NRF_802154_SL_ROOT}/include ) -set(NRF_802154_SL_SOURCES - ${NRF_802154_SL_ROOT}/platform/gpiote/nrf_802154_gpiote_zephyr.c - ${NRF_802154_SL_ROOT}/platform/gpiote/nrf_802154_gpiote_crit_sect.c - ${NRF_802154_SL_ROOT}/platform/hp_timer/nrf_802154_hp_timer.c - ${NRF_802154_SL_ROOT}/platform/lp_timer/nrf_802154_lp_timer.c - ${NRF_802154_SL_ROOT}/platform/clock/nrf_802154_clock_zephyr.c - ${NRF_802154_SL_ROOT}/platform/irq/nrf_802154_irq_zephyr.c +set(NRF_802154_SL_SOURCES_NRF52 + ${NRF_802154_SL_ROOT}/src/platform/gpiote/nrf_802154_gpiote_none.c + ${NRF_802154_SL_ROOT}/src/platform/gpiote/nrf_802154_gpiote_crit_sect.c + ${NRF_802154_SL_ROOT}/src/platform/hp_timer/nrf_802154_hp_timer.c + ${NRF_802154_SL_ROOT}/src/platform/lp_timer/nrf_802154_lp_timer.c + ${NRF_802154_SL_ROOT}/src/platform/clock/nrf_802154_clock_mpsl.c + ${NRF_802154_SL_ROOT}/src/platform/irq/nrf_802154_irq_baremetal.c +) + +set(NRF_802154_SL_SOURCES_NRF53 + ${NRF_802154_SL_ROOT}/src/platform/gpiote/nrf_802154_gpiote_none.c + ${NRF_802154_SL_ROOT}/src/platform/gpiote/nrf_802154_gpiote_crit_sect.c + ${NRF_802154_SL_ROOT}/src/platform/lp_timer/nrf_802154_lp_timer.c + ${NRF_802154_SL_ROOT}/src/platform/clock/nrf_802154_clock_mpsl.c + ${NRF_802154_SL_ROOT}/src/platform/irq/nrf_802154_irq_baremetal.c ) set(NRF_802154_SL_INCLUDE_DIRS diff --git a/nrf_802154_sl/open/src/nrf_802154_sl_ant_div.c b/nrf_802154_sl/open/src/nrf_802154_sl_ant_div.c index e56d260..ede01a7 100644 --- a/nrf_802154_sl/open/src/nrf_802154_sl_ant_div.c +++ b/nrf_802154_sl/open/src/nrf_802154_sl_ant_div.c @@ -1,30 +1,34 @@ -/* Copyright (c) 2020, Nordic Semiconductor ASA +/* + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. * */ diff --git a/nrf_802154_sl/open/src/nrf_802154_sl_capabilities.c b/nrf_802154_sl/open/src/nrf_802154_sl_capabilities.c new file mode 100644 index 0000000..50e3e5e --- /dev/null +++ b/nrf_802154_sl/open/src/nrf_802154_sl_capabilities.c @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2021, Nordic Semiconductor ASA + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + +#include "nrf_802154_sl_capabilities.h" + +nrf_802154_sl_capabilities_t nrf_802154_sl_capabilities_get(void) +{ + return 0; +} diff --git a/nrf_802154_sl/open/src/nrf_802154_sl_coex.c b/nrf_802154_sl/open/src/nrf_802154_sl_coex.c index 30ce930..7c409ad 100644 --- a/nrf_802154_sl/open/src/nrf_802154_sl_coex.c +++ b/nrf_802154_sl/open/src/nrf_802154_sl_coex.c @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #include "nrf_802154_sl_coex.h" diff --git a/nrf_802154_sl/open/src/nrf_802154_sl_fem.c b/nrf_802154_sl/open/src/nrf_802154_sl_fem.c index ced69dc..4aaf28b 100644 --- a/nrf_802154_sl/open/src/nrf_802154_sl_fem.c +++ b/nrf_802154_sl/open/src/nrf_802154_sl_fem.c @@ -1,124 +1,118 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #include -#include "nrf.h" +#include +#include "nrf_errno.h" -#include "fem/nrf_fem_protocol_api.h" +#include "mpsl_fem_protocol_api.h" #ifdef __cplusplus extern "C" { #endif -int32_t nrf_802154_fal_pa_configuration_set(const nrf_802154_fal_event_t * const p_activate_event, - const nrf_802154_fal_event_t * const p_deactivate_event) +int32_t mpsl_fem_pa_configuration_set(const mpsl_fem_event_t * const p_activate_event, + const mpsl_fem_event_t * const p_deactivate_event) { (void)p_activate_event; (void)p_deactivate_event; - return NRFX_ERROR_FORBIDDEN; + return -NRF_EPERM; } -int32_t nrf_802154_fal_pa_configuration_clear(void) +int32_t mpsl_fem_pa_configuration_clear(void) { - return NRFX_ERROR_FORBIDDEN; + return -NRF_EPERM; } -int32_t nrf_802154_fal_lna_configuration_set(const nrf_802154_fal_event_t * const p_activate_event, - const nrf_802154_fal_event_t * const p_deactivate_event) +int32_t mpsl_fem_lna_configuration_set(const mpsl_fem_event_t * const p_activate_event, + const mpsl_fem_event_t * const p_deactivate_event) { (void)p_activate_event; (void)p_deactivate_event; - return NRFX_ERROR_FORBIDDEN; + return -NRF_EPERM; } -int32_t nrf_802154_fal_lna_configuration_clear(void) +int32_t mpsl_fem_lna_configuration_clear(void) { - return NRFX_ERROR_FORBIDDEN; + return -NRF_EPERM; } -void nrf_802154_fal_deactivate_now(nrf_fal_functionality_t type) +void mpsl_fem_deactivate_now(mpsl_fem_functionality_t type) { (void)type; } -#if defined(NRF52_SERIES) -// TODO: Uncomment this code when API is portable to nRF53 -int32_t nrf_802154_fal_abort_set(uint32_t event, nrf_ppi_channel_group_t group) +int32_t mpsl_fem_abort_set(uint32_t event, uint32_t group) { - return NRFX_ERROR_FORBIDDEN; + return -NRF_EPERM; } -int32_t nrf_802154_fal_abort_extend(nrf_ppi_channel_t channel_to_add, - nrf_ppi_channel_group_t group) +int32_t mpsl_fem_abort_extend(uint32_t channel_to_add, uint32_t group) { - return NRFX_ERROR_FORBIDDEN; + (void)channel_to_add; + (void)group; + return 0; } -int32_t nrf_802154_fal_abort_reduce(nrf_ppi_channel_t channel_to_remove, - nrf_ppi_channel_group_t group) +int32_t mpsl_fem_abort_reduce(uint32_t channel_to_remove, uint32_t group) { - return NRFX_ERROR_FORBIDDEN; + (void)channel_to_remove; + (void)group; + return 0; } -int32_t nrf_802154_fal_abort_clear(void) +int32_t mpsl_fem_abort_clear(void) { - return NRFX_ERROR_FORBIDDEN; + return -NRF_EPERM; } -#endif // NRF52_SERIES - -void nrf_802154_fal_cleanup(void) +void mpsl_fem_cleanup(void) { // Intentionally empty } -void nrf_802154_fal_pa_is_configured(int8_t * const p_gain) +void mpsl_fem_pa_is_configured(int8_t * const p_gain) { (void)p_gain; } -#if defined(NRF52_SERIES) -// TODO: Uncomment this code when API is portable to nRF53 -bool nrf_fem_prepare_powerdown(NRF_TIMER_Type * p_instance, - uint32_t compare_channel, - nrf_ppi_channel_t ppi_id) +bool mpsl_fem_prepare_powerdown(NRF_TIMER_Type * p_instance, + uint32_t compare_channel, + uint32_t ppi_id, + uint32_t event_addr) { (void)p_instance; (void)compare_channel; @@ -127,12 +121,9 @@ bool nrf_fem_prepare_powerdown(NRF_TIMER_Type * p_instance, return false; } -#endif // NRF52_SERIES - int8_t nrf_802154_fal_tx_power_get(const uint8_t channel, const int8_t power) { (void)channel; - return power; } diff --git a/nrf_802154_sl/open/src/nrf_802154_sl_log.c b/nrf_802154_sl/open/src/nrf_802154_sl_log.c index 6dd9e6a..9dc0a09 100644 --- a/nrf_802154_sl/open/src/nrf_802154_sl_log.c +++ b/nrf_802154_sl/open/src/nrf_802154_sl_log.c @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #include "nrf_802154_sl_log.h" diff --git a/nrf_802154_sl/open/src/nrf_802154_sl_rsch.c b/nrf_802154_sl/open/src/nrf_802154_sl_rsch.c index 2a8f7b4..82dd702 100644 --- a/nrf_802154_sl/open/src/nrf_802154_sl_rsch.c +++ b/nrf_802154_sl/open/src/nrf_802154_sl_rsch.c @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #include "nrf_802154_sl_rsch.h" @@ -117,8 +113,6 @@ void nrf_802154_rsch_crit_sect_prio_request(rsch_prio_t prio) { nrf_802154_clock_hfclk_stop(); - assert(m_ready); - m_ready = false; nrf_802154_rsch_crit_sect_prio_changed(RSCH_PRIO_IDLE); diff --git a/nrf_802154_sl/open/src/nrf_802154_sl_timer.c b/nrf_802154_sl/open/src/nrf_802154_sl_timer.c index 33b6299..bc27baa 100644 --- a/nrf_802154_sl/open/src/nrf_802154_sl_timer.c +++ b/nrf_802154_sl/open/src/nrf_802154_sl_timer.c @@ -1,39 +1,35 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form, except as embedded into a Nordic - * Semiconductor ASA integrated circuit in a product or a software update for - * such product, must reproduce the above copyright notice, this list of - * conditions and the following disclaimer in the documentation and/or other - * materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * - * 4. This software, with or without modification, must only be used with a - * Nordic Semiconductor ASA integrated circuit. - * - * 5. Any software provided in binary form under this license must not be reverse - * engineered, decompiled, modified and/or disassembled. - * - * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * */ #include "nrf_802154_sl_utils.h" diff --git a/nrf_802154_sl/platform/clock/nrf_802154_clock.c b/nrf_802154_sl/platform/clock/nrf_802154_clock.c index 0b1684b..de3b481 100644 --- a/nrf_802154_sl/platform/clock/nrf_802154_clock.c +++ b/nrf_802154_sl/platform/clock/nrf_802154_clock.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/platform/clock/nrf_802154_clock_mpsl.c b/nrf_802154_sl/platform/clock/nrf_802154_clock_mpsl.c index 8eb5618..a38d8a8 100644 --- a/nrf_802154_sl/platform/clock/nrf_802154_clock_mpsl.c +++ b/nrf_802154_sl/platform/clock/nrf_802154_clock_mpsl.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/platform/clock/nrf_802154_clock_zephyr.c b/nrf_802154_sl/platform/clock/nrf_802154_clock_zephyr.c index 10856ec..907a4f5 100644 --- a/nrf_802154_sl/platform/clock/nrf_802154_clock_zephyr.c +++ b/nrf_802154_sl/platform/clock/nrf_802154_clock_zephyr.c @@ -1,7 +1,35 @@ /* - * Copyright (c) 2020 Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. * - * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ /** diff --git a/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_crit_sect.c b/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_crit_sect.c index b5ce53f..5cf019b 100644 --- a/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_crit_sect.c +++ b/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_crit_sect.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -85,4 +88,4 @@ void nrf_802154_gpiote_critical_section_exit(void) m_gpiote_irq_disabled_cnt = cnt; nrf_802154_sl_mcu_critical_exit(mcu_cs); -} \ No newline at end of file +} diff --git a/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_none.c b/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_none.c index b1bd743..26be5ba 100644 --- a/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_none.c +++ b/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_none.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_zephyr.c b/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_zephyr.c index bdc5f25..cbf5b64 100644 --- a/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_zephyr.c +++ b/nrf_802154_sl/platform/gpiote/nrf_802154_gpiote_zephyr.c @@ -1,7 +1,35 @@ /* - * Copyright (c) 2020 Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. * - * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ /** diff --git a/nrf_802154_sl/platform/hp_timer/nrf_802154_hp_timer.c b/nrf_802154_sl/platform/hp_timer/nrf_802154_hp_timer.c index a4bf90c..00266a5 100644 --- a/nrf_802154_sl/platform/hp_timer/nrf_802154_hp_timer.c +++ b/nrf_802154_sl/platform/hp_timer/nrf_802154_hp_timer.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/platform/irq/nrf_802154_irq_baremetal.c b/nrf_802154_sl/platform/irq/nrf_802154_irq_baremetal.c index 2f2c257..ae5062a 100644 --- a/nrf_802154_sl/platform/irq/nrf_802154_irq_baremetal.c +++ b/nrf_802154_sl/platform/irq/nrf_802154_irq_baremetal.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/platform/irq/nrf_802154_irq_zephyr.c b/nrf_802154_sl/platform/irq/nrf_802154_irq_zephyr.c index dd2c6fc..f44e4aa 100644 --- a/nrf_802154_sl/platform/irq/nrf_802154_irq_zephyr.c +++ b/nrf_802154_sl/platform/irq/nrf_802154_irq_zephyr.c @@ -1,7 +1,35 @@ /* - * Copyright (c) 2020 Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. * - * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ /** diff --git a/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer.c b/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer.c index cb11616..2bd1545 100644 --- a/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer.c +++ b/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer_none.c b/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer_none.c index c1fc2ce..1908932 100644 --- a/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer_none.c +++ b/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer_none.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer_zephyr.c b/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer_zephyr.c new file mode 100644 index 0000000..c7da8fb --- /dev/null +++ b/nrf_802154_sl/platform/lp_timer/nrf_802154_lp_timer_zephyr.c @@ -0,0 +1,244 @@ +/* + * Copyright (c) 2021, Nordic Semiconductor ASA + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + */ + +/** + * @file + * This file contains standalone implementation of the nRF 802.15.4 timer abstraction. + * + * This implementation is built on top of the RTC peripheral. + * + */ + +#include "platform/lp_timer/nrf_802154_lp_timer.h" + +#include +#include +#include + +#include "drivers/timer/nrf_rtc_timer.h" + +#include "platform/clock/nrf_802154_clock.h" +#include "nrf_802154_sl_utils.h" + +static volatile bool m_clock_ready; +static bool m_is_running; +static uint32_t m_rtc_channel; +static bool m_in_critical_section; + +void rtc_irq_handler(uint32_t id, uint32_t cc_value, void * user_data) +{ + (void)cc_value; + (void)user_data; + nrf_802154_sl_mcu_critical_state_t state; + + assert(id == m_rtc_channel); + + nrf_802154_sl_mcu_critical_enter(state); + + m_is_running = false; + (void)z_nrf_rtc_timer_compare_int_lock(m_rtc_channel); + + nrf_802154_sl_mcu_critical_exit(state); + + nrf_802154_lp_timer_fired(); +} + +/** + * @brief Start one-shot timer that expires at specified time on desired channel. + * + * Start one-shot timer that will expire @p dt microseconds after @p t0 time on channel @p channel. + * + * @param[in] channel Compare channel on which timer will be started. + * @param[in] t0 Number of microseconds representing timer start time. + * @param[in] dt Time of timer expiration as time elapsed from @p t0 [us]. + */ +static void timer_start_at(uint32_t channel, + uint32_t t0, + uint32_t dt) +{ + uint32_t cc_value = NRF_802154_SL_US_TO_RTC_TICKS(t0 + dt); + nrf_802154_sl_mcu_critical_state_t state; + + z_nrf_rtc_timer_compare_set(m_rtc_channel, cc_value, rtc_irq_handler, NULL); + + nrf_802154_sl_mcu_critical_enter(state); + + m_is_running = true; + z_nrf_rtc_timer_compare_int_unlock(m_rtc_channel, (m_in_critical_section == false)); + + nrf_802154_sl_mcu_critical_exit(state); +} + +void nrf_802154_clock_lfclk_ready(void) +{ + m_clock_ready = true; +} + +void nrf_802154_lp_timer_init(void) +{ + m_in_critical_section = false; + m_is_running = false; + + // Setup low frequency clock. + nrf_802154_clock_lfclk_start(); + + while (!m_clock_ready) + { + // Intentionally empty + } + + int32_t chan = z_nrf_rtc_timer_chan_alloc(); + + if (chan >= 0) + { + m_rtc_channel = (uint32_t)chan; + } + else + { + assert(false); + return; + } + + (void)z_nrf_rtc_timer_compare_int_lock(m_rtc_channel); +} + +void nrf_802154_lp_timer_deinit(void) +{ + (void)z_nrf_rtc_timer_compare_int_lock(m_rtc_channel); + + z_nrf_rtc_timer_chan_free(m_rtc_channel); + + nrf_802154_clock_lfclk_stop(); +} + +void nrf_802154_lp_timer_critical_section_enter(void) +{ + nrf_802154_sl_mcu_critical_state_t state; + + nrf_802154_sl_mcu_critical_enter(state); + + if (!m_in_critical_section) + { + (void)z_nrf_rtc_timer_compare_int_lock(m_rtc_channel); + m_in_critical_section = true; + } + + nrf_802154_sl_mcu_critical_exit(state); +} + +void nrf_802154_lp_timer_critical_section_exit(void) +{ + nrf_802154_sl_mcu_critical_state_t state; + + nrf_802154_sl_mcu_critical_enter(state); + + m_in_critical_section = false; + + z_nrf_rtc_timer_compare_int_unlock(m_rtc_channel, m_is_running); + + nrf_802154_sl_mcu_critical_exit(state); +} + +uint32_t nrf_802154_lp_timer_time_get(void) +{ + // Please note that this function does not handle RTC overflow + return NRF_802154_SL_RTC_TICKS_TO_US(z_nrf_rtc_timer_read()); +} + +uint32_t nrf_802154_lp_timer_granularity_get(void) +{ + return NRF_802154_SL_US_PER_TICK; +} + +void nrf_802154_lp_timer_start(uint32_t t0, uint32_t dt) +{ + timer_start_at(m_rtc_channel, t0, dt); +} + +bool nrf_802154_lp_timer_is_running(void) +{ + return m_is_running; +} + +void nrf_802154_lp_timer_stop(void) +{ + nrf_802154_sl_mcu_critical_state_t state; + + nrf_802154_sl_mcu_critical_enter(state); + + m_is_running = false; + (void)z_nrf_rtc_timer_compare_int_lock(m_rtc_channel); + + nrf_802154_sl_mcu_critical_exit(state); +} + +void nrf_802154_lp_timer_sync_start_now(void) +{ + // Currently not supported + return; +} + +void nrf_802154_lp_timer_sync_start_at(uint32_t t0, uint32_t dt) +{ + (void)t0; + (void)dt; + // Currently not supported + return; +} + +void nrf_802154_lp_timer_sync_stop(void) +{ + // Currently not supported + return; +} + +uint32_t nrf_802154_lp_timer_sync_event_get(void) +{ + // Currently not supported + return 0; +} + +uint32_t nrf_802154_lp_timer_sync_time_get(void) +{ + // Currently not supported + return 0; +} + +#ifndef UNITY_ON_TARGET +__WEAK void nrf_802154_lp_timer_synchronized(void) +{ + // Intentionally empty +} + +#endif diff --git a/src/fal/nrf_802154_fal.c b/src/fal/nrf_802154_fal.c index ab176b1..fb747c6 100644 --- a/src/fal/nrf_802154_fal.c +++ b/src/fal/nrf_802154_fal.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/fal/nrf_802154_fal.h b/src/fal/nrf_802154_fal.h index c5a6f99..441b9e1 100644 --- a/src/fal/nrf_802154_fal.h +++ b/src/fal/nrf_802154_fal.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_ack_data.c b/src/mac_features/ack_generator/nrf_802154_ack_data.c index 50b5d7f..f562624 100644 --- a/src/mac_features/ack_generator/nrf_802154_ack_data.c +++ b/src/mac_features/ack_generator/nrf_802154_ack_data.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_ack_data.h b/src/mac_features/ack_generator/nrf_802154_ack_data.h index 30a95e2..33c233c 100644 --- a/src/mac_features/ack_generator/nrf_802154_ack_data.h +++ b/src/mac_features/ack_generator/nrf_802154_ack_data.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_ack_generator.c b/src/mac_features/ack_generator/nrf_802154_ack_generator.c index 1f2eb3a..8356677 100644 --- a/src/mac_features/ack_generator/nrf_802154_ack_generator.c +++ b/src/mac_features/ack_generator/nrf_802154_ack_generator.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_ack_generator.h b/src/mac_features/ack_generator/nrf_802154_ack_generator.h index de80656..a58f758 100644 --- a/src/mac_features/ack_generator/nrf_802154_ack_generator.h +++ b/src/mac_features/ack_generator/nrf_802154_ack_generator.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.c b/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.c index d289585..e8bb9f7 100644 --- a/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.c +++ b/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.h b/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.h index 994e686..7be6dcb 100644 --- a/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.h +++ b/src/mac_features/ack_generator/nrf_802154_enh_ack_generator.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.c b/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.c index 3c7e9bc..bd5bb33 100644 --- a/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.c +++ b/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.h b/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.h index 3ce8dc2..8131be6 100644 --- a/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.h +++ b/src/mac_features/ack_generator/nrf_802154_imm_ack_generator.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_ack_timeout.c b/src/mac_features/nrf_802154_ack_timeout.c index c388969..b8a94dc 100644 --- a/src/mac_features/nrf_802154_ack_timeout.c +++ b/src/mac_features/nrf_802154_ack_timeout.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_ack_timeout.h b/src/mac_features/nrf_802154_ack_timeout.h index e9fc0b8..8eed04f 100644 --- a/src/mac_features/nrf_802154_ack_timeout.h +++ b/src/mac_features/nrf_802154_ack_timeout.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_ACK_TIMEOUT_H__ diff --git a/src/mac_features/nrf_802154_csma_ca.c b/src/mac_features/nrf_802154_csma_ca.c index 34d2b63..e3a246e 100644 --- a/src/mac_features/nrf_802154_csma_ca.c +++ b/src/mac_features/nrf_802154_csma_ca.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_csma_ca.h b/src/mac_features/nrf_802154_csma_ca.h index 42923ef..5e4ea7e 100644 --- a/src/mac_features/nrf_802154_csma_ca.h +++ b/src/mac_features/nrf_802154_csma_ca.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_CSMA_CA_H__ diff --git a/src/mac_features/nrf_802154_delayed_trx.c b/src/mac_features/nrf_802154_delayed_trx.c index a7ac5b2..eb2daba 100644 --- a/src/mac_features/nrf_802154_delayed_trx.c +++ b/src/mac_features/nrf_802154_delayed_trx.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_delayed_trx.h b/src/mac_features/nrf_802154_delayed_trx.h index dce7e15..4db5fd0 100644 --- a/src/mac_features/nrf_802154_delayed_trx.h +++ b/src/mac_features/nrf_802154_delayed_trx.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_DELAYED_TRX_H__ diff --git a/src/mac_features/nrf_802154_filter.c b/src/mac_features/nrf_802154_filter.c index d0cd7cf..7d8bf8e 100644 --- a/src/mac_features/nrf_802154_filter.c +++ b/src/mac_features/nrf_802154_filter.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_filter.h b/src/mac_features/nrf_802154_filter.h index ff57ed1..3ce03bf 100644 --- a/src/mac_features/nrf_802154_filter.h +++ b/src/mac_features/nrf_802154_filter.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_frame_parser.c b/src/mac_features/nrf_802154_frame_parser.c index 7bb0108..b5a0e0b 100644 --- a/src/mac_features/nrf_802154_frame_parser.c +++ b/src/mac_features/nrf_802154_frame_parser.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_frame_parser.h b/src/mac_features/nrf_802154_frame_parser.h index 649fc35..c16c241 100644 --- a/src/mac_features/nrf_802154_frame_parser.h +++ b/src/mac_features/nrf_802154_frame_parser.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_ifs.c b/src/mac_features/nrf_802154_ifs.c index effd8e6..820113e 100644 --- a/src/mac_features/nrf_802154_ifs.c +++ b/src/mac_features/nrf_802154_ifs.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/mac_features/nrf_802154_ifs.h b/src/mac_features/nrf_802154_ifs.h index 954db2f..7de3cbc 100644 --- a/src/mac_features/nrf_802154_ifs.h +++ b/src/mac_features/nrf_802154_ifs.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_IFS_H diff --git a/src/mac_features/nrf_802154_precise_ack_timeout.c b/src/mac_features/nrf_802154_precise_ack_timeout.c index f3a20f4..da907fa 100644 --- a/src/mac_features/nrf_802154_precise_ack_timeout.c +++ b/src/mac_features/nrf_802154_precise_ack_timeout.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154.c b/src/nrf_802154.c index 4d03c9c..bc2b44b 100644 --- a/src/nrf_802154.c +++ b/src/nrf_802154.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -74,6 +77,7 @@ #include "mac_features/ack_generator/nrf_802154_ack_data.h" #include "nrf_802154_sl_ant_div.h" +#include "nrf_802154_sl_capabilities.h" #define RAW_LENGTH_OFFSET 0 #define RAW_PAYLOAD_OFFSET 1 @@ -837,11 +841,56 @@ void nrf_802154_ifs_min_lifs_period_set(uint16_t period) #endif // NRF_802154_IFS_ENABLED +nrf_802154_capabilities_t nrf_802154_capabilities_get(void) +{ + nrf_802154_capabilities_t caps_drv = 0UL; + nrf_802154_sl_capabilities_t caps_sl = nrf_802154_sl_capabilities_get(); + + /* Capabilities of the Service Layer depend on the version of it linked in, + * hence require run-time probing. */ + caps_drv |= (NRF_802154_SL_CAPABILITY_CSMA & caps_sl) ? + NRF_802154_CAPABILITY_CSMA : 0UL; + caps_drv |= (NRF_802154_SL_CAPABILITY_DELAYED_TX & caps_sl) ? + NRF_802154_CAPABILITY_DELAYED_TX : 0UL; + caps_drv |= (NRF_802154_SL_CAPABILITY_DELAYED_RX & caps_sl) ? + NRF_802154_CAPABILITY_DELAYED_RX : 0UL; + caps_drv |= (NRF_802154_SL_CAPABILITY_ANT_DIVERSITY & caps_sl) ? + NRF_802154_CAPABILITY_ANT_DIVERSITY : 0UL; + caps_drv |= (NRF_802154_SL_CAPABILITY_TIMESTAMP & caps_sl) ? + NRF_802154_CAPABILITY_TIMESTAMP : 0UL; + + /* Some Radio Driver capabilities are configured at compile time. */ + caps_drv |= (NRF_802154_ACK_TIMEOUT_ENABLED ? + NRF_802154_CAPABILITY_ACK_TIMEOUT : 0UL); + + /* Both IFS and ACK Timeout features require timer scheduler, however + * using them both at the same time requires that SL is able to schedule + * several timers simultaneously. + * + * ACK Timeout capability takes precedence over IFS if only one timer + * can be scheduled because there is no known usecase for IFS without ACK Timeout, + * and this configuration would require additional testing. If such usecase emerges, + * this logic should be updated. + */ + if (NRF_802154_SL_CAPABILITY_MULTITIMER & caps_sl) + { + caps_drv |= (NRF_802154_IFS_ENABLED ? + NRF_802154_CAPABILITY_IFS : 0UL); + } + + return caps_drv; +} + uint32_t nrf_802154_time_get(void) { return nrf_802154_timer_sched_time_get(); } +__WEAK void nrf_802154_custom_part_of_radio_init(void) +{ + // Intentionally empty +} + __WEAK void nrf_802154_tx_ack_started(const uint8_t * p_data) { (void)p_data; diff --git a/src/nrf_802154.h b/src/nrf_802154.h index 63c54a1..eb00244 100644 --- a/src/nrf_802154.h +++ b/src/nrf_802154.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -72,6 +75,15 @@ void nrf_802154_init(void); */ void nrf_802154_deinit(void); +/** + * @brief Perform some additional operations during initialization of the RADIO peripheral. + * + * By implementing this function the higher layer can provide some additional operations + * to be performed at the beginning of each new timeslot. These can in particular be + * modifications of RADIO peripheral register values. + */ +extern void nrf_802154_custom_part_of_radio_init(void); + #if !NRF_802154_INTERNAL_RADIO_IRQ_HANDLING /** * @brief Handles the interrupt request from the RADIO peripheral. @@ -1619,6 +1631,19 @@ void nrf_802154_ifs_min_lifs_period_set(uint16_t period); #endif // NRF_802154_IFS_ENABLED +/** + * @} + * @defgroup nrf_802154_capabilities Radio driver run-time capabilities feature. + * @{ + */ + +/** + * @brief Gets nRF 802.15.4 Radio Diver Capabilities. + * + * @return Capabilities of the radio driver. + */ +nrf_802154_capabilities_t nrf_802154_capabilities_get(void); + /** @} */ #ifdef __cplusplus diff --git a/src/nrf_802154_config.h b/src/nrf_802154_config.h index 13e1874..cca9f29 100644 --- a/src/nrf_802154_config.h +++ b/src/nrf_802154_config.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_CONFIG_H__ diff --git a/src/nrf_802154_const.h b/src/nrf_802154_const.h index 96593ce..e0e33d0 100644 --- a/src/nrf_802154_const.h +++ b/src/nrf_802154_const.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_core.c b/src/nrf_802154_core.c index 56ad254..658d4b7 100644 --- a/src/nrf_802154_core.c +++ b/src/nrf_802154_core.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -63,7 +66,7 @@ #include "nrf_802154_utils.h" #include "drivers/nrfx_errors.h" #include "hal/nrf_radio.h" -#include "fem/nrf_fem_protocol_api.h" +#include "mpsl_fem_protocol_api.h" #include "mac_features/nrf_802154_delayed_trx.h" #include "mac_features/nrf_802154_filter.h" #include "mac_features/nrf_802154_frame_parser.h" @@ -2349,7 +2352,7 @@ void nrf_802154_core_deinit(void) nrf_802154_trx_disable(); } - nrf_802154_fal_cleanup(); + mpsl_fem_cleanup(); nrf_802154_irq_disable(RADIO_IRQn); nrf_802154_irq_clear_pending(RADIO_IRQn); diff --git a/src/nrf_802154_core.h b/src/nrf_802154_core.h index 59dbe9c..9f430a6 100644 --- a/src/nrf_802154_core.h +++ b/src/nrf_802154_core.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_core_hooks.c b/src/nrf_802154_core_hooks.c index e5d3ba4..02ca8c8 100644 --- a/src/nrf_802154_core_hooks.c +++ b/src/nrf_802154_core_hooks.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_core_hooks.h b/src/nrf_802154_core_hooks.h index 283d20c..2662c6c 100644 --- a/src/nrf_802154_core_hooks.h +++ b/src/nrf_802154_core_hooks.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_CORE_HOOKS_H__ diff --git a/src/nrf_802154_critical_section.c b/src/nrf_802154_critical_section.c index 584a428..d2dab86 100644 --- a/src/nrf_802154_critical_section.c +++ b/src/nrf_802154_critical_section.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_critical_section.h b/src/nrf_802154_critical_section.h index 607fe8f..d410914 100644 --- a/src/nrf_802154_critical_section.h +++ b/src/nrf_802154_critical_section.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_CRITICAL_SECTION_H__ diff --git a/src/nrf_802154_debug.c b/src/nrf_802154_debug.c index 7d5c09c..c816a85 100644 --- a/src/nrf_802154_debug.c +++ b/src/nrf_802154_debug.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_debug.h b/src/nrf_802154_debug.h index 534abc0..1aa6e12 100644 --- a/src/nrf_802154_debug.h +++ b/src/nrf_802154_debug.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_debug_assert.c b/src/nrf_802154_debug_assert.c index 2abbb48..750721a 100644 --- a/src/nrf_802154_debug_assert.c +++ b/src/nrf_802154_debug_assert.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_debug_core.h b/src/nrf_802154_debug_core.h index dfc4cb4..8e2cde7 100644 --- a/src/nrf_802154_debug_core.h +++ b/src/nrf_802154_debug_core.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_debug_gpio.c b/src/nrf_802154_debug_gpio.c index fbc4e4c..1b3afd4 100644 --- a/src/nrf_802154_debug_gpio.c +++ b/src/nrf_802154_debug_gpio.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_debug_log.h b/src/nrf_802154_debug_log.h index a816a7a..48e0130 100644 --- a/src/nrf_802154_debug_log.h +++ b/src/nrf_802154_debug_log.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_DEBUG_LOG_H_ diff --git a/src/nrf_802154_debug_log_codes.h b/src/nrf_802154_debug_log_codes.h index 918a612..b41ef7b 100644 --- a/src/nrf_802154_debug_log_codes.h +++ b/src/nrf_802154_debug_log_codes.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_DEBUG_LOG_CODES_H_ diff --git a/src/nrf_802154_notification.h b/src/nrf_802154_notification.h index c2ef740..36c57f5 100644 --- a/src/nrf_802154_notification.h +++ b/src/nrf_802154_notification.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_NOTIFICATION_H__ diff --git a/src/nrf_802154_notification_direct.c b/src/nrf_802154_notification_direct.c index 4fe6c77..20c7074 100644 --- a/src/nrf_802154_notification_direct.c +++ b/src/nrf_802154_notification_direct.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_notification_swi.c b/src/nrf_802154_notification_swi.c index 5af5de8..a66bea0 100644 --- a/src/nrf_802154_notification_swi.c +++ b/src/nrf_802154_notification_swi.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_nrfx_addons.h b/src/nrf_802154_nrfx_addons.h index e7abcf6..50a50e3 100644 --- a/src/nrf_802154_nrfx_addons.h +++ b/src/nrf_802154_nrfx_addons.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #include "nrf.h" diff --git a/src/nrf_802154_peripherals.h b/src/nrf_802154_peripherals.h index 3bd01e6..e956335 100644 --- a/src/nrf_802154_peripherals.h +++ b/src/nrf_802154_peripherals.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_peripherals_alloc.c b/src/nrf_802154_peripherals_alloc.c new file mode 100644 index 0000000..ebf6985 --- /dev/null +++ b/src/nrf_802154_peripherals_alloc.c @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/** + * @file + * This file supplies bitmasks specifying which of the peripherals are used + * by the 802.15.4 driver. + * + * Bitmasks currently provided applies to: + * - PPI or DPPI channels (g_nrf_802154_used_nrf_ppi_channels) + * - PPI or DPPI channel groups (g_nrf_802154_used_nrf_ppi_groups) + */ + +#include "nrf_802154_peripherals.h" + +#include + +#if NRF_802154_VERIFY_PERIPHS_ALLOC_AGAINST_MPSL +/* Obtaining the MPSL_RESERVED_.. macros */ +#include "mpsl.h" +#endif + +#if defined(NRF52_SERIES) +#define NRF_802154_PPI_CH_USED_MSK NRF_802154_PPI_CHANNELS_USED_MASK +#define NRF_802154_PPI_GR_USED_MSK NRF_802154_PPI_GROUPS_USED_MASK +#elif defined(NRF53_SERIES) +#define NRF_802154_PPI_CH_USED_MSK NRF_802154_DPPI_CHANNELS_USED_MASK +#define NRF_802154_PPI_GR_USED_MSK NRF_802154_DPPI_GROUPS_USED_MASK +#else +#error Unsupported chip family +#endif + +const uint32_t g_nrf_802154_used_nrf_ppi_channels = NRF_802154_PPI_CH_USED_MSK; +const uint32_t g_nrf_802154_used_nrf_ppi_groups = NRF_802154_PPI_GR_USED_MSK; + +#if NRF_802154_VERIFY_PERIPHS_ALLOC_AGAINST_MPSL + +#if ((NRF_802154_PPI_CH_USED_MSK & MPSL_RESERVED_PPI_CHANNELS) != 0UL) +#error PPI channels for 802.15.4 driver overlap with MPSL channels +#endif + +#if ((NRF_802154_PPI_GR_USED_MSK & MPSL_RESERVED_PPI_GROUPS) != 0UL) +#error PPI groups for 802.15.4 driver overlap with MPSL groups +#endif + +#endif // NRF_802154_VERIFY_PERIPHS_ALLOC_AGAINST_MPSL diff --git a/src/nrf_802154_peripherals_nrf52.h b/src/nrf_802154_peripherals_nrf52.h index 3202140..95583e4 100644 --- a/src/nrf_802154_peripherals_nrf52.h +++ b/src/nrf_802154_peripherals_nrf52.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -355,7 +358,6 @@ extern "C" { (1 << NRF_802154_PPI_RADIO_CRCOK_TO_PPI_GRP_DISABLE) | \ NRF_802154_DISABLE_BCC_MATCHING_PPI_CHANNELS_USED_MASK | \ NRF_802154_TIMESTAMP_PPI_CHANNELS_USED_MASK | \ - NRF_802154_FEM_PPI_CHANNELS_USED_MASK | \ NRF_802154_DEBUG_PPI_CHANNELS_USED_MASK) #endif // NRF_802154_PPI_CHANNELS_USED_MASK diff --git a/src/nrf_802154_peripherals_nrf53.h b/src/nrf_802154_peripherals_nrf53.h index 3314b54..77a7c0a 100644 --- a/src/nrf_802154_peripherals_nrf53.h +++ b/src/nrf_802154_peripherals_nrf53.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -158,6 +161,28 @@ extern "C" { #define NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC 8U #endif +/** + * @def NRF_802154_DPPI_CHANNELS_USED_MASK + * + * Bit mask of DPPI channels used by the 802.15.4 driver. + */ +#ifndef NRF_802154_DPPI_CHANNELS_USED_MASK +#define NRF_802154_DPPI_CHANNELS_USED_MASK ( \ + (1UL << NRF_802154_DPPI_RADIO_DISABLED_TO_EGU) | \ + (1UL << NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP) | \ + (1UL << NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN) | \ + (1UL << NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC)) +#endif // NRF_802154_DPPI_CHANNELS_USED_MASK + +/** + * @def NRF_802154_DPPI_GROUPS_USED_MASK + * + * Bit mask of DPPI groups identifiers used by the 802.15.4 driver. + */ +#ifndef NRF_802154_DPPI_GROUPS_USED_MASK +#define NRF_802154_DPPI_GROUPS_USED_MASK 0UL +#endif // NRF_802154_DPPI_GROUPS_USED_MASK + #ifdef __cplusplus } #endif diff --git a/src/nrf_802154_pib.c b/src/nrf_802154_pib.c index da24de8..f8d063d 100644 --- a/src/nrf_802154_pib.c +++ b/src/nrf_802154_pib.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_pib.h b/src/nrf_802154_pib.h index 0e93462..cfedb07 100644 --- a/src/nrf_802154_pib.h +++ b/src/nrf_802154_pib.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_priority_drop_swi.c b/src/nrf_802154_priority_drop_swi.c index cda0935..4ae5080 100644 --- a/src/nrf_802154_priority_drop_swi.c +++ b/src/nrf_802154_priority_drop_swi.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_procedures_duration.h b/src/nrf_802154_procedures_duration.h index 7a782a3..148a585 100644 --- a/src/nrf_802154_procedures_duration.h +++ b/src/nrf_802154_procedures_duration.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_queue.c b/src/nrf_802154_queue.c index 521758e..08bab7d 100644 --- a/src/nrf_802154_queue.c +++ b/src/nrf_802154_queue.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_queue.h b/src/nrf_802154_queue.h index 89e273d..dfca721 100644 --- a/src/nrf_802154_queue.h +++ b/src/nrf_802154_queue.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_request.h b/src/nrf_802154_request.h index 70ea1b7..78c6999 100644 --- a/src/nrf_802154_request.h +++ b/src/nrf_802154_request.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_REQUEST_H__ diff --git a/src/nrf_802154_request_direct.c b/src/nrf_802154_request_direct.c index 5e4305a..a07906d 100644 --- a/src/nrf_802154_request_direct.c +++ b/src/nrf_802154_request_direct.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_request_swi.c b/src/nrf_802154_request_swi.c index 3c44f56..8820cbc 100644 --- a/src/nrf_802154_request_swi.c +++ b/src/nrf_802154_request_swi.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_rssi.c b/src/nrf_802154_rssi.c index 48a7c5b..2359c8d 100644 --- a/src/nrf_802154_rssi.c +++ b/src/nrf_802154_rssi.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** @@ -34,13 +37,20 @@ * This file implements RSSI calculations for 802.15.4 driver. * */ +#include "nrf_802154_rssi.h" +#include "nrf.h" #include #include "platform/temperature/nrf_802154_temperature.h" -int8_t nrf_802154_rssi_sample_temp_corr_value_get(void) +#if defined(NRF52_SERIES) + +/* Implementation based on Errata 153 for nRF52 family. */ +int8_t nrf_802154_rssi_sample_temp_corr_value_get(uint8_t rssi_sample) { + (void)rssi_sample; + int8_t temp = nrf_802154_temperature_get(); int8_t result; @@ -76,22 +86,81 @@ int8_t nrf_802154_rssi_sample_temp_corr_value_get(void) return result; } +#elif defined(NRF5340_XXAA) + +/** Macro for calculating x raised to the power of 2. */ +#define POW_2(x) ((x) * (x)) +/** Macro for calculating x raised to the power of 3. */ +#define POW_3(x) ((x) * POW_2(x)) + +/** + * @brief Polynomial coefficients of the correction equation. + * + * Coefficients were calculated as round(x * RSSI_COEFF_BASE) based on Errata 87. + */ +#define RSSI_COEFF_A0 30198989L /* Initial value: 7.2 */ +#define RSSI_COEFF_A1 6543114L /* Initial value: 1.56 */ +#define RSSI_COEFF_A2 41524L /* Initial value: 9.9e-3 */ +#define RSSI_COEFF_A3 205L /* Initial value: 4.9e-5 */ +#define RSSI_COEFF_TEMP 209715L /* Initial value: 0.05 */ +/** @brief Value used to increase precision of calculations. */ +#define RSSI_COEFF_BASE (1UL << 22U) + +/** + * @brief Normalizes intermediate RSSI value by dividing and rounding. + * + * @param[in] rssi_value Intermediate RSSI value to be normalized. + * + * @returns normalized rssi_value. + */ +static int8_t normalize_rssi(int32_t rssi_value) +{ + uint32_t abs_rssi_value; + + abs_rssi_value = (rssi_value < 0) ? (-rssi_value) : rssi_value; + abs_rssi_value = (abs_rssi_value + (RSSI_COEFF_BASE / 2)) / RSSI_COEFF_BASE; + + return (rssi_value < 0) ? (-(int8_t)abs_rssi_value) : ((int8_t)abs_rssi_value); +} + +/* Implementation based on Errata 87 for nRF53 family. */ +int8_t nrf_802154_rssi_sample_temp_corr_value_get(uint8_t rssi_sample) +{ + int32_t temp; + int32_t rssi_sample_i32; + int8_t compensated_rssi; + + temp = (int32_t)nrf_802154_temperature_get(); + rssi_sample_i32 = (int32_t)rssi_sample; + + compensated_rssi = normalize_rssi((RSSI_COEFF_A1 * rssi_sample_i32) + + (RSSI_COEFF_A3 * POW_3(rssi_sample_i32)) + - (RSSI_COEFF_A2 * POW_2(rssi_sample_i32)) + - (RSSI_COEFF_TEMP * temp) - RSSI_COEFF_A0); + + return compensated_rssi - (int8_t)rssi_sample; +} + +#else +#error Unsupported chip family +#endif + uint8_t nrf_802154_rssi_sample_corrected_get(uint8_t rssi_sample) { - return rssi_sample + nrf_802154_rssi_sample_temp_corr_value_get(); + return rssi_sample + nrf_802154_rssi_sample_temp_corr_value_get(rssi_sample); } uint8_t nrf_802154_rssi_lqi_corrected_get(uint8_t lqi) { - return lqi - nrf_802154_rssi_sample_temp_corr_value_get(); + return lqi - nrf_802154_rssi_sample_temp_corr_value_get(lqi); } uint8_t nrf_802154_rssi_ed_corrected_get(uint8_t ed) { - return ed - nrf_802154_rssi_sample_temp_corr_value_get(); + return ed - nrf_802154_rssi_sample_temp_corr_value_get(ed); } uint8_t nrf_802154_rssi_cca_ed_threshold_corrected_get(uint8_t cca_ed) { - return cca_ed - nrf_802154_rssi_sample_temp_corr_value_get(); + return cca_ed - nrf_802154_rssi_sample_temp_corr_value_get(cca_ed); } diff --git a/src/nrf_802154_rssi.h b/src/nrf_802154_rssi.h index 8e4be4c..ecd1ef1 100644 --- a/src/nrf_802154_rssi.h +++ b/src/nrf_802154_rssi.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_RSSI_H__ @@ -46,16 +49,18 @@ * * The correction value is based on the last temperature value reported by the platform. * - * @returns RSSISAMPLE temperature correction value (Errata 153). + * @param[in] rssi_sample Value read from the RSSISAMPLE register. + * + * @returns RSSISAMPLE temperature correction value. */ -int8_t nrf_802154_rssi_sample_temp_corr_value_get(void); +int8_t nrf_802154_rssi_sample_temp_corr_value_get(uint8_t rssi_sample); /** * @brief Adjusts the given RSSISAMPLE value by a temperature correction factor. * * @param[in] rssi_sample Value read from the RSSISAMPLE register. * - * @returns RSSISAMPLE corrected by a temperature factor (Errata 153). + * @returns RSSISAMPLE corrected by a temperature factor. */ uint8_t nrf_802154_rssi_sample_corrected_get(uint8_t rssi_sample); @@ -64,7 +69,7 @@ uint8_t nrf_802154_rssi_sample_corrected_get(uint8_t rssi_sample); * * @param[in] lqi Value read from the LQI byte. * - * @returns LQI byte value corrected by a temperature factor (Errata 153). + * @returns LQI byte value corrected by a temperature factor. */ uint8_t nrf_802154_rssi_lqi_corrected_get(uint8_t lqi); @@ -73,7 +78,7 @@ uint8_t nrf_802154_rssi_lqi_corrected_get(uint8_t lqi); * * @param[in] ed Value read from the EDSAMPLE register. * - * @returns EDSAMPLE value corrected by a temperature factor (Errata 153). + * @returns EDSAMPLE value corrected by a temperature factor. */ uint8_t nrf_802154_rssi_ed_corrected_get(uint8_t ed); @@ -82,7 +87,7 @@ uint8_t nrf_802154_rssi_ed_corrected_get(uint8_t ed); * * @param[in] cca_ed Value representing the CCA ED threshold to be corrected. * - * @returns CCA ED threshold value corrected by a temperature factor (Errata 153). + * @returns CCA ED threshold value corrected by a temperature factor. */ uint8_t nrf_802154_rssi_cca_ed_threshold_corrected_get(uint8_t cca_ed); diff --git a/src/nrf_802154_rx_buffer.c b/src/nrf_802154_rx_buffer.c index 4ed20f4..aff995f 100644 --- a/src/nrf_802154_rx_buffer.c +++ b/src/nrf_802154_rx_buffer.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_rx_buffer.h b/src/nrf_802154_rx_buffer.h index 05e37b8..046c53b 100644 --- a/src/nrf_802154_rx_buffer.h +++ b/src/nrf_802154_rx_buffer.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_stats.c b/src/nrf_802154_stats.c index 6dd160d..3b7e444 100644 --- a/src/nrf_802154_stats.c +++ b/src/nrf_802154_stats.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #include diff --git a/src/nrf_802154_stats.h b/src/nrf_802154_stats.h index 685e820..2a12a05 100644 --- a/src/nrf_802154_stats.h +++ b/src/nrf_802154_stats.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_STATS_H_ diff --git a/src/nrf_802154_swi.c b/src/nrf_802154_swi.c index 7b90e0d..972a903 100644 --- a/src/nrf_802154_swi.c +++ b/src/nrf_802154_swi.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_swi.h b/src/nrf_802154_swi.h index e338b55..1546096 100644 --- a/src/nrf_802154_swi.h +++ b/src/nrf_802154_swi.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_SWI_H__ diff --git a/src/nrf_802154_trx.c b/src/nrf_802154_trx.c index d5d13ec..3599470 100644 --- a/src/nrf_802154_trx.c +++ b/src/nrf_802154_trx.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #define NRF_802154_MODULE_ID NRF_802154_DRV_MODULE_ID_TRX @@ -53,7 +56,7 @@ #include "nrf_802154_procedures_duration.h" #include "nrf_802154_critical_section.h" -#include "fem/nrf_fem_protocol_api.h" +#include "mpsl_fem_protocol_api.h" #include "platform/irq/nrf_802154_irq.h" #include "nrf_802154_sl_ant_div.h" @@ -67,6 +70,7 @@ defined(NRF52820_XXAA) || \ defined(NRF52811_XXAA) #define PPI_CCAIDLE_FEM NRF_802154_PPI_RADIO_CCAIDLE_TO_FEM_GPIOTE ///< PPI that connects RADIO CCAIDLE event with GPIOTE tasks used by FEM +#define PPI_CHGRP_ABORT NRF_802154_PPI_ABORT_GROUP ///< PPI group used to disable PPIs when async event aborting radio operation is propagated through the system #define RADIO_BASE NRF_RADIO_BASE #elif defined(NRF5340_XXAA) #define PPI_CCAIDLE_FEM 0 @@ -125,10 +129,10 @@ void nrf_802154_radio_irq_handler(void); ///< Prototype required by internal RADIO IRQ handler #endif // NRF_802154_INTERNAL_RADIO_IRQ_HANDLING -/// Common parameters for the FAL handling. -static const nrf_802154_fal_event_t m_activate_rx_cc0 = +/// Common parameters for the FEM handling. +static const mpsl_fem_event_t m_activate_rx_cc0 = { - .type = NRF_802154_FAL_EVENT_TYPE_TIMER, + .type = MPSL_FEM_EVENT_TYPE_TIMER, .override_ppi = false, .event.timer = { @@ -140,9 +144,9 @@ static const nrf_802154_fal_event_t m_activate_rx_cc0 = }, }; -static const nrf_802154_fal_event_t m_activate_tx_cc0 = +static const mpsl_fem_event_t m_activate_tx_cc0 = { - .type = NRF_802154_FAL_EVENT_TYPE_TIMER, + .type = MPSL_FEM_EVENT_TYPE_TIMER, .override_ppi = false, .event.timer = { @@ -154,16 +158,16 @@ static const nrf_802154_fal_event_t m_activate_tx_cc0 = }, }; -static const nrf_802154_fal_event_t m_ccaidle = +static const mpsl_fem_event_t m_ccaidle = { - .type = NRF_802154_FAL_EVENT_TYPE_GENERIC, + .type = MPSL_FEM_EVENT_TYPE_GENERIC, .override_ppi = true, .ppi_ch_id = PPI_CCAIDLE_FEM, .event.generic.register_address = ((uint32_t)RADIO_BASE + (uint32_t)NRF_RADIO_EVENT_CCAIDLE) }; /**@brief Fal event used by @ref nrf_802154_trx_transmit_ack and @ref txack_finish */ -static nrf_802154_fal_event_t m_activate_tx_cc0_timeshifted; +static mpsl_fem_event_t m_activate_tx_cc0_timeshifted; static volatile trx_state_t m_trx_state; @@ -273,8 +277,8 @@ static void irq_init(void) #if NRF_802154_INTERNAL_RADIO_IRQ_HANDLING nrf_802154_irq_init(RADIO_IRQn, NRF_802154_IRQ_PRIORITY, nrf_802154_radio_irq_handler); - nrf_802154_irq_enable(RADIO_IRQn); #endif + nrf_802154_irq_enable(RADIO_IRQn); } static void trigger_disable_to_start_rampup(void) @@ -288,7 +292,7 @@ static void trigger_disable_to_start_rampup(void) /** Configure FEM to set LNA at appropriate time. */ static void fem_for_lna_set(void) { - if (nrf_802154_fal_lna_configuration_set(&m_activate_rx_cc0, NULL) == NRFX_SUCCESS) + if (mpsl_fem_lna_configuration_set(&m_activate_rx_cc0, NULL) == 0) { nrf_timer_shorts_enable(m_activate_rx_cc0.event.timer.p_timer_instance, NRF_TIMER_SHORT_COMPARE0_STOP_MASK); @@ -300,7 +304,7 @@ static void fem_for_lna_set(void) /** Reset FEM configuration for LNA. */ static void fem_for_lna_reset(void) { - nrf_802154_fal_lna_configuration_clear(); + mpsl_fem_lna_configuration_clear(); nrf_timer_task_trigger(NRF_802154_TIMER_INSTANCE, NRF_TIMER_TASK_SHUTDOWN); nrf_timer_shorts_disable(NRF_802154_TIMER_INSTANCE, NRF_TIMER_SHORT_COMPARE0_STOP_MASK); nrf_802154_trx_ppi_for_fem_clear(); @@ -312,7 +316,7 @@ static void fem_for_lna_reset(void) */ static void fem_for_pa_set(void) { - if (nrf_802154_fal_pa_configuration_set(&m_activate_tx_cc0, NULL) == NRFX_SUCCESS) + if (mpsl_fem_pa_configuration_set(&m_activate_tx_cc0, NULL) == 0) { nrf_timer_shorts_enable(m_activate_tx_cc0.event.timer.p_timer_instance, NRF_TIMER_SHORT_COMPARE0_STOP_MASK); @@ -326,10 +330,10 @@ static void fem_for_pa_set(void) */ static void fem_for_pa_reset(void) { - nrf_802154_fal_pa_configuration_clear(); + mpsl_fem_pa_configuration_clear(); nrf_timer_task_trigger(NRF_802154_TIMER_INSTANCE, NRF_TIMER_TASK_SHUTDOWN); nrf_802154_trx_ppi_for_fem_clear(); - nrf_802154_fal_deactivate_now(NRF_802154_FAL_PA); + mpsl_fem_deactivate_now(MPSL_FEM_PA); } /** Configure FEM for TX procedure. @@ -345,12 +349,12 @@ static void fem_for_tx_set(bool cca) bool pa_set = false; bool lna_set = false; - if (nrf_802154_fal_lna_configuration_set(&m_activate_rx_cc0, &m_ccaidle) == NRFX_SUCCESS) + if (mpsl_fem_lna_configuration_set(&m_activate_rx_cc0, &m_ccaidle) == 0) { lna_set = true; } - if (nrf_802154_fal_pa_configuration_set(&m_ccaidle, NULL) == NRFX_SUCCESS) + if (mpsl_fem_pa_configuration_set(&m_ccaidle, NULL) == 0) { pa_set = true; } @@ -360,7 +364,7 @@ static void fem_for_tx_set(bool cca) } else { - success = (nrf_802154_fal_pa_configuration_set(&m_activate_tx_cc0, NULL) == NRFX_SUCCESS); + success = (mpsl_fem_pa_configuration_set(&m_activate_tx_cc0, NULL) == 0); } if (success) @@ -376,12 +380,12 @@ static void fem_for_tx_reset(bool cca) if (cca) { - nrf_802154_fal_lna_configuration_clear(); - nrf_802154_fal_pa_configuration_clear(); + mpsl_fem_lna_configuration_clear(); + mpsl_fem_pa_configuration_clear(); } else { - nrf_802154_fal_pa_configuration_clear(); + mpsl_fem_pa_configuration_clear(); } nrf_802154_trx_ppi_for_fem_clear(); @@ -443,6 +447,9 @@ void nrf_802154_trx_enable(void) // Set channel channel_set(nrf_802154_pib_channel_get()); + // Custom initialization operations + nrf_802154_custom_part_of_radio_init(); + irq_init(); assert(nrf_radio_shorts_get(NRF_RADIO) == SHORTS_IDLE); @@ -451,12 +458,11 @@ void nrf_802154_trx_enable(void) defined(NRF52833_XXAA) || \ defined(NRF52820_XXAA) || \ defined(NRF52811_XXAA) - // TODO: Uncomment it when FEM API is cross-family - nrf_802154_fal_abort_set(nrf_radio_event_address_get(NRF_RADIO, NRF_RADIO_EVENT_DISABLED), - nrf_802154_trx_ppi_group_for_abort_get()); + mpsl_fem_abort_set(nrf_radio_event_address_get(NRF_RADIO, NRF_RADIO_EVENT_DISABLED), + PPI_CHGRP_ABORT); #endif - nrf_802154_fal_deactivate_now(NRF_802154_FAL_ALL); + mpsl_fem_deactivate_now(MPSL_FEM_ALL); m_trx_state = TRX_STATE_IDLE; @@ -521,7 +527,7 @@ static void ppi_all_clear(void) static void fem_power_down_now(void) { - nrf_802154_fal_deactivate_now(NRF_802154_FAL_ALL); + mpsl_fem_deactivate_now(MPSL_FEM_ALL); if (nrf_802154_trx_ppi_for_fem_powerdown_set(NRF_802154_TIMER_INSTANCE, NRF_TIMER_CC_CHANNEL0)) { @@ -571,12 +577,11 @@ void nrf_802154_trx_disable(void) defined(NRF52833_XXAA) || \ defined(NRF52820_XXAA) || \ defined(NRF52811_XXAA) - // TODO: Uncomment this code when FEM API supports nRF53 - nrf_802154_fal_abort_clear(); + mpsl_fem_abort_clear(); #endif // TODO: Deconfigure FAL PA and LNA here? - nrf_802154_fal_deactivate_now(NRF_802154_FAL_ALL); + mpsl_fem_deactivate_now(MPSL_FEM_ALL); if (m_trx_state != TRX_STATE_IDLE) { @@ -929,7 +934,7 @@ void nrf_802154_trx_receive_frame(uint8_t bcc, // Set FEM uint32_t delta_time; - if (nrf_802154_fal_lna_configuration_set(&m_activate_rx_cc0, NULL) == NRFX_SUCCESS) + if (mpsl_fem_lna_configuration_set(&m_activate_rx_cc0, NULL) == 0) { delta_time = nrf_timer_cc_get(NRF_802154_TIMER_INSTANCE, NRF_TIMER_CC_CHANNEL0); @@ -1181,7 +1186,7 @@ bool nrf_802154_trx_transmit_ack(const void * p_transmit_buffer, uint32_t delay_ m_activate_tx_cc0_timeshifted.event.timer.counter_period.end = timer_cc_ramp_up_start + TXRU_TIME; - if (nrf_802154_fal_pa_configuration_set(&m_activate_tx_cc0_timeshifted, NULL) == NRFX_SUCCESS) + if (mpsl_fem_pa_configuration_set(&m_activate_tx_cc0_timeshifted, NULL) == 0) { // FEM scheduled its operations on timer, so the timer must be running until last // operation scheduled by the FEM (TIMER's CC0), which is later than radio ramp up @@ -1262,8 +1267,8 @@ bool nrf_802154_trx_transmit_ack(const void * p_transmit_buffer, uint32_t delay_ /* As the timer was running during operation, it is possible we were able to configure * FEM thus it may trigger in future or may started PA activation. */ - nrf_802154_fal_pa_configuration_clear(); - nrf_802154_fal_deactivate_now(NRF_802154_FAL_PA); + mpsl_fem_pa_configuration_clear(); + mpsl_fem_deactivate_now(MPSL_FEM_PA); nrf_timer_task_trigger(NRF_802154_TIMER_INSTANCE, NRF_TIMER_TASK_SHUTDOWN); @@ -1318,7 +1323,7 @@ static void rxframe_finish_disable_fem_activation(void) nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_HIGH); // Disable LNA activation - nrf_802154_fal_lna_configuration_clear(); + mpsl_fem_lna_configuration_clear(); // Disable short used by LNA activation nrf_timer_shorts_disable(NRF_802154_TIMER_INSTANCE, NRF_TIMER_SHORT_COMPARE0_STOP_MASK); @@ -1372,7 +1377,7 @@ static void rxframe_finish(void) * * FEM's LNA mode is disabled by path: * RADIO.SHORT_END_DISABLE -> RADIO.TASKS_DISABLE -> RADIO.EVENTS_DISABLED -> (FEM's PPI triggering disable LNA operation, - * see nrf_802154_fal_abort_set() ) + * see mpsl_fem_abort_set() ) * * RADIO will not ramp up, as PPI_EGU_RAMP_UP channel is self-disabling, and * it was disabled when receive ramp-up was started. @@ -1578,7 +1583,7 @@ static void rxack_finish_disable_fem_activation(void) nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_HIGH); // Disable LNA activation - nrf_802154_fal_lna_configuration_clear(); + mpsl_fem_lna_configuration_clear(); // Clear LNA PPIs nrf_802154_trx_ppi_for_fem_clear(); @@ -2128,7 +2133,7 @@ static void txack_finish(void) nrf_radio_shorts_set(NRF_RADIO, SHORTS_IDLE); - nrf_802154_fal_pa_configuration_clear(); + mpsl_fem_pa_configuration_clear(); nrf_timer_shorts_disable(NRF_802154_TIMER_INSTANCE, NRF_TIMER_SHORT_COMPARE0_STOP_MASK | @@ -2158,7 +2163,7 @@ static void transmit_ack_abort(void) nrf_radio_shorts_set(NRF_RADIO, SHORTS_IDLE); - nrf_802154_fal_pa_configuration_clear(); + mpsl_fem_pa_configuration_clear(); nrf_timer_shorts_disable(NRF_802154_TIMER_INSTANCE, NRF_TIMER_SHORT_COMPARE0_STOP_MASK | diff --git a/src/nrf_802154_trx.h b/src/nrf_802154_trx.h index afac842..647e2ed 100644 --- a/src/nrf_802154_trx.h +++ b/src/nrf_802154_trx.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_trx_dppi.c b/src/nrf_802154_trx_dppi.c index 6f7d7ba..ed1ef73 100644 --- a/src/nrf_802154_trx_dppi.c +++ b/src/nrf_802154_trx_dppi.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #define NRF_802154_MODULE_ID NRF_802154_DRV_MODULE_ID_TRX_PPI diff --git a/src/nrf_802154_trx_ppi.c b/src/nrf_802154_trx_ppi.c index 3828233..d066506 100644 --- a/src/nrf_802154_trx_ppi.c +++ b/src/nrf_802154_trx_ppi.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #define NRF_802154_MODULE_ID NRF_802154_DRV_MODULE_ID_TRX_PPI @@ -38,6 +41,8 @@ #include "nrf_802154_debug_log.h" #include "nrf_802154_peripherals.h" +#include "mpsl_fem_protocol_api.h" + #include "hal/nrf_egu.h" #include "hal/nrf_ppi.h" #include "hal/nrf_radio.h" @@ -222,7 +227,11 @@ bool nrf_802154_trx_ppi_for_fem_powerdown_set(NRF_TIMER_Type * p_instance, // PPI_EGU_TIMER_START is reused here on purpose, to save resources, // as fem powerdown cannot be scheduled simultaneously with fem ramp-up. - bool result = nrf_fem_prepare_powerdown(p_instance, compare_channel, PPI_EGU_TIMER_START); + bool result = mpsl_fem_prepare_powerdown(p_instance, + compare_channel, + PPI_EGU_TIMER_START, + nrf_radio_event_address_get(NRF_RADIO, + NRF_RADIO_EVENT_DISABLED)); nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_HIGH); diff --git a/src/nrf_802154_trx_ppi_api.h b/src/nrf_802154_trx_ppi_api.h index c7ea559..e978911 100644 --- a/src/nrf_802154_trx_ppi_api.h +++ b/src/nrf_802154_trx_ppi_api.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2020, Nordic Semiconductor ASA + * Copyright (c) 2020 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/nrf_802154_types.h b/src/nrf_802154_types.h index aca99db..3098d2c 100644 --- a/src/nrf_802154_types.h +++ b/src/nrf_802154_types.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_TYPES_H__ @@ -213,6 +216,29 @@ typedef uint8_t nrf_802154_ifs_mode_t; #define NRF_802154_IFS_MODE_MATCHING_ADDRESSES 0x01 // !< Interframe spacing is inserted only on matching addresses. #define NRF_802154_IFS_MODE_ALWAYS 0x02 // !< Interframe spacing is always inserted. +/** + * @brief Capabilities of nrf 802.15.4 radio driver + * + * Possible values: + * - @ref NRF_802154_CAPABILITY_CSMA, + * - @ref NRF_802154_CAPABILITY_DELAYED_TX, + * - @ref NRF_802154_CAPABILITY_DELAYED_RX, + * - @ref NRF_802154_CAPABILITY_ACK_TIMEOUT, + * - @ref NRF_802154_CAPABILITY_ANT_DIVERSITY, + * - @ref NRF_802154_CAPABILITY_IFS, + * - @ref NRF_802154_CAPABILITY_TIMESTAMP + * + */ +typedef uint32_t nrf_802154_capabilities_t; + +#define NRF_802154_CAPABILITY_CSMA (1UL << 0UL) // !< CSMA-CA supported +#define NRF_802154_CAPABILITY_DELAYED_TX (1UL << 1UL) // !< TX at specified time supported +#define NRF_802154_CAPABILITY_DELAYED_RX (1UL << 2UL) // !< RX at specified time supported +#define NRF_802154_CAPABILITY_ACK_TIMEOUT (1UL << 3UL) // !< ACK timeout supported +#define NRF_802154_CAPABILITY_ANT_DIVERSITY (1UL << 4UL) // !< Antenna diversity supported +#define NRF_802154_CAPABILITY_IFS (1UL << 5UL) // !< Inter-frame spacing supported +#define NRF_802154_CAPABILITY_TIMESTAMP (1UL << 6UL) // !< Frame timestamping supported + /** * @brief Type of structure holding statistic counters. * diff --git a/src/nrf_802154_utils.h b/src/nrf_802154_utils.h index 12ae0d6..1b46306 100644 --- a/src/nrf_802154_utils.h +++ b/src/nrf_802154_utils.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ #ifndef NRF_802154_UTILS_H__ diff --git a/src/platform/random/nrf_802154_random.h b/src/platform/random/nrf_802154_random.h index 18e800e..39d5fd7 100644 --- a/src/platform/random/nrf_802154_random.h +++ b/src/platform/random/nrf_802154_random.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/platform/random/nrf_802154_random_newlib.c b/src/platform/random/nrf_802154_random_newlib.c index 3a0004c..7dc164c 100644 --- a/src/platform/random/nrf_802154_random_newlib.c +++ b/src/platform/random/nrf_802154_random_newlib.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/platform/random/nrf_802154_random_stdlib.c b/src/platform/random/nrf_802154_random_stdlib.c index 4fcc540..ba19b77 100644 --- a/src/platform/random/nrf_802154_random_stdlib.c +++ b/src/platform/random/nrf_802154_random_stdlib.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/platform/random/nrf_802154_random_zephyr.c b/src/platform/random/nrf_802154_random_zephyr.c index 1471332..38a9737 100644 --- a/src/platform/random/nrf_802154_random_zephyr.c +++ b/src/platform/random/nrf_802154_random_zephyr.c @@ -1,30 +1,34 @@ -/* Copyright (c) 2019 - 2020, Nordic Semiconductor ASA +/* + * Copyright (c) 2019 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of Nordic Semiconductor ASA nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. * */ diff --git a/src/platform/temperature/nrf_802154_temperature.h b/src/platform/temperature/nrf_802154_temperature.h index 90c7bc8..4824cd5 100644 --- a/src/platform/temperature/nrf_802154_temperature.h +++ b/src/platform/temperature/nrf_802154_temperature.h @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /** diff --git a/src/platform/temperature/nrf_802154_temperature_none.c b/src/platform/temperature/nrf_802154_temperature_none.c index bdbdaf3..ef0c942 100644 --- a/src/platform/temperature/nrf_802154_temperature_none.c +++ b/src/platform/temperature/nrf_802154_temperature_none.c @@ -1,7 +1,9 @@ /* - * Copyright (c) 2017 - 2020, Nordic Semiconductor ASA + * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA * All rights reserved. * + * SPDX-License-Identifier: BSD-3-Clause + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * @@ -12,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. Neither the name of the copyright holder nor the names of its + * 3. Neither the name of Nordic Semiconductor ASA nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * @@ -27,6 +29,7 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * */ /**