loongArch64 0.2.6

loongArch64 support for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use bit_field::BitField;
impl_define_csr!(
    Ticlr,
    "Timer Interrupt Clearing \n\
                        The software clears the timed interrupt signal set by the timer by writing 1 to bit 0 of this register."
);

impl_read_csr!(0x44, Ticlr);

impl Ticlr {}

pub fn clear_timer_interrupt() {
    set_csr_loong_bit!(0x44, 0, true);
}