riscv

Macro read_csr

source
macro_rules! read_csr {
    ($csr_number:literal) => { ... };
}
Expand description

Convenience macro to wrap the csrrs assembly instruction for reading a CSR register.

This macro should generally not be called directly.

Instead, use the read_csr_as or read_csr_as_usize macros.