nrf_common: Add replacement for nrf_dma_accessible_check()

Add also a replacement for the HAL function
nrf_dma_accessible_check()

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-01-17 14:00:11 +01:00
parent feb91bb194
commit c0d28cc737
4 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,6 @@
src/nrfx/drivers/nrfx_common.c
src/nrfx/hal/nrf_ccm.c
src/nrfx/hal/nrf_common.c
src/nrfx/hal/nrf_rtc.c
src/nrfx/hal/nrf_gpio.c
src/nrfx/hal/nrf_temp.c

View File

@ -1,5 +1,6 @@
src/nrfx/drivers/nrfx_common.c
src/nrfx/hal/nrf_clock.c
src/nrfx/hal/nrf_common.c
src/nrfx/hal/nrf_dppi.c
src/nrfx/hal/nrf_egu.c
src/nrfx/hal/nrf_hack.c

View File

@ -2,6 +2,7 @@ src/nrfx/drivers/nrfx_common.c
src/nrfx/hal/nrf_aar.c
src/nrfx/hal/nrf_ccm.c
src/nrfx/hal/nrf_clock.c
src/nrfx/hal/nrf_common.c
src/nrfx/hal/nrf_dppi.c
src/nrfx/hal/nrf_ecb.c
src/nrfx/hal/nrf_egu.c

16
src/nrfx/hal/nrf_common.c Normal file
View File

@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*
* Note that the function prototypes are taken from the NRFx HAL
*/
#include <stdbool.h>
bool nrf_dma_accessible_check(void const * p_reg, void const * p_object)
{
(void)p_reg;
(void)p_object;
return true; /* No restrictions in simulation */
}