__write_csr
In this section:
Syntax
unsigned int __write_csr(unsigned intreg, unsigned longvalue);
Description
Writes value to the control and status register (CSR) reg and returns the original value of the register.
The register reg can be specified by a number, or by using preprocessor symbols named _CSR_xxx, defined in the file intrinsics.h.
Note
To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.