We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaf6f88 commit 8b32fccCopy full SHA for 8b32fcc
07-hardware-interrupts.md
@@ -75,7 +75,7 @@ ACPI -------------> | | 键盘 --------------> | |
75
# in Cargo.toml
76
77
[dependencies]
78
-pic8259_simple = "0.1.1"
+pic8259 = "0.10.0"
79
```
80
81
这个包提供的主要抽象是 [`ChainedPics`] 结构,它表示我们上面看到的「主/从二级可编程中断控制器」布局。基于它的设计,我们可以按以下方式来使用它:
@@ -85,7 +85,7 @@ pic8259_simple = "0.1.1"
85
```rust
86
// in src/interrupts.rs
87
88
-use pic8259_simple::ChainedPics;
+use pic8259::ChainedPics;
89
use spin;
90
91
pub const PIC_1_OFFSET: u8 = 32;
0 commit comments