1 /* 2 * Copyright (c) 2017 Oticon A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _POSIX_SOC_INF_CLOCK_SOC_H 8 #define _POSIX_SOC_INF_CLOCK_SOC_H 9 10 #include <stdbool.h> 11 #include <zephyr/toolchain.h> 12 #include "board_soc.h" 13 #include "posix_soc.h" 14 #include "posix_native_task.h" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 void posix_soc_clean_up(void); 21 22 /** 23 * Remap an embedded device address, into an address which can be used in the simulated native 24 * board. 25 * 26 * If the provided address is not in a range known to this function it will not be modified and the 27 * function will return false. 28 * Otherwise the provided address pointer will be modified, and true returned. 29 * 30 * Note: The SOC provides a dummy version of this function which does nothing, 31 * so all boards will have an implementation. 32 * It is optional for boards to provide one if desired. 33 */ 34 bool native_emb_addr_remap(void **addr); 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* _POSIX_SOC_INF_CLOCK_SOC_H */ 41