__read_csr
In this section:
Syntax
unsigned int __read_csr(unsigned int reg);Description
Reads the control and status register (CSR) reg.
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.