Skip to content

Commit f985f53

Browse files
Fix bit usage, replace ipid with iprio and fixed documentations
1 parent 71ae94a commit f985f53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

riscv/src/register/mtopi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
read_only_csr! {
2525
/// Machine Top Priority Interrupt Register
2626
Mtopi: 0x7C0,
27-
mask: usize::MAX,
27+
mask: 0x0FFF_FFFF,
2828
}
2929

3030
read_only_csr_field! {
@@ -41,8 +41,8 @@ read_only_csr_field! {
4141
/// Interrupt Priority ID (bits 0..7)
4242
///
4343
/// Represents the priority level of the pending interrupt.
44-
/// Higher numerical values indicate higher priority interrupts.
45-
ipid: [0:7],
44+
/// Lower numerical values indicate higher priority interrupts.
45+
iprio: [0:7],
4646
}
4747

4848
impl Mtopi {

0 commit comments

Comments
 (0)