Zephyr API Documentation
4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Macros
reg.h File Reference
Go to the source code of this file.
Macros
#define
reg_read
(reg)
#define
reg_write
(reg, val)
Macro Definition Documentation
◆
reg_read
#define reg_read
(
reg
)
Value:
({ \
register
unsigned
long
__rv; \
__asm__
volatile
(
"mv %0, "
STRINGIFY
(reg) :
"=r"
(__rv)); \
__rv; \
})
STRINGIFY
#define STRINGIFY(s)
Definition
common.h:134
◆
reg_write
#define reg_write
(
reg
,
val
)
Value:
({ __asm__(
"mv "
STRINGIFY
(reg)
", %0"
: :
"r"
(val)); })
zephyr
arch
riscv
reg.h
Generated on Sat Nov 16 2024 04:55:04 for Zephyr API Documentation by
1.12.0