Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches

◆ SWAP_CSR

#define SWAP_CSR (   REG,
  VAL 
)
Value:
({ \
unsigned long __tmp; \
asm volatile ("csrrw %0, " REG ", %1" : "=r"(__tmp) : "rK"(VAL)); \
__tmp; })