zephyr/soc/native/inf_clock/native_remap.c
Alberto Escolar Piedras 5efe751240 boards native: Add function to remap embedded address
Add a function which can be used to remap embedded device address,
into addresses which can be used in the simulated native boards.

For the nrf_bsim boards we provide an actual implementation.
For other boards, we provide an optional dummy version which does
nothing.
It is up to each board implementation to decide if they want to
provide one or use the dummy.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-09-26 03:34:26 -04:00

17 lines
323 B
C

/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdbool.h>
#include <zephyr/toolchain.h>
/**
* Dummy version which does nothing
* Boards which do not have a better implementation can use this
*/
__weak bool native_emb_addr_remap(void **addr)
{
return false;
}