File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ _Cheers,
28
28
- 教程的第一到五章是基础内容,只能运行在` QEMU ` 上。
29
29
- 到了[ 第六章] 时(06_drivers_gpio_uart),你可以在树莓派上加载和运行内核并通过` UART ` 来观察输出结果。
30
30
- 虽然这些教程是以树莓派 3 和 4 为试验对象,但代码是模块化的,所以应该容易移植到其他 CPU 架构的开发板上。
31
- - 我希望会有人有机会去实现** RISC-v ** 架构的代码。
32
- - 我推荐使用[ Visual Studio Code] ,配置[ Rust Language Server ] 插件开发代码。
31
+ - 我希望会有人有机会去实现** RISC-V ** 架构的代码。
32
+ - 我推荐使用[ Visual Studio Code] ,配置[ Rust Analyzer ] 插件开发代码。
33
33
- 除了文本教程之外,也可以用` make doc ` 命令利用网页的优势来浏览代码。
34
34
35
- [ visual studio code ] : https://code.visualstudio.com
36
- [ rust language server ] : https://github.com/ rust-lang/rls
35
+ [ Visual Studio Code ] : https://code.visualstudio.com
36
+ [ Rust Analyzer ] : https://rust-analyzer.github.io
37
37
38
38
## 🚀 易用性
39
39
@@ -59,12 +59,16 @@ curl https://sh.rustup.rs -sSf \
59
59
| \
60
60
sh -s -- \
61
61
--default-toolchain nightly-2019-12-20 \
62
- --component rust-src llvm-tools-preview rustfmt rls rust-analysis
62
+ --component rust-src llvm-tools-preview rustfmt
63
63
64
64
source $HOME /.cargo/env
65
65
cargo install cargo-xbuild cargo-binutils
66
66
```
67
67
68
+ 如果你使用 ` Visual Studio Code ` ,我强烈推荐你安装[ Rust Analyzer 扩展] 。
69
+
70
+ [ Rust Analyzer 扩展 ] : https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer
71
+
68
72
## 📟 USB 串行输出
69
73
70
74
由于教程中开发的内核是在真实的硬件上运行的,因此强烈建议您使用 USB 串行调试线来进行试验。连接后调试线会为树莓派供电,
You can’t perform that action at this time.
0 commit comments