Skip to content

Commit

Permalink
[fix] cargo doc error
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Dec 18, 2024
1 parent 5861a3b commit a6e3acd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

RISC-V platform-level interrupt controller (PLIC) register definitions and basic operations.

The official documentation: <https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc/>
The official documentation: <https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc/>

Ref: <https://github.com/YdrMaster/plic>
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! RISC-V Platform-Level Interrupt Controller
//! https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc
//! <https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc>
#![no_std]
#![feature(const_option)]
#![feature(const_nonnull_new)]
Expand Down Expand Up @@ -89,6 +89,7 @@ pub trait HartContext {
fn index(self) -> usize;
}

/// Platform-Level Interrupt Controller.
pub struct Plic {
base: NonNull<PLICRegs>,
}
Expand Down

0 comments on commit a6e3acd

Please sign in to comment.