llvm-mos-sdk
cpu.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Adrian "asie" Siekierka
3  *
4  * Licensed under the Apache License, Version 2.0 with LLVM Exceptions,
5  * See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
6  * information.
7  */
8 
9 #ifndef _RPC8E_CPU_H_
10 #define _RPC8E_CPU_H_
11 
12 #include <stdbool.h>
13 #include <stdint.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
28 static inline void rpc8e_cpu_wait(void) {
29  __attribute__((leaf)) asm volatile("wai");
30 }
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif /* _RPC8E_CPU_H_ */