libmetal  v2024.05.0
cpu.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*
8  * @file hosted/cpu.h
9  * @brief Hosted environment CPU specific primitives
10  */
11 
12 #include <metal/sys.h>
13 
14 #ifndef __METAL_HOSTED_CPU__H__
15 #define __METAL_HOSTED_CPU__H__
16 
17 static inline void metal_cpu_yield(void)
18 {
19  metal_wait_usec(10);
20 }
21 
22 #endif /* __METAL_HOSTED_CPU__H__ */
static void metal_cpu_yield(void)
Definition: cpu.h:17
static void metal_wait_usec(uint32_t usec_to_wait)
Definition: sys.h:43