nrf_802154: rev f8b1797b9cece579b7179dea342c278813531d9f

This commit updates revision of the nrf_802154 component.

Signed-off-by: Andrzej Kuros <andrzej.kuros@nordicsemi.no>
This commit is contained in:
Andrzej Kuros 2023-12-08 09:09:00 +01:00 committed by Robert Lubos
parent 6efb0fdef0
commit eeb9ad8b11
157 changed files with 415 additions and 444 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
# Copyright (c) 2021, Nordic Semiconductor ASA
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2023, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -32,48 +32,17 @@
*
*/
/**
* @file
* This file implements debug assert helpers for the nRF 802.15.4 radio driver.
*
*/
#include "nrfx.h"
#include "nrf_802154_debug.h"
#ifndef NRF_802154_ASSERT_H__
#define NRF_802154_ASSERT_H__
void __assert_func(const char * file, int line, const char * func, const char * cond)
{
(void)file;
(void)line;
(void)func;
(void)cond;
#if defined(ENABLE_DEBUG_ASSERT_BKPT) && (ENABLE_DEBUG_ASSERT_BKPT != 0)
__BKPT(0);
#ifdef NRF_802154_PLATFORM_ASSERT_INCLUDE
#include NRF_802154_PLATFORM_ASSERT_INCLUDE
#endif
__disable_irq();
// coverity[no_escape]
while (1)
;
}
#ifndef NRF_802154_ASSERT
/* Fallback to assert from C library. */
#include <assert.h>
#define NRF_802154_ASSERT(condition) assert(condition)
#endif /* NRF_802154_PLATFORM_ASSERT_INCLUDE */
void __aeabi_assert(const char * expr, const char * file, int line)
{
(void)expr;
(void)file;
(void)line;
#if defined(ENABLE_DEBUG_ASSERT_BKPT) && (ENABLE_DEBUG_ASSERT_BKPT != 0)
__BKPT(0);
#endif
__disable_irq();
// coverity[no_escape]
while (1)
;
}
void nrf_802154_debug_assert_init(void)
{
// Intentionally empty
}
#endif /* NRF_802154_ASSERT_H__ */

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
# Copyright (c) 2021, Nordic Semiconductor ASA
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
@ -50,7 +50,6 @@ target_sources(nrf-802154-driver
src/nrf_802154_core_hooks.c
src/nrf_802154_critical_section.c
src/nrf_802154_debug.c
src/nrf_802154_debug_assert.c
src/nrf_802154_encrypt.c
src/nrf_802154_pib.c
src/nrf_802154_peripherals_alloc.c

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -41,7 +41,7 @@
#include "nrf_802154_ack_data.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <string.h>
#include "mac_features/nrf_802154_frame_parser.h"
@ -226,7 +226,7 @@ static bool addr_binary_search(const uint8_t * p_addr,
break;
default:
assert(false);
NRF_802154_ASSERT(false);
break;
}
@ -313,7 +313,7 @@ static bool addr_index_find(const uint8_t * p_addr,
default:
valid_data_type = false;
assert(false);
NRF_802154_ASSERT(false);
break;
}
@ -472,7 +472,7 @@ static bool addr_add(const uint8_t * p_addr,
default:
valid_data_type = false;
assert(false);
NRF_802154_ASSERT(false);
break;
}
@ -544,7 +544,7 @@ static bool addr_remove(uint32_t location, nrf_802154_ack_data_t data_type, bool
default:
valid_data_type = false;
assert(false);
NRF_802154_ASSERT(false);
break;
}
@ -676,7 +676,7 @@ void nrf_802154_ack_data_src_addr_matching_method_set(nrf_802154_src_addr_match_
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -702,7 +702,7 @@ bool nrf_802154_ack_data_pending_bit_should_be_set(
default:
ret = false;
assert(false);
NRF_802154_ASSERT(false);
}
return ret;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,7 @@
#include "nrf_802154_ack_generator.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include "nrf_802154_const.h"
#include "nrf_802154_enh_ack_generator.h"
@ -87,7 +87,7 @@ void nrf_802154_ack_generator_reset(void)
uint8_t * nrf_802154_ack_generator_create(const nrf_802154_frame_parser_data_t * p_frame_data)
{
// This function should not be called if ACK is not requested.
assert(nrf_802154_frame_parser_ar_bit_is_set(p_frame_data));
NRF_802154_ASSERT(nrf_802154_frame_parser_ar_bit_is_set(p_frame_data));
switch (frame_version_is_2015_or_above(p_frame_data))
{

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,7 @@
#include "nrf_802154_enh_ack_generator.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <string.h>
#include "mac_features/nrf_802154_frame_parser.h"
@ -237,8 +237,8 @@ static uint8_t destination_set(const nrf_802154_frame_parser_data_t * p_frame_da
// Fill the Ack destination address field.
if ((p_ack_dst_addr != NULL) && (p_frame_src_addr != NULL))
{
assert(nrf_802154_frame_parser_dst_addr_is_extended(p_ack_data) ==
nrf_802154_frame_parser_src_addr_is_extended(p_frame_data));
NRF_802154_ASSERT(nrf_802154_frame_parser_dst_addr_is_extended(p_ack_data) ==
nrf_802154_frame_parser_src_addr_is_extended(p_frame_data));
memcpy(p_ack_dst_addr, p_frame_src_addr, src_addr_size);
bytes_written += src_addr_size;
@ -359,7 +359,7 @@ static bool security_header_set(const nrf_802154_frame_parser_data_t * p_frame_d
result = nrf_802154_frame_parser_valid_data_extend(p_ack_data,
ack_sec_ctrl_offset + PHR_SIZE,
PARSE_LEVEL_SEC_CTRL_OFFSETS);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
if (nrf_802154_frame_parser_sec_ctrl_sec_lvl_get(p_frame_data) == SECURITY_LEVEL_NONE)
@ -407,7 +407,7 @@ static void ie_header_set(const uint8_t * p_ie_data,
return;
}
assert(p_ack_ie != NULL);
NRF_802154_ASSERT(p_ack_ie != NULL);
memcpy(p_ack_ie, p_ie_data, ie_data_len);
@ -437,7 +437,7 @@ static uint8_t ie_header_terminate(const uint8_t * p_ie_data,
uint8_t * p_ack_ie = (uint8_t *)p_ack_data->p_frame + p_ack_data->helper.aux_sec_hdr_end_offset;
uint8_t ie_hdr_term[IE_HEADER_SIZE];
assert(p_ack_ie != NULL);
NRF_802154_ASSERT(p_ack_ie != NULL);
host_16_to_little((IE_HT2) << IE_HEADER_ELEMENT_ID_OFFSET, ie_hdr_term);
@ -484,7 +484,7 @@ static void fcf_process(const nrf_802154_frame_parser_data_t * p_frame_data)
m_ack[PHR_OFFSET] + PHR_SIZE,
PARSE_LEVEL_FCF_OFFSETS);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
}
@ -512,7 +512,7 @@ static void addr_end_process(const nrf_802154_frame_parser_data_t * p_frame_data
m_ack[PHR_OFFSET] + PHR_SIZE,
PARSE_LEVEL_ADDRESSING_END);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
}
@ -531,7 +531,7 @@ static bool aux_sec_hdr_process(const nrf_802154_frame_parser_data_t * p_frame_d
m_ack[PHR_OFFSET] + PHR_SIZE,
PARSE_LEVEL_AUX_SEC_HDR_END);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
return true;
@ -550,7 +550,7 @@ static void ie_process(const nrf_802154_frame_parser_data_t * p_frame_data)
m_ack[PHR_OFFSET] + PHR_SIZE,
PARSE_LEVEL_FULL);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
}
@ -675,7 +675,7 @@ uint8_t * nrf_802154_enh_ack_generator_create(
return m_ack;
default:
assert(false);
NRF_802154_ASSERT(false);
return NULL;
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,6 @@
#include "nrf_802154_imm_ack_generator.h"
#include <assert.h>
#include <string.h>
#include "nrf_802154_ack_data.h"

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -45,7 +45,7 @@
#include "nrf_802154_config.h"
#if NRF_802154_CSMA_CA_ENABLED
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stdint.h>
@ -125,7 +125,7 @@ static void priority_leverage(void)
if (!nrf_802154_rsch_delayed_timeslot_priority_update(NRF_802154_RESERVED_CSMACA_ID,
RSCH_PRIO_TX))
{
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -181,7 +181,7 @@ static void notify_busy_channel(bool result)
*/
static void frame_transmit(rsch_dly_ts_id_t dly_ts_id)
{
assert(dly_ts_id == NRF_802154_RESERVED_CSMACA_ID);
NRF_802154_ASSERT(dly_ts_id == NRF_802154_RESERVED_CSMACA_ID);
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
@ -250,7 +250,7 @@ static uint8_t backoff_periods_calc(void)
default:
result = backoff_periods_calc_random();
assert(false);
NRF_802154_ASSERT(false);
break;
}
#else
@ -298,14 +298,14 @@ static void random_backoff_start(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
break;
}
// Delayed timeslot with these parameters should always be scheduled
if (!nrf_802154_rsch_delayed_timeslot_request(&backoff_ts_param))
{
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_HIGH);
@ -331,7 +331,7 @@ static bool channel_busy(void)
mp_data = NULL;
bool ret = csma_ca_state_set(CSMA_CA_STATE_BACKOFF, CSMA_CA_STATE_IDLE);
assert(ret);
NRF_802154_ASSERT(ret);
(void)ret;
}
else
@ -358,7 +358,7 @@ bool nrf_802154_csma_ca_start(uint8_t * p_d
bool result = csma_ca_state_set(CSMA_CA_STATE_IDLE, CSMA_CA_STATE_BACKOFF);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
mp_data = p_data;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -42,7 +42,7 @@
#include "nrf_802154_delayed_trx.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stdint.h>
@ -186,7 +186,7 @@ static dly_op_data_t * dly_rx_data_by_id_search(rsch_dly_ts_id_t id)
// IDs and all inactive slots to have their IDs set to NRF_802154_RESERVED_INVALID_ID.
// If we ended up here then either we're searching for invalid ID or the IDs assigned
// to active slots aren't unique. Either way - assert.
assert(false);
NRF_802154_ASSERT(false);
}
}
}
@ -233,7 +233,7 @@ static bool dly_op_state_set(dly_op_data_t * p_dly_op_data,
default:
{
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -357,7 +357,7 @@ static void dly_rx_data_atomically_push(dly_op_data_t * p_dly_op_data)
nrf_802154_mcu_critical_enter(mcu_cs);
assert(!nrf_802154_queue_is_full(&m_dly_rx_id_q));
NRF_802154_ASSERT(!nrf_802154_queue_is_full(&m_dly_rx_id_q));
dly_op_data_t ** pp_op = (dly_op_data_t **)nrf_802154_queue_push_begin(&m_dly_rx_id_q);
@ -408,7 +408,7 @@ static bool dly_op_request(const rsch_dly_ts_param_t * p_dly_ts_param,
DELAYED_TRX_OP_STATE_PENDING,
DELAYED_TRX_OP_STATE_STOPPED);
assert(state_set);
NRF_802154_ASSERT(state_set);
(void)state_set;
}
@ -444,7 +444,7 @@ static void notify_rx_timeout(nrf_802154_sl_timer_t * p_timer)
nrf_802154_sl_timer_ret_t ret;
ret = nrf_802154_sl_timer_add(&p_dly_op_data->rx.timeout_timer);
assert(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
(void)ret;
}
else
@ -455,7 +455,7 @@ static void notify_rx_timeout(nrf_802154_sl_timer_t * p_timer)
false);
// It should always be possible to notify DRX result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
p_dly_op_data->id = NRF_802154_RESERVED_INVALID_ID;
@ -464,7 +464,7 @@ static void notify_rx_timeout(nrf_802154_sl_timer_t * p_timer)
DELAYED_TRX_OP_STATE_ONGOING,
DELAYED_TRX_OP_STATE_STOPPED);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
}
@ -483,7 +483,7 @@ static void dly_tx_result_notify(bool result)
// Currently there's only a single delayed transmission possible at a time
dly_op_data_t * p_dly_op_data = dly_tx_data_by_id_search(NRF_802154_RESERVED_DTX_ID);
assert(p_dly_op_data != NULL);
NRF_802154_ASSERT(p_dly_op_data != NULL);
if (!result)
{
@ -523,7 +523,7 @@ static void dly_rx_all_ongoing_abort(void)
false);
// It should always be possible to notify DRX result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
p_dly_op_data->id = NRF_802154_RESERVED_INVALID_ID;
@ -531,7 +531,7 @@ static void dly_rx_all_ongoing_abort(void)
result = dly_op_state_set(p_dly_op_data,
DELAYED_TRX_OP_STATE_ONGOING,
DELAYED_TRX_OP_STATE_STOPPED);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
}
}
@ -549,7 +549,7 @@ static void dly_rx_result_notify(bool result)
if (p_dly_op_data == NULL)
{
assert(false);
NRF_802154_ASSERT(false);
return;
}
@ -574,7 +574,7 @@ static void dly_rx_result_notify(bool result)
nrf_802154_sl_timer_ret_t ret;
ret = nrf_802154_sl_timer_add(&p_dly_op_data->rx.timeout_timer);
assert(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
(void)ret;
}
else
@ -585,7 +585,7 @@ static void dly_rx_result_notify(bool result)
false);
// It should always be possible to notify DRX result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
}
@ -662,23 +662,23 @@ static void tx_timeslot_started_callback(rsch_dly_ts_id_t dly_ts_id)
dly_op_data_t * p_dly_op_data = dly_tx_data_by_id_search(dly_ts_id);
assert(p_dly_op_data != NULL);
NRF_802154_ASSERT(p_dly_op_data != NULL);
bool result = dly_op_state_set(p_dly_op_data,
DELAYED_TRX_OP_STATE_PENDING,
DELAYED_TRX_OP_STATE_ONGOING);
assert(result);
NRF_802154_ASSERT(result);
transmit_attempt(p_dly_op_data);
result = dly_ts_slot_release(p_dly_op_data, true);
assert(result);
NRF_802154_ASSERT(result);
result = dly_op_state_set(p_dly_op_data,
DELAYED_TRX_OP_STATE_ONGOING,
DELAYED_TRX_OP_STATE_STOPPED);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_HIGH);
@ -713,7 +713,7 @@ static void rx_timeslot_started_callback(rsch_dly_ts_id_t dly_ts_id)
}
result = nrf_802154_rsch_delayed_timeslot_cancel(dly_ts_id, true);
assert(result);
NRF_802154_ASSERT(result);
if (!attempt_success)
{
@ -722,7 +722,7 @@ static void rx_timeslot_started_callback(rsch_dly_ts_id_t dly_ts_id)
result = dly_op_state_set(p_dly_op_data,
DELAYED_TRX_OP_STATE_ONGOING,
DELAYED_TRX_OP_STATE_STOPPED);
assert(result);
NRF_802154_ASSERT(result);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_HIGH);
@ -871,7 +871,7 @@ bool nrf_802154_delayed_trx_transmit_cancel(void)
DELAYED_TRX_OP_STATE_PENDING,
DELAYED_TRX_OP_STATE_STOPPED);
assert(result);
NRF_802154_ASSERT(result);
}
return result;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -43,7 +43,7 @@
#include "nrf_802154_filter.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
@ -422,7 +422,7 @@ static nrf_802154_rx_error_t dst_addr_check(const nrf_802154_frame_parser_data_t
NRF_802154_RX_ERROR_INVALID_DEST_ADDR;
default:
assert(false);
NRF_802154_ASSERT(false);
}
return NRF_802154_RX_ERROR_INVALID_FRAME;
@ -442,7 +442,8 @@ nrf_802154_rx_error_t nrf_802154_filter_frame_part(
if (filter_mode & NRF_802154_FILTER_MODE_FCF)
{
assert(nrf_802154_frame_parser_parse_level_get(p_frame_data) >= PARSE_LEVEL_FCF_OFFSETS);
NRF_802154_ASSERT(nrf_802154_frame_parser_parse_level_get(
p_frame_data) >= PARSE_LEVEL_FCF_OFFSETS);
if ((psdu_length < IMM_ACK_LENGTH) || (psdu_length > MAX_PACKET_SIZE))
{
@ -469,8 +470,8 @@ nrf_802154_rx_error_t nrf_802154_filter_frame_part(
if (filter_mode & NRF_802154_FILTER_MODE_DST_ADDR)
{
assert(nrf_802154_frame_parser_parse_level_get(
p_frame_data) >= PARSE_LEVEL_DST_ADDRESSING_END);
NRF_802154_ASSERT(nrf_802154_frame_parser_parse_level_get(
p_frame_data) >= PARSE_LEVEL_DST_ADDRESSING_END);
result = dst_addr_check(p_frame_data);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -476,7 +476,7 @@ static bool parse_state_advance(nrf_802154_frame_parser_data_t * p_parser_data,
return true;
default:
assert(false);
NRF_802154_ASSERT(false);
return false;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -48,7 +48,7 @@
#include "nrf_802154_utils_byteorder.h"
#include "nrf_802154_sl_timer.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#if defined(CONFIG_SOC_SERIES_BSIM_NRFXX)
#include "nrf_802154_bsim_utils.h"
@ -205,7 +205,7 @@ static void csl_ie_write_commit(bool * p_written)
*/
static bool csl_ie_write_prepare(const uint8_t * p_iterator)
{
assert(p_iterator != NULL);
NRF_802154_ASSERT(p_iterator != NULL);
if (nrf_802154_frame_parser_ie_length_get(p_iterator) < IE_CSL_SIZE_MIN)
{
@ -348,7 +348,7 @@ static void link_metrics_ie_write_commit(bool * p_written)
*/
static bool link_metrics_ie_write_prepare(const uint8_t * p_iterator)
{
assert(p_iterator != NULL);
NRF_802154_ASSERT(p_iterator != NULL);
// Initialize the iterator at the start of IE content
uint8_t * p_content_iterator =
@ -423,7 +423,7 @@ static void link_metrics_ie_write_reset(void)
*/
static void ie_writer_prepare(uint8_t * p_ie_header, const uint8_t * p_end_addr)
{
assert(m_writer_state == IE_WRITER_RESET);
NRF_802154_ASSERT(m_writer_state == IE_WRITER_RESET);
m_writer_state = IE_WRITER_PREPARE;
const uint8_t * p_iterator = nrf_802154_frame_parser_header_ie_iterator_begin(p_ie_header);
@ -473,7 +473,7 @@ static void ie_writer_prepare(uint8_t * p_ie_header, const uint8_t * p_end_addr)
*/
static void ie_writer_commit(bool * p_written)
{
assert(m_writer_state == IE_WRITER_PREPARE);
NRF_802154_ASSERT(m_writer_state == IE_WRITER_PREPARE);
m_writer_state = IE_WRITER_COMMIT;
csl_ie_write_commit(p_written);
@ -490,8 +490,8 @@ void nrf_802154_ie_writer_reset(void)
void nrf_802154_ie_writer_prepare(uint8_t * p_ie_header, const uint8_t * p_end_addr)
{
assert(p_ie_header != NULL);
assert(p_ie_header < p_end_addr);
NRF_802154_ASSERT(p_ie_header != NULL);
NRF_802154_ASSERT(p_ie_header < p_end_addr);
ie_writer_prepare(p_ie_header, p_end_addr);
}
@ -525,7 +525,7 @@ bool nrf_802154_ie_writer_tx_setup(
PARSE_LEVEL_FULL,
&frame_data);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
p_ie_header = (uint8_t *)nrf_802154_frame_parser_ie_header_get(&frame_data);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,7 @@
#include "nrf_802154_ifs.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdint.h>
#include <string.h>
@ -271,7 +271,7 @@ bool nrf_802154_ifs_pretransmission(
if (!ifs_state_set(IFS_STATE_STOPPED, IFS_STATE_ARMED))
{
assert(false);
NRF_802154_ASSERT(false);
}
else
{
@ -285,7 +285,7 @@ bool nrf_802154_ifs_pretransmission(
if (nrf_802154_sl_timer_add(&m_timer) != NRF_802154_SL_TIMER_RET_SUCCESS)
{
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -294,7 +294,7 @@ bool nrf_802154_ifs_pretransmission(
void nrf_802154_ifs_transmitted_hook(const uint8_t * p_frame)
{
assert(p_frame[0] != 0U);
NRF_802154_ASSERT(p_frame[0] != 0U);
m_last_frame_timestamp = nrf_802154_sl_timer_current_time_get();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -42,7 +42,7 @@
#include "nrf_802154_ack_timeout.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stdint.h>
@ -97,14 +97,14 @@ static void timeout_timer_fired(nrf_802154_sl_timer_t * p_timer)
static void timeout_timer_retry(void)
{
m_dt += RETRY_DELAY;
assert(m_dt <= MAX_RETRY_DELAY);
NRF_802154_ASSERT(m_dt <= MAX_RETRY_DELAY);
m_timer.trigger_time += RETRY_DELAY;
nrf_802154_sl_timer_ret_t ret;
ret = nrf_802154_sl_timer_add(&m_timer);
assert(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
(void)ret;
}
@ -134,7 +134,7 @@ static void timeout_timer_start(void)
m_procedure_is_active = true;
ret = nrf_802154_sl_timer_add(&m_timer);
assert(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
(void)ret;
}
@ -203,14 +203,14 @@ bool nrf_802154_ack_timeout_abort(nrf_802154_term_t term_lvl, req_originator_t r
void nrf_802154_ack_timeout_transmitted_hook(const uint8_t * p_frame)
{
assert((p_frame == mp_frame) || (!m_procedure_is_active));
NRF_802154_ASSERT((p_frame == mp_frame) || (!m_procedure_is_active));
timeout_timer_stop();
}
void nrf_802154_ack_timeout_rx_ack_started_hook(void)
{
assert(m_procedure_is_active);
NRF_802154_ASSERT(m_procedure_is_active);
timeout_timer_stop();
}
@ -218,7 +218,7 @@ void nrf_802154_ack_timeout_rx_ack_started_hook(void)
bool nrf_802154_ack_timeout_tx_failed_hook(uint8_t * p_frame, nrf_802154_tx_error_t error)
{
(void)error;
assert((p_frame == mp_frame) || (!m_procedure_is_active));
NRF_802154_ASSERT((p_frame == mp_frame) || (!m_procedure_is_active));
timeout_timer_stop();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,7 @@
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "nrf_802154_assert.h"
typedef struct
{
@ -145,7 +145,7 @@ nrf_802154_security_error_t nrf_802154_security_pib_deinit(void)
nrf_802154_security_error_t nrf_802154_security_pib_key_store(nrf_802154_key_t * p_key)
{
assert(p_key != NULL);
NRF_802154_ASSERT(p_key != NULL);
if (p_key->type != NRF_802154_KEY_CLEARTEXT)
{
@ -186,7 +186,7 @@ nrf_802154_security_error_t nrf_802154_security_pib_key_store(nrf_802154_key_t *
nrf_802154_security_error_t nrf_802154_security_pib_key_remove(nrf_802154_key_id_t * p_id)
{
assert(p_id != NULL);
NRF_802154_ASSERT(p_id != NULL);
for (uint32_t i = 0; i < NRF_802154_SECURITY_KEY_STORAGE_SIZE; i++)
{
@ -211,8 +211,8 @@ void nrf_802154_security_pib_key_remove_all(void)
nrf_802154_security_error_t nrf_802154_security_pib_key_use(nrf_802154_key_id_t * p_id,
void * destination)
{
assert(destination != NULL);
assert(p_id != NULL);
NRF_802154_ASSERT(destination != NULL);
NRF_802154_ASSERT(p_id != NULL);
for (uint32_t i = 0; i < NRF_802154_SECURITY_KEY_STORAGE_SIZE; i++)
{
@ -252,8 +252,8 @@ nrf_802154_security_error_t nrf_802154_security_pib_frame_counter_get_next(
uint32_t * p_frame_counter,
nrf_802154_key_id_t * p_id)
{
assert(p_frame_counter != NULL);
assert(p_id != NULL);
NRF_802154_ASSERT(p_frame_counter != NULL);
NRF_802154_ASSERT(p_id != NULL);
uint32_t * p_frame_counter_to_use = NULL;
uint32_t fc;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -47,7 +47,7 @@
#include "nrf_802154_tx_work_buffer.h"
#include "nrf_802154_utils_byteorder.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stddef.h>
#if NRF_802154_SECURITY_WRITER_ENABLED
@ -85,7 +85,7 @@ static void key_id_prepare(const nrf_802154_frame_parser_data_t * p_frame_data,
/* Key Identifier Mode is encoded on 2 bits and has 4 possible values, all handled in
* the above cases. Ending up in the default case indicates the frame parser is bugged.
*/
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -130,7 +130,7 @@ static nrf_802154_security_error_t frame_counter_inject(
/* nrf_802154_security_pib_frame_counter_get_next function shall not return other
* error codes than those handled in the above cases. If it does then it is a bug.
*/
assert(false);
NRF_802154_ASSERT(false);
}
return err;
@ -172,7 +172,7 @@ bool nrf_802154_security_writer_tx_setup(
p_frame[PHR_OFFSET] + PHR_SIZE,
PARSE_LEVEL_AUX_SEC_HDR_END,
&frame_data);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
do
@ -220,7 +220,7 @@ bool nrf_802154_security_writer_tx_setup(
/* frame_counter_inject function shall not return other error codes than those
* handled in the above cases. If it does then it is a bug.
*/
assert(false);
NRF_802154_ASSERT(false);
result = false;
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -42,7 +42,7 @@
#include "nrf_802154.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@ -101,7 +101,7 @@ static uint8_t m_tx_buffer[RAW_PAYLOAD_OFFSET + MAX_PACKET_SIZE];
*/
static void tx_buffer_fill(const uint8_t * p_data, uint8_t length)
{
assert(length <= MAX_PACKET_SIZE - FCS_SIZE);
NRF_802154_ASSERT(length <= MAX_PACKET_SIZE - FCS_SIZE);
m_tx_buffer[RAW_LENGTH_OFFSET] = length + FCS_SIZE;
memcpy(&m_tx_buffer[RAW_PAYLOAD_OFFSET], p_data, length);
@ -120,7 +120,7 @@ static void tx_buffer_fill_for_modulated_carrier(const uint8_t * p_data)
{
uint8_t length = p_data[RAW_LENGTH_OFFSET];
assert(length <= MAX_PACKET_SIZE);
NRF_802154_ASSERT(length <= MAX_PACKET_SIZE);
memcpy(m_tx_buffer, p_data, RAW_PAYLOAD_OFFSET + length);
}
@ -691,11 +691,11 @@ void nrf_802154_buffer_free_raw(uint8_t * p_data)
bool result;
rx_buffer_t * p_buffer = (rx_buffer_t *)p_data;
assert(p_buffer->free == false);
NRF_802154_ASSERT(p_buffer->free == false);
(void)p_buffer;
result = nrf_802154_request_buffer_free(p_data);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -708,7 +708,7 @@ bool nrf_802154_buffer_free_immediately_raw(uint8_t * p_data)
bool result;
rx_buffer_t * p_buffer = (rx_buffer_t *)p_data;
assert(p_buffer->free == false);
NRF_802154_ASSERT(p_buffer->free == false);
(void)p_buffer;
result = nrf_802154_request_buffer_free(p_data);
@ -726,11 +726,11 @@ void nrf_802154_buffer_free(uint8_t * p_data)
bool result;
rx_buffer_t * p_buffer = (rx_buffer_t *)(p_data - RAW_PAYLOAD_OFFSET);
assert(p_buffer->free == false);
NRF_802154_ASSERT(p_buffer->free == false);
(void)p_buffer;
result = nrf_802154_request_buffer_free(p_data - RAW_PAYLOAD_OFFSET);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -743,7 +743,7 @@ bool nrf_802154_buffer_free_immediately(uint8_t * p_data)
bool result;
rx_buffer_t * p_buffer = (rx_buffer_t *)(p_data - RAW_PAYLOAD_OFFSET);
assert(p_buffer->free == false);
NRF_802154_ASSERT(p_buffer->free == false);
(void)p_buffer;
result = nrf_802154_request_buffer_free(p_data - RAW_PAYLOAD_OFFSET);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -38,7 +38,7 @@
#include "nrf_802154_aes_ccm.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <string.h>
#include "hal/nrf_ecb.h"
@ -521,7 +521,7 @@ bool nrf_802154_aes_ccm_transform_prepare(const nrf_802154_aes_ccm_data_t * p_ae
offset = p_aes_ccm_data->plain_text_data - p_aes_ccm_data->raw_frame;
}
assert((offset >= 0) && (offset <= MAX_PACKET_SIZE + PHR_SIZE));
NRF_802154_ASSERT((offset >= 0) && (offset <= MAX_PACKET_SIZE + PHR_SIZE));
nrf_802154_tx_work_buffer_plain_text_offset_set(offset);
mp_work_buffer = nrf_802154_tx_work_buffer_enable_for(p_aes_ccm_data->raw_frame);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -42,7 +42,7 @@
#include "nrf_802154_core.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
@ -607,7 +607,7 @@ static rsch_prio_t min_required_rsch_prio(radio_state_t state)
}
default:
assert(false);
NRF_802154_ASSERT(false);
return RSCH_PRIO_IDLE;
}
}
@ -714,7 +714,7 @@ static bool can_terminate_current_operation(radio_state_t state,
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
return result;
@ -778,7 +778,7 @@ static void operation_terminated_notify(radio_state_t state, bool receiving_psdu
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -906,7 +906,7 @@ static nrf_802154_trx_receive_notifications_t make_trx_frame_receive_notificatio
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -944,7 +944,7 @@ static nrf_802154_trx_transmit_notifications_t make_trx_frame_transmit_notificat
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -1004,7 +1004,7 @@ static void rx_init(nrf_802154_trx_ramp_up_trigger_mode_t ru_tr_mode, bool * p_a
* The trigger has occurred. This has happened too early so there is a high risk
* that the radio will not ramp up. It is necessary to abort the operation.
*/
assert(p_abort_shall_follow);
NRF_802154_ASSERT(p_abort_shall_follow);
*p_abort_shall_follow = true;
}
}
@ -1249,7 +1249,7 @@ static void on_timeslot_ended(void)
nrf_802154_rsch_continuous_ended();
result = nrf_802154_core_hooks_terminate(NRF_802154_TERM_802154, REQ_ORIG_RSCH);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
switch (m_state)
@ -1297,7 +1297,7 @@ static void on_timeslot_ended(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -1311,7 +1311,7 @@ static void on_preconditions_denied(radio_state_t state)
bool result;
result = nrf_802154_core_hooks_terminate(NRF_802154_TERM_802154, REQ_ORIG_RSCH);
assert(result);
NRF_802154_ASSERT(result);
(void)result;
bool receiving_psdu_now = false;
@ -1361,7 +1361,7 @@ static void on_preconditions_denied(radio_state_t state)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
operation_terminated_notify(state, receiving_psdu_now);
@ -1412,7 +1412,7 @@ static void on_preconditions_approved(radio_state_t state)
#endif // NRF_802154_CARRIER_FUNCTIONS_ENABLED
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -1528,7 +1528,7 @@ void nrf_802154_trx_receive_ack_started(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_state == RADIO_STATE_RX_ACK);
NRF_802154_ASSERT(m_state == RADIO_STATE_RX_ACK);
nrf_802154_core_hooks_rx_ack_started();
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -1609,15 +1609,16 @@ void nrf_802154_trx_receive_frame_prestarted(void)
if (!antenna_diversity_is_enabled())
{
// Only assert if notifications mask would not allow for calling this function.
assert((m_trx_receive_frame_notifications_mask & TRX_RECEIVE_NOTIFICATION_PRESTARTED) !=
0U);
NRF_802154_ASSERT((m_trx_receive_frame_notifications_mask &
TRX_RECEIVE_NOTIFICATION_PRESTARTED) !=
0U);
}
else
{
// Antenna diversity uses this function for detecting possible preamble on air.
}
assert(m_state == RADIO_STATE_RX);
NRF_802154_ASSERT(m_state == RADIO_STATE_RX);
#if (NRF_802154_STATS_COUNT_ENERGY_DETECTED_EVENTS)
nrf_802154_stat_counter_increment(received_energy_events);
@ -1657,7 +1658,7 @@ void nrf_802154_trx_receive_frame_prestarted(void)
nrf_802154_sl_timer_ret_t ret;
ret = nrf_802154_sl_timer_add(&m_rx_prestarted_timer);
assert(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS);
(void)ret;
m_rx_prestarted_trig_count += 1;
@ -1670,8 +1671,9 @@ void nrf_802154_trx_receive_frame_started(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_state == RADIO_STATE_RX);
assert((m_trx_receive_frame_notifications_mask & TRX_RECEIVE_NOTIFICATION_STARTED) != 0U);
NRF_802154_ASSERT(m_state == RADIO_STATE_RX);
NRF_802154_ASSERT(
(m_trx_receive_frame_notifications_mask & TRX_RECEIVE_NOTIFICATION_STARTED) != 0U);
#if (NRF_802154_STATS_COUNT_RECEIVED_PREAMBLES)
nrf_802154_stat_counter_increment(received_preambles);
@ -1718,7 +1720,7 @@ uint8_t nrf_802154_trx_receive_frame_bcmatched(uint8_t bcc)
nrf_802154_frame_parser_level_t prev_level =
nrf_802154_frame_parser_parse_level_get(&m_current_rx_frame_data);
assert(m_state == RADIO_STATE_RX);
NRF_802154_ASSERT(m_state == RADIO_STATE_RX);
switch (prev_level)
{
@ -1883,7 +1885,7 @@ void nrf_802154_trx_receive_frame_crcerror(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_state == RADIO_STATE_RX);
NRF_802154_ASSERT(m_state == RADIO_STATE_RX);
rx_flags_clear();
rx_data_clear();
@ -1910,7 +1912,7 @@ void nrf_802154_trx_receive_ack_crcerror(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_state == RADIO_STATE_RX_ACK);
NRF_802154_ASSERT(m_state == RADIO_STATE_RX_ACK);
on_bad_ack();
@ -2086,7 +2088,7 @@ void nrf_802154_trx_transmit_frame_started(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert((m_state == RADIO_STATE_TX) || (m_state == RADIO_STATE_CCA_TX));
NRF_802154_ASSERT((m_state == RADIO_STATE_TX) || (m_state == RADIO_STATE_CCA_TX));
transmit_started_notify();
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2096,7 +2098,7 @@ void nrf_802154_trx_transmit_ack_started(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_state == RADIO_STATE_TX_ACK);
NRF_802154_ASSERT(m_state == RADIO_STATE_TX_ACK);
transmit_ack_started_notify();
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2106,7 +2108,7 @@ void nrf_802154_trx_transmit_ack_transmitted(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_state == RADIO_STATE_TX_ACK);
NRF_802154_ASSERT(m_state == RADIO_STATE_TX_ACK);
uint8_t * p_received_data = mp_current_rx_buffer->data;
@ -2346,15 +2348,15 @@ void nrf_802154_trx_transmit_frame_ccastarted(void)
{
// This handler provided by trx is never called because parameter notifications_mask
// of the nrf_802154_trx_transmit_frame does not contain TRX_TRANSMIT_NOTIFICATION_CCASTARTED.
assert(false);
NRF_802154_ASSERT(false);
}
void nrf_802154_trx_transmit_frame_ccaidle(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_state == RADIO_STATE_CCA_TX);
assert(m_trx_transmit_frame_notifications_mask & TRX_TRANSMIT_NOTIFICATION_CCAIDLE);
NRF_802154_ASSERT(m_state == RADIO_STATE_CCA_TX);
NRF_802154_ASSERT(m_trx_transmit_frame_notifications_mask & TRX_TRANSMIT_NOTIFICATION_CCAIDLE);
#if (NRF_802154_FRAME_TIMESTAMP_ENABLED)
uint64_t ts = timer_coord_timestamp_get();
@ -2690,7 +2692,7 @@ bool nrf_802154_core_ack_timeout_handle(const nrf_802154_ack_timeout_handle_para
REQ_ORIG_ACK_TIMEOUT,
false,
NRF_802154_RESERVED_IMM_RX_WINDOW_ID);
assert(r);
NRF_802154_ASSERT(r);
(void)r;
nrf_802154_transmit_done_metadata_t metadata = {0};

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -42,7 +42,7 @@
#include "nrf_802154_critical_section.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdint.h>
#include "nrf_802154_config.h"
@ -157,7 +157,7 @@ static void critical_section_exit(void)
cnt = m_nested_critical_section_counter;
assert(cnt > 0);
NRF_802154_ASSERT(cnt > 0);
--cnt;
@ -215,7 +215,7 @@ void nrf_802154_critical_section_forcefully_enter(void)
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
critical_section_entered = critical_section_enter(true);
assert(critical_section_entered);
NRF_802154_ASSERT(critical_section_entered);
(void)critical_section_entered;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -232,17 +232,17 @@ void nrf_802154_critical_section_exit(void)
void nrf_802154_critical_section_nesting_allow(void)
{
assert(m_nested_critical_section_allowed_priority ==
NESTED_CRITICAL_SECTION_ALLOWED_PRIORITY_NONE);
assert(m_nested_critical_section_counter >= 1);
NRF_802154_ASSERT(m_nested_critical_section_allowed_priority ==
NESTED_CRITICAL_SECTION_ALLOWED_PRIORITY_NONE);
NRF_802154_ASSERT(m_nested_critical_section_counter >= 1);
m_nested_critical_section_allowed_priority = active_vector_priority_get();
}
void nrf_802154_critical_section_nesting_deny(void)
{
assert(m_nested_critical_section_allowed_priority >= 0);
assert(m_nested_critical_section_counter >= 1);
NRF_802154_ASSERT(m_nested_critical_section_allowed_priority >= 0);
NRF_802154_ASSERT(m_nested_critical_section_counter >= 1);
m_nested_critical_section_allowed_priority = NESTED_CRITICAL_SECTION_ALLOWED_PRIORITY_NONE;
}
@ -277,7 +277,7 @@ uint32_t nrf_802154_critical_section_active_vector_priority_get(void)
irq_number = (IRQn_Type)((int32_t)active_vector_id - CMSIS_IRQ_NUM_VECTACTIVE_DIFF);
assert(irq_number >= SVCall_IRQn);
NRF_802154_ASSERT(irq_number >= SVCall_IRQn);
#endif
active_priority = NVIC_GetPriority(irq_number);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -44,7 +44,6 @@
#include "nrf_802154_debug_log_codes.h"
void nrf_802154_debug_gpio_init(void);
void nrf_802154_debug_assert_init(void);
void nrf_802154_debug_init(void)
{
@ -70,8 +69,4 @@ void nrf_802154_debug_init(void)
#endif // ENABLE_DEBUG_LOG
nrf_802154_sl_log_init();
#if ENABLE_DEBUG_ASSERT
nrf_802154_debug_assert_init();
#endif // ENABLE_DEBUG_ASSERT
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -34,7 +34,7 @@
#include "nrf_802154_encrypt.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <string.h>
#include "nrf_802154_aes_ccm.h"
@ -242,7 +242,7 @@ bool aes_ccm_data_a_data_and_m_data_prepare(
default:
// No more frame types exist.
result = false;
assert(false);
NRF_802154_ASSERT(false);
break;
}
@ -345,7 +345,7 @@ bool nrf_802154_encrypt_tx_setup(
p_frame[PHR_OFFSET] + PHR_SIZE,
PARSE_LEVEL_FULL,
&frame_data);
assert(success);
NRF_802154_ASSERT(success);
(void)success;
if (!nrf_802154_frame_parser_security_enabled_bit_is_set(&frame_data) ||

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -42,7 +42,7 @@
#include "nrf_802154_notification.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@ -269,7 +269,7 @@ static nrf_802154_queue_entry_t * ntf_enter(void)
{
nrf_802154_mcu_critical_enter(m_mcu_cs);
assert(!nrf_802154_queue_is_full(&m_notifications_queue));
NRF_802154_ASSERT(!nrf_802154_queue_is_full(&m_notifications_queue));
return nrf_802154_queue_push_begin(&m_notifications_queue);
}
@ -606,7 +606,7 @@ void nrf_802154_notify_received(uint8_t * p_data, int8_t power, uint8_t lqi)
bool notified = swi_notify_received(p_data, power, lqi);
// It should always be possible to notify a successful reception
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -635,7 +635,7 @@ void nrf_802154_notify_transmitted(uint8_t * p_frame
bool notified = swi_notify_transmitted(p_frame, p_metadata);
// It should always be possible to notify transmission result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -650,7 +650,7 @@ void nrf_802154_notify_transmit_failed(uint8_t
bool notified = swi_notify_transmit_failed(p_frame, error, p_metadata);
// It should always be possible to notify transmission result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -673,7 +673,7 @@ void nrf_802154_notify_energy_detected(uint8_t result)
#endif
// It should always be possible to notify energy detection result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -686,7 +686,7 @@ void nrf_802154_notify_energy_detection_failed(nrf_802154_ed_error_t error)
bool notified = swi_notify_energy_detection_failed(error);
// It should always be possible to notify energy detection result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -699,7 +699,7 @@ void nrf_802154_notify_cca(bool is_free)
bool notified = swi_notify_cca(is_free);
// It should always be possible to notify CCA result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -712,7 +712,7 @@ void nrf_802154_notify_cca_failed(nrf_802154_cca_error_t error)
bool notified = swi_notify_cca_failed(error);
// It should always be possible to notify CCA result
assert(notified);
NRF_802154_ASSERT(notified);
(void)notified;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -807,7 +807,7 @@ static void irq_handler_ntf_event(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_queue_pop_commit(&m_notifications_queue);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,7 @@
#include "nrf_802154_pib.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
@ -313,7 +313,7 @@ void nrf_802154_pib_cca_cfg_set(const nrf_802154_cca_cfg_t * p_cca_cfg)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
}
@ -431,7 +431,7 @@ uint16_t nrf_802154_pib_ifs_min_sifs_period_get(void)
void nrf_802154_pib_ifs_min_sifs_period_set(uint16_t period)
{
assert(period >= TURNAROUND_TIME);
NRF_802154_ASSERT(period >= TURNAROUND_TIME);
m_data.ifs.min_sifs_period_us = period;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -36,7 +36,7 @@
* @brief Module implementing simple FIFO queue.
*/
#include <assert.h>
#include "nrf_802154_assert.h"
#include "nrf_802154_queue.h"
@ -62,21 +62,21 @@ void nrf_802154_queue_init(nrf_802154_queue_t * p_queue,
size_t memory_size,
size_t item_size)
{
assert(p_queue != NULL);
assert(p_memory != NULL);
assert(item_size != 0U);
NRF_802154_ASSERT(p_queue != NULL);
NRF_802154_ASSERT(p_memory != NULL);
NRF_802154_ASSERT(item_size != 0U);
/* Due uint8_t type of nrf_802154_queue_t::item_size */
assert(item_size <= UINT8_MAX);
NRF_802154_ASSERT(item_size <= UINT8_MAX);
size_t capacity = memory_size / item_size;
/* Due simplified design, one entry in p_memory array is lost,
* see nrf_802154_queue_is_empty and nrf_802154_queue_is_full */
assert(capacity >= 2U);
NRF_802154_ASSERT(capacity >= 2U);
/* Due uint8_t type of nrf_802154_queue_t::capacity */
assert(capacity <= UINT8_MAX);
NRF_802154_ASSERT(capacity <= UINT8_MAX);
p_queue->p_memory = p_memory;
p_queue->capacity = capacity;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,7 @@
#include "nrf_802154_request.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdbool.h>
#include <stdint.h>
@ -256,7 +256,7 @@ static nrf_802154_req_data_t * req_enter(void)
{
nrf_802154_mcu_critical_enter(m_mcu_cs);
assert(!nrf_802154_queue_is_full(&m_requests_queue));
NRF_802154_ASSERT(!nrf_802154_queue_is_full(&m_requests_queue));
return (nrf_802154_req_data_t *)nrf_802154_queue_push_begin(&m_requests_queue);
}
@ -279,7 +279,7 @@ static void req_exit(void)
/** Assert if SWI interrupt is disabled. */
static inline void assert_interrupt_status(void)
{
assert(nrf_802154_irq_is_enabled(nrfx_get_irq_number(NRF_802154_EGU_INSTANCE)));
NRF_802154_ASSERT(nrf_802154_irq_is_enabled(nrfx_get_irq_number(NRF_802154_EGU_INSTANCE)));
}
#define REQUEST_FUNCTION(func_core, func_swi, ...) \
@ -948,7 +948,7 @@ static void irq_handler_req_event(void)
#endif // NRF_802154_DELAYED_TRX_ENABLED
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_queue_pop_commit(&m_requests_queue);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2018, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -40,7 +40,6 @@
#include "nrf_802154_swi.h"
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -36,7 +36,7 @@
#include "nrf_802154_trx.h"
#include <assert.h>
#include "nrf_802154_assert.h"
#include <string.h>
#include "nrf_802154_config.h"
@ -350,7 +350,7 @@ static void nrf_radio_reset(void)
static void channel_set(uint8_t channel)
{
assert(channel >= 11U && channel <= 26U);
NRF_802154_ASSERT(channel >= 11U && channel <= 26U);
nrf_radio_frequency_set(NRF_RADIO, 2405U + 5U * (channel - 11U));
}
@ -616,7 +616,7 @@ static inline void wait_until_radio_is_disabled(void)
#endif
}
assert(radio_is_disabled);
NRF_802154_ASSERT(radio_is_disabled);
(void)radio_is_disabled;
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_HIGH);
@ -649,7 +649,7 @@ void nrf_802154_trx_enable(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_trx_state == TRX_STATE_DISABLED);
NRF_802154_ASSERT(m_trx_state == TRX_STATE_DISABLED);
nrf_timer_init();
nrf_radio_reset();
@ -702,7 +702,7 @@ void nrf_802154_trx_enable(void)
irq_init();
assert(nrf_radio_shorts_get(NRF_RADIO) == SHORTS_IDLE);
NRF_802154_ASSERT(nrf_radio_shorts_get(NRF_RADIO) == SHORTS_IDLE);
#if defined(DPPI_PRESENT)
mpsl_fem_abort_set(NRF_802154_DPPI_RADIO_DISABLED,
@ -773,7 +773,7 @@ static void ppi_all_clear(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_trx_ppi_for_disable();
}
@ -873,7 +873,7 @@ static void rx_automatic_antenna_handle(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
break;
}
}
@ -902,11 +902,11 @@ static void rx_antenna_update(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
break;
}
assert(result);
NRF_802154_ASSERT(result);
(void)result;
}
@ -935,19 +935,19 @@ static void tx_antenna_update(void)
case NRF_802154_SL_ANT_DIV_MODE_AUTO:
default:
assert(false);
NRF_802154_ASSERT(false);
break;
}
if (!result)
{
assert(false);
NRF_802154_ASSERT(false);
}
}
void nrf_802154_trx_antenna_update(void)
{
assert(m_trx_state != TRX_STATE_DISABLED);
NRF_802154_ASSERT(m_trx_state != TRX_STATE_DISABLED);
switch (m_trx_state)
{
@ -1011,7 +1011,7 @@ bool nrf_802154_trx_receive_is_buffer_missing(void)
return m_flags.missing_receive_buffer;
default:
assert(!m_flags.missing_receive_buffer);
NRF_802154_ASSERT(!m_flags.missing_receive_buffer);
return false;
}
}
@ -1033,7 +1033,7 @@ static void receive_buffer_missing_buffer_set(void * p_receive_buffer)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
m_flags.missing_receive_buffer = false;
@ -1111,7 +1111,7 @@ void nrf_802154_trx_receive_frame(uint8_t bcc,
nrf_radio_shorts_set(NRF_RADIO, shorts);
// Set BCC
assert(bcc != 0U);
NRF_802154_ASSERT(bcc != 0U);
nrf_radio_bcc_set(NRF_RADIO, bcc * 8U);
// Enable IRQs
@ -1148,7 +1148,7 @@ void nrf_802154_trx_receive_frame(uint8_t bcc,
if (allow_sync_swi)
{
#if !defined(RADIO_INTENSET_SYNC_Msk)
assert(false);
NRF_802154_ASSERT(false);
#else
// The RADIO can't generate interrupt on EVENT_SYNC. Path to generate interrupt:
// RADIO.EVENT_SYNC -> PPI_RADIO_SYNC_EGU_SYNC -> EGU.TASK_SYNC -> EGU.EVENT_SYNC ->
@ -1411,8 +1411,8 @@ bool nrf_802154_trx_transmit_ack(const void * p_transmit_buffer, uint32_t delay_
bool result = false;
assert(m_trx_state == TRX_STATE_RXFRAME_FINISHED);
assert(p_transmit_buffer != NULL);
NRF_802154_ASSERT(m_trx_state == TRX_STATE_RXFRAME_FINISHED);
NRF_802154_ASSERT(p_transmit_buffer != NULL);
m_trx_state = TRX_STATE_TXACK;
@ -1708,7 +1708,7 @@ void nrf_802154_trx_abort(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -1747,7 +1747,7 @@ bool nrf_802154_trx_go_idle(void)
switch (m_trx_state)
{
case TRX_STATE_DISABLED:
assert(false);
NRF_802154_ASSERT(false);
break;
case TRX_STATE_IDLE:
@ -1769,7 +1769,7 @@ bool nrf_802154_trx_go_idle(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -1889,7 +1889,7 @@ void nrf_802154_trx_standalone_cca(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert((m_trx_state == TRX_STATE_IDLE) || (m_trx_state == TRX_STATE_FINISHED));
NRF_802154_ASSERT((m_trx_state == TRX_STATE_IDLE) || (m_trx_state == TRX_STATE_FINISHED));
m_trx_state = TRX_STATE_STANDALONE_CCA;
@ -1950,7 +1950,7 @@ void nrf_802154_trx_continuous_carrier(const nrf_802154_fal_tx_power_split_t * p
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert((m_trx_state == TRX_STATE_IDLE) || (m_trx_state == TRX_STATE_FINISHED));
NRF_802154_ASSERT((m_trx_state == TRX_STATE_IDLE) || (m_trx_state == TRX_STATE_FINISHED));
m_trx_state = TRX_STATE_CONTINUOUS_CARRIER;
@ -1975,7 +1975,7 @@ void nrf_802154_trx_continuous_carrier_restart(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_trx_state == TRX_STATE_CONTINUOUS_CARRIER);
NRF_802154_ASSERT(m_trx_state == TRX_STATE_CONTINUOUS_CARRIER);
// Continuous carrier PPIs are configured without self-disabling
// Triggering RADIO.TASK_DISABLE causes ramp-down -> RADIO.EVENTS_DISABLED -> EGU.TASK -> EGU.EVENT ->
@ -2006,8 +2006,8 @@ void nrf_802154_trx_modulated_carrier(const void * p_
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert((m_trx_state == TRX_STATE_IDLE) || (m_trx_state == TRX_STATE_FINISHED));
assert(p_transmit_buffer != NULL);
NRF_802154_ASSERT((m_trx_state == TRX_STATE_IDLE) || (m_trx_state == TRX_STATE_FINISHED));
NRF_802154_ASSERT(p_transmit_buffer != NULL);
m_trx_state = TRX_STATE_MODULATED_CARRIER;
@ -2038,7 +2038,7 @@ void nrf_802154_trx_modulated_carrier_restart(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_trx_state == TRX_STATE_MODULATED_CARRIER);
NRF_802154_ASSERT(m_trx_state == TRX_STATE_MODULATED_CARRIER);
// Modulated carrier PPIs are configured without self-disabling
// Triggering RADIO.TASK_DISABLE causes ramp-down -> RADIO.EVENTS_DISABLED -> EGU.TASK -> EGU.EVENT ->
@ -2072,14 +2072,14 @@ void nrf_802154_trx_energy_detection(uint32_t ed_count)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert((m_trx_state == TRX_STATE_FINISHED) || (m_trx_state == TRX_STATE_IDLE));
NRF_802154_ASSERT((m_trx_state == TRX_STATE_FINISHED) || (m_trx_state == TRX_STATE_IDLE));
m_trx_state = TRX_STATE_ENERGY_DETECTION;
ed_count--;
/* Check that vd_count will fit into defined bits of register */
#if defined(RADIO_EDCNT_EDCNT_Msk)
assert( (ed_count & (~RADIO_EDCNT_EDCNT_Msk)) == 0U);
NRF_802154_ASSERT( (ed_count & (~RADIO_EDCNT_EDCNT_Msk)) == 0U);
#endif
nrf_radio_ed_loop_count_set(NRF_RADIO, ed_count);
@ -2152,7 +2152,7 @@ static void irq_handler_ready(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2193,7 +2193,7 @@ static void irq_handler_address(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2206,7 +2206,7 @@ static void irq_handler_bcmatch(void)
uint8_t current_bcc;
uint8_t next_bcc;
assert(m_trx_state == TRX_STATE_RXFRAME);
NRF_802154_ASSERT(m_trx_state == TRX_STATE_RXFRAME);
m_flags.psdu_being_received = true;
@ -2255,7 +2255,7 @@ static void irq_handler_crcerror(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2281,7 +2281,7 @@ static void irq_handler_crcok(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2464,7 +2464,7 @@ static void irq_handler_phyend(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2511,7 +2511,7 @@ static void irq_handler_disabled(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2534,7 +2534,7 @@ static void irq_handler_ccaidle(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2547,7 +2547,7 @@ static void irq_handler_ccabusy(void)
switch (m_trx_state)
{
case TRX_STATE_TXFRAME:
assert(m_transmit_with_cca);
NRF_802154_ASSERT(m_transmit_with_cca);
if (m_remaining_cca_attempts > 1)
{
@ -2623,7 +2623,7 @@ static void irq_handler_ccabusy(void)
break;
default:
assert(false);
NRF_802154_ASSERT(false);
}
nrf_802154_log_function_exit(NRF_802154_LOG_VERBOSITY_LOW);
@ -2633,7 +2633,7 @@ static void irq_handler_edend(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_trx_state == TRX_STATE_ENERGY_DETECTION);
NRF_802154_ASSERT(m_trx_state == TRX_STATE_ENERGY_DETECTION);
uint8_t ed_sample = nrf_radio_ed_sample_get(NRF_RADIO);
@ -2650,7 +2650,7 @@ static void irq_handler_sync(void)
{
nrf_802154_log_function_enter(NRF_802154_LOG_VERBOSITY_LOW);
assert(m_trx_state == TRX_STATE_RXFRAME);
NRF_802154_ASSERT(m_trx_state == TRX_STATE_RXFRAME);
nrf_802154_trx_receive_frame_prestarted();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2019, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -32,7 +32,7 @@
*
*/
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stddef.h>
#include <string.h>
@ -77,7 +77,7 @@ void nrf_802154_tx_work_buffer_original_frame_update(
uint8_t * p_original_frame,
nrf_802154_transmitted_frame_props_t * p_frame_props)
{
assert(p_frame_props != NULL);
NRF_802154_ASSERT(p_frame_props != NULL);
p_frame_props->is_secured = m_is_secured;
p_frame_props->dynamic_data_is_set = m_is_dynamic_data_updated;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2017, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -35,7 +35,7 @@
#ifndef NRF_802154_UTILS_H__
#define NRF_802154_UTILS_H__
#include <assert.h>
#include "nrf_802154_assert.h"
#include <stdint.h>
#include <string.h>
#include "nrfx.h"
@ -190,7 +190,7 @@ static inline uint64_t NRF_802154_US_TO_RTC_TICKS(uint64_t time)
value down to RTC ticks.*/
// ceil((time * (2^56 / 15625)) >> (56 - 9))
assert(t1 <= 1453125);
NRF_802154_ASSERT(t1 <= 1453125);
u1 = (t1 * 0x431bde82d7b); // (time * (2^56 / 15625))
u1 += 0x7fffffffffff; // round up
u1 >>= 47; // ceil(u1 >> (56 - 9))

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@ -34,7 +34,7 @@
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include "nrf_802154_assert.h"
#ifndef NRF_802154_UTILS_BYTEORDER_H
#define NRF_802154_UTILS_BYTEORDER_H
@ -60,7 +60,7 @@
*/
static inline void host_64_to_little(uint64_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
memcpy(p_buffer, &value, sizeof(uint64_t));
}
@ -71,7 +71,7 @@ static inline void host_64_to_little(uint64_t value, uint8_t * p_buffer)
*/
static inline void host_32_to_little(uint32_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
memcpy(p_buffer, &value, sizeof(uint32_t));
}
@ -82,7 +82,7 @@ static inline void host_32_to_little(uint32_t value, uint8_t * p_buffer)
*/
static inline void host_24_to_little(uint32_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
memcpy(p_buffer, &value, 3);
}
@ -93,7 +93,7 @@ static inline void host_24_to_little(uint32_t value, uint8_t * p_buffer)
*/
static inline void host_16_to_little(uint16_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
memcpy(p_buffer, &value, sizeof(uint16_t));
}
@ -105,7 +105,7 @@ static inline void host_16_to_little(uint16_t value, uint8_t * p_buffer)
*/
static inline uint64_t little_64_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint64_t value = 0;
@ -122,7 +122,7 @@ static inline uint64_t little_64_to_host(uint8_t * p_buffer)
*/
static inline uint32_t little_32_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint32_t value = 0;
@ -139,7 +139,7 @@ static inline uint32_t little_32_to_host(uint8_t * p_buffer)
*/
static inline uint32_t little_24_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint32_t value = 0;
@ -156,7 +156,7 @@ static inline uint32_t little_24_to_host(uint8_t * p_buffer)
*/
static inline uint16_t little_16_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint16_t value = 0;
@ -172,7 +172,7 @@ static inline uint16_t little_16_to_host(uint8_t * p_buffer)
*/
static inline void host_64_to_big(uint64_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint8_t shift = (sizeof(uint64_t) - 1) * 8;
@ -189,7 +189,7 @@ static inline void host_64_to_big(uint64_t value, uint8_t * p_buffer)
*/
static inline void host_32_to_big(uint32_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint8_t shift = (sizeof(uint32_t) - 1) * 8;
@ -206,7 +206,7 @@ static inline void host_32_to_big(uint32_t value, uint8_t * p_buffer)
*/
static inline void host_24_to_big(uint32_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint8_t shift = (sizeof(uint32_t) - 2) * 8;
@ -223,7 +223,7 @@ static inline void host_24_to_big(uint32_t value, uint8_t * p_buffer)
*/
static inline void host_16_to_big(uint16_t value, uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint8_t shift = (sizeof(uint16_t) - 1) * 8;
@ -241,7 +241,7 @@ static inline void host_16_to_big(uint16_t value, uint8_t * p_buffer)
*/
static inline uint64_t big_64_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint64_t value = 0;
@ -261,7 +261,7 @@ static inline uint64_t big_64_to_host(uint8_t * p_buffer)
*/
static inline uint32_t big_32_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint32_t value = 0;
@ -281,7 +281,7 @@ static inline uint32_t big_32_to_host(uint8_t * p_buffer)
*/
static inline uint32_t big_24_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint32_t value = 0;
@ -301,7 +301,7 @@ static inline uint32_t big_24_to_host(uint8_t * p_buffer)
*/
static inline uint16_t big_16_to_host(uint8_t * p_buffer)
{
assert(p_buffer != NULL);
NRF_802154_ASSERT(p_buffer != NULL);
uint16_t value = 0;

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
# Copyright (c) 2021, Nordic Semiconductor ASA
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
@ -57,6 +57,17 @@ target_sources(nrf-802154-serialization
src/nrf_802154_spinel_dec.c
)
if(CONFIG_NATIVE_LIBRARY)
# The spinel header defines the spinel API, with SPINEL_API_EXTERN, as externally linkable.
# When building Zephyr for the native_simulator targets (including bsim targets) it would
# cause the linker to find duplicates when building the final executable if multiple MCUs
# include each this code. We fix this by having the native_simulator build make those symbols
# local before linking the final executable.
set_property(TARGET native_simulator APPEND PROPERTY
LOCALIZE_EXTRA_OPTIONS "--localize-symbol=spinel*"
)
endif()
if (SER_HOST)
target_sources(nrf-802154-serialization
PRIVATE

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2021, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 - 2023, Nordic Semiconductor ASA
* Copyright (c) 2020, Nordic Semiconductor ASA
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause

Some files were not shown because too many files have changed in this diff Show More