mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-04 07:31:58 +00:00
Added a new simulated board, which models the NRF52832 SOC. Its main use is for workstation testing and simulation of the BLE stack and any application which relies mostly on it. It uses BabbleSim (http://Babblesim.github.io) for the radio simulation. And the NRF52 HW models hosted in that same GitHub organization: https://github.com/BabbleSim/ext_NRF52_hw_models For speed it uses the POSIX arch to (not) emulate the CPU. It uses Vanilla Zephyr, with a couple of configuration differences: * It uses (like other POSIX arch boards) the system libC * It does not use the nrfx hosted by Zehpyr in ext/, but the one provided by the HW models. Otherwise it relies in the same drivers as the real NRF52 boards. Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
37 lines
720 B
C
37 lines
720 B
C
/*
|
|
* Copyright (c) 2017 Oticon A/S
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#ifndef _TIME_MACHINE_H
|
|
#define _TIME_MACHINE_H
|
|
|
|
#include "bs_types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"{
|
|
#endif
|
|
|
|
bs_time_t tm_get_abs_time(void);
|
|
bs_time_t tm_get_hw_time_from_abs_time(bs_time_t abstime);
|
|
bs_time_t tm_get_hw_time(void);
|
|
bs_time_t tm_hw_time_to_abs_time(bs_time_t hwtime);
|
|
bs_time_t tm_abs_time_to_hw_time(bs_time_t abstime);
|
|
|
|
void tm_reset_hw_times(void);
|
|
|
|
void tm_find_next_timer_to_trigger(void);
|
|
bs_time_t tm_get_next_timer_abstime(void);
|
|
|
|
void tm_update_last_phy_sync_time(bs_time_t abs_time);
|
|
|
|
void tm_set_phy_max_resync_offset(bs_time_t offset_in_us);
|
|
|
|
void tm_run_forever(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|