Skip to content

Commit

Permalink
Merge pull request #512 from nascs/uart-com_x2l
Browse files Browse the repository at this point in the history
Uart com x2l
  • Loading branch information
peterwang2050 authored Oct 21, 2024
2 parents 29c376d + 5a1ce72 commit f41e636
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions docs/common/dev/_pico-uart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ make -j$(nproc)

- 终端输入以下命令,查看串口输出

```bash
sudo minicom -D /dev/ttyS4 -b 115200
```
<pre>sudo minicom -D /dev/{props.tty_num} -b 115200</pre>

- 验证

Expand Down
2 changes: 1 addition & 1 deletion docs/x/x2l/software-development/c_sdk_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import UART from "../../../common/dev/\_pico-uart.mdx";

<PWM flash_url="./flash" product_name="Radxa X2L" led_pin="PIN_5" />

<UART />
<UART flash_url="./flash" tty_num="ttyS0"/>

#### CPU 通过 UART 来控制 RP2040 的 40-PIN GPIO

Expand Down
2 changes: 1 addition & 1 deletion docs/x/x4/software/c_sdk_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import INTEL_UART from "../../../common/dev/\_pico-gpio-controlled-by-intel.mdx"
<PoE flash_url="./flash" product_name="Radxa X4" poe_name="瑞莎 25W PoE+ HAT X4 专用款" poe_img="/img/x/x4/25w_poe_plus_for_x4_04.webp" />
</TabItem>
<TabItem value="UART">
<UART flash_url="./flash" />
<UART flash_url="./flash" tty_num="ttyS4" />
</TabItem>
</Tabs>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ After successful compilation, a file named hello_uart.uf2 will be created in the

- Enter the following command in the terminal to view the serial port output

```bash
sudo minicom -D /dev/ttyS4 -b 115200
```
<pre>sudo minicom -D /dev/{props.tty_num} -b 115200</pre>

- Verification

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ In order to operate the IO resources on RP2040, we need a complete software envi

<PWM flash_url="./flash" product_name="Radxa X2L" led_pin="PIN_5" />

<UART />
<UART flash_url="./flash" tty_num="ttyS0"/>

#### Communication between CPU and RP2040

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In order to operate the IO resources on RP2040, we need a complete software envi
<PoE flash_url="./flash" product_name="Radxa X4" poe_name="Radxa 25W PoE+ HAT for X4" poe_img="/img/x/x4/25w_poe_plus_for_x4_04.webp" />
</TabItem>
<TabItem value="UART">
<UART flash_url="./flash" />
<UART flash_url="./flash" tty_num="ttyS4" />
</TabItem>
</Tabs>

Expand Down

0 comments on commit f41e636

Please sign in to comment.