Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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; \
})
#define STRINGIFY(s)
Definition common.h:134

◆ reg_write

#define reg_write ( reg,
val )
Value:
({ __asm__("mv " STRINGIFY(reg) ", %0" : : "r"(val)); })