Skip to content

Commit ee1d789

Browse files
authored
Merge pull request #178 from heyuanjie87/last
[doc.machine]标注未实现的接口
2 parents 743d3dc + 4d16806 commit ee1d789

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

docs/spec-librarys/machine.md

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
##### **machine.info**()
1212
显示关于系统介绍和内存占用等信息。
1313

14-
##### **machine.reset**()
14+
##### **machine.reset**() 注:暂未实现
1515
重启设备,类似于按下复位按钮。
1616

17-
##### **machine.reset_cause**()
17+
##### **machine.reset_cause**() 注:暂未实现
1818
获得复位的原因,查看可能的返回值的常量。
1919

2020
#### 中断相关函数
@@ -30,31 +30,11 @@
3030
##### **machine.freq**()
3131
返回 `CPU` 的运行频率。
3232

33-
##### **machine.idle**()
33+
##### **machine.idle**() 注:暂未实现
3434
阻断给 `CPU` 的时钟信号,在较短或者较长的周期里减少功耗。当中断发生时,外设将继续工作。
3535

36-
##### **machine.sleep**()
36+
##### **machine.sleep**() 注:暂未实现
3737
停止 `CPU` 并禁止除了 `WLAN` 之外的所有外设。系统会从睡眠请求的地方重新恢复工作。为了确保唤醒一定会发生,应当首先配置中断源。
3838

39-
##### **machine.deepsleep**()
39+
##### **machine.deepsleep**() 注:暂未实现
4040
停止 `CPU` 和所有外设(包括网络接口)。执行从主函数中恢复,就像被复位一样。复位的原因可以检查 `machine.DEEPSLEEP` 参数获得。为了确保唤醒一定会发生,应该首先配置中断源,比如一个引脚的变换或者 `RTC` 的超时。
41-
42-
### 常数
43-
44-
- `IRQ` 唤醒值
45-
#### **machine.IDLE**
46-
#### **machine.SLEEP**
47-
#### **machine.DEEPSLEEP**
48-
49-
- 复位
50-
#### **machine.PWRON_RESET **
51-
#### **machine.HARD_RESET **
52-
#### **machine.WDT_RESET **
53-
#### **machine.DEEPSLEEP_RESET **
54-
#### **machine.SOFT_RESET**
55-
56-
- 唤醒
57-
#### **machine.WLAN_WAKE**
58-
#### **machine.PIN_WAKE**
59-
#### **machine.RTC_WAKE**
60-

0 commit comments

Comments
 (0)