mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 03:35:19 +00:00
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>
17 lines
323 B
C
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;
|
|
}
|