Skip to main content

IAR Embedded Workbench for RISC-V 3.40

__set_bits_csr

In this section:
Syntax
unsigned int __set_bits_csr(unsigned int reg, unsigned long value);
Description

Sets bits in 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.