Skip to content

Commit e58dc5d

Browse files
hs0225yichoi
authored andcommitted
Update documents (#999)
Fixed the mistake and updated the additional information IoT.js-DCO-1.0-Signed-off-by: Hosung Kim [email protected]
1 parent 03dfe5f commit e58dc5d

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

docs/api/IoT.js-API-ADC.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ The following table shows ADC module APIs available for each platform.
44

55
| | Linux<br/>(Ubuntu) | Raspbian<br/>(Raspberry Pi) | NuttX<br/>(STM32F4-Discovery) |
66
| :---: | :---: | :---: | :---: |
7-
| adc.open | O | O | O |
8-
| adcpin.read | O | O | O |
9-
| adcpin.readSync | O | O | O |
10-
| adcpin.close | O | O | O |
11-
| adcpin.closeSync | O | O | O |
7+
| adc.open | O | X | O |
8+
| adcpin.read | O | X | O |
9+
| adcpin.readSync | O | X | O |
10+
| adcpin.close | O | X | O |
11+
| adcpin.closeSync | O | X | O |
1212

1313

1414
## Class: ADC

docs/build/Build-for-RPi2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ This script gives you `build/arm-linux/release/iotjs/iotjs` or `build/arm-linux/
115115
Copy this binary with your favorite tool or `scp` like below.
116116

117117
``` bash
118-
scp build/arm-linux/release/iotjs/iotjs pi@(your RPi2 IP):/home/pi/.
118+
scp build/arm-linux/release/bin/iotjs pi@(your RPi2 IP):/home/pi/.
119119
```
120120

121121
Lastly, open a shell and run with your test program.

docs/targets/nuttx/stm32f4dis/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Followings are the options to set:
130130

131131
* For `i2c` module
132132
* Enable `System Type -> STM32 Peripheral Support -> I2C1`
133+
* Enable `Device Drivers -> I2C Driver Support`
133134

134135
#### 4. Build IoT.js for NuttX
135136

@@ -151,8 +152,16 @@ Connect Mini-USB for power supply and connect Micro-USB for `NSH` console.
151152

152153
To configure `stlink` utility for flashing, follow the instructions [here](https://github.com/texane/stlink#build-from-sources).
153154

155+
To install,
156+
```bash
157+
# assuming you are in stlink folder
158+
$ cd stlink
159+
$ make
160+
```
161+
154162
To flash,
155163
```bash
156164
# assuming you are in nuttx folder
157-
$ sudo ../stlink/build/st-flash write nuttx.bin 0x8000000
165+
$ cd nuttx
166+
$ sudo ../stlink/build/Release/st-flash write nuttx.bin 0x8000000
158167
```

0 commit comments

Comments
 (0)