Skip to content

Commit

Permalink
update to 139c00e
Browse files Browse the repository at this point in the history
  • Loading branch information
Narukara committed Sep 1, 2023
1 parent 1664ccc commit 29b0f24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
这里是 https://github.com/esp-rs/book 的简体中文翻译

目前进度:正在施工。跟踪到 036ee41
目前进度:正在施工。跟踪到 139c00e

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The first line is an import that defines the ESP-IDF entry point when the root c

Then, we have a usual main function with a few lines on it:
- A call to `esp_idf_sys::link_patches` function that makes sure that a few patches to the ESP-IDF which are implemented in Rust are linked to the final executable
- We print on our console the famous "Hello World!"
- We print on our console the famous "Hello, world!"

## Running the Code

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# `esp-template` 简介

既然我们已经了解了如何[生成一个 `no_std` 项目][generate-no-std],让我们看看生成的项目里有哪些东西,尝试理解它的各个部分,并运行它。
既然我们已经了解了如何[生成一个 `no_std` 项目][generate-no-std],让我们看看生成的项目里有哪些东西,
尝试理解它的各个部分,并运行它。

[generate-no-std]: ./index.md

Expand Down Expand Up @@ -59,7 +60,7 @@
```rust,ignore
1 #![no_std]
2 #![no_main]
```
```

- `#![no_std]`
- 用于告知 Rust 编译器这段代码不使用 `libstd`
Expand Down Expand Up @@ -124,7 +125,7 @@
- 没有这段代码的话,SoC 会在一段时间后重启
- 还有一种防止重启的方法:[][wtd-feeding]看门狗
- `println!("Hello world!");`
- 打印 “Hello World!”
- 打印 “Hello world!”
- `loop {}`
- 因为这个函数不应该返回,我们在一个死循环中不执行任何操作

Expand Down Expand Up @@ -171,7 +172,7 @@ Commands:
Hello world!
```

这些是第一和第二阶段 bootloader 产生的信息,然后是我们的 “Hello World” 信息!
这些是第一和第二阶段 bootloader 产生的信息,然后是我们的 “Hello world” 信息!

这就是这段代码做的事情。

Expand Down

0 comments on commit 29b0f24

Please sign in to comment.