Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions nrf_802154/common/include/nrf_802154_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,6 @@ extern "C" {
#define NRF_802154_ACK_TIMEOUT_ENABLED 1
#endif

/**
* @def NRF_802154_ACK_TIMEOUT_DEFAULT_TIMEOUT
*
* The default timeout in microseconds (us) for the ACK timeout feature.
*
*/
#ifndef NRF_802154_ACK_TIMEOUT_DEFAULT_TIMEOUT
#define NRF_802154_ACK_TIMEOUT_DEFAULT_TIMEOUT 7000
#endif

/**
* @def NRF_802154_PRECISE_ACK_TIMEOUT_DEFAULT_TIMEOUT
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ static int8_t extended_addr_compare(const uint8_t * p_first_addr, const uint8_t
// Compare extended address in two steps to prevent unaligned access error.
for (uint32_t i = 0; i < EXTENDED_ADDRESS_SIZE / sizeof(uint32_t); i++)
{
first_addr = *(uint32_t *)(p_first_addr + (i * sizeof(uint32_t)));
second_addr = *(uint32_t *)(p_second_addr + (i * sizeof(uint32_t)));
first_addr = *(const uint32_t *)(p_first_addr + (i * sizeof(uint32_t)));
second_addr = *(const uint32_t *)(p_second_addr + (i * sizeof(uint32_t)));

if (first_addr < second_addr)
{
Expand All @@ -148,8 +148,8 @@ static int8_t extended_addr_compare(const uint8_t * p_first_addr, const uint8_t
*/
static int8_t short_addr_compare(const uint8_t * p_first_addr, const uint8_t * p_second_addr)
{
uint16_t first_addr = *(uint16_t *)(p_first_addr);
uint16_t second_addr = *(uint16_t *)(p_second_addr);
uint16_t first_addr = *(const uint16_t *)(p_first_addr);
uint16_t second_addr = *(const uint16_t *)(p_second_addr);

if (first_addr < second_addr)
{
Expand Down
6 changes: 3 additions & 3 deletions nrf_802154/driver/src/nrf_802154_debug_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ static void radio_event_gpio_toggle_init(void)

nrf_ppi_channel_endpoint_setup(NRF_PPI,
(nrf_ppi_channel_t)PPI_DBG_RADIO_EVT_END,
(uint32_t)&NRF_RADIO->EVENTS_END,
nrf_radio_event_address_get(NRF_RADIO, NRF_RADIO_EVENT_END),
nrf_gpiote_task_address_get(NRF_GPIOTE, NRF_GPIOTE_TASK_OUT_0));
nrf_ppi_channel_endpoint_setup(NRF_PPI,
(nrf_ppi_channel_t)PPI_DBG_RADIO_EVT_DISABLED,
(uint32_t)&NRF_RADIO->EVENTS_DISABLED,
nrf_radio_event_address_get(NRF_RADIO, NRF_RADIO_EVENT_DISABLED),
nrf_gpiote_task_address_get(NRF_GPIOTE, NRF_GPIOTE_TASK_OUT_1));
nrf_ppi_channel_endpoint_setup(NRF_PPI,
(nrf_ppi_channel_t)PPI_DBG_RADIO_EVT_READY,
(uint32_t)&NRF_RADIO->EVENTS_RXREADY,
nrf_radio_event_address_get(NRF_RADIO, NRF_RADIO_EVENT_RXREADY),
nrf_gpiote_task_address_get(NRF_GPIOTE, NRF_GPIOTE_TASK_OUT_2));

nrf_ppi_channel_enable(NRF_PPI, (nrf_ppi_channel_t)PPI_DBG_RADIO_EVT_END);
Expand Down
11 changes: 11 additions & 0 deletions nrf_802154/zephyr/Kconfig.nrfxlib
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,15 @@ config NRF_802154_CCAIDLE_TO_TXEN_EXTRA_TIME_US
configuration macro of the nRF 802.15.4 Radio Driver.
Please refer to the documentation of that macro.

config NRF_802154_ACK_TIMEOUT_CUSTOM_US
int "nRF 802.15.4 ACK timeout"
default 0
range 0 2000
help
Set the custom value of ACK timeout in the nRF 802.15.4 Radio Driver module.
It is not recommended to change this setting for anything but testing purposes.
Setting this value too low will cause the Radio Driver to never receive ACK frames
and setting it too high will increase current consumption. Set this value to 0 to
use the default and recommended value of the ACK timeout.

endif # NRF_802154_RADIO_DRIVER || NRF_802154_SERIALIZATION