Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
395 B

/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "posix_native_task.h"
#include "nsi_timer_model.h"
#if defined(CONFIG_NATIVE_SIM_SLOWDOWN_TO_REAL_TIME)
static void set_realtime_default(void)
{
hwtimer_set_real_time_mode(true);
}
NATIVE_TASK(set_realtime_default, PRE_BOOT_1, 0);
#endif /* CONFIG_NATIVE_SIM_SLOWDOWN_TO_REAL_TIME */