Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FL-1885] USB-UART bridge #778

Merged
merged 7 commits into from
Oct 21, 2021
Merged

[FL-1885] USB-UART bridge #778

merged 7 commits into from
Oct 21, 2021

Conversation

nminaylov
Copy link
Member

@nminaylov nminaylov commented Oct 20, 2021

What's new

  • USB-UART bridge application
  • LPUART driver

Verification

  • Go to GPIO->USB-UART bridge
  • Set port configuration and select enable to start bridge
  • Short Rx/Tx or C0/C1 (depending on selected port)
  • Connect to VCP port 0/1 (depending on selected channel), data sent to console should return back
  • Stop bridge by selecting disable or by pressing back

Checklist (do not modify)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

@github-actions
Copy link

github-actions bot commented Oct 20, 2021

Click here to flash the 39d22aa6 version of this branch via WebUSB.

@github-actions
Copy link

Please fix following code formatting errors:

./applications/gpio/scenes/gpio_scene_usb_uart.c:110:45: error: code should be clang-formatted [-Wclang-format-violations]
static void usb_uart_worker(void* context) {
                                            ^
./applications/gpio/scenes/gpio_scene_usb_uart.c:125:7: error: code should be clang-formatted [-Wclang-format-violations]
    if (usb_uart->cfg_cur.vcp_ch == 0) {
      ^
./applications/gpio/scenes/gpio_scene_usb_uart.c:135:44: error: code should be clang-formatted [-Wclang-format-violations]
        if(usb_uart->cfg_cur.baudrate != 0) 
                                           ^
./applications/gpio/scenes/gpio_scene_usb_uart.c:142:44: error: code should be clang-formatted [-Wclang-format-violations]
        if(usb_uart->cfg_cur.baudrate != 0) 
                                           ^
./applications/gpio/scenes/gpio_scene_usb_uart.c:175:7: error: code should be clang-formatted [-Wclang-format-violations]
    if (usb_uart->cfg_cur.vcp_ch == 0)
      ^
./applications/gpio/scenes/gpio_scene_usb_uart.c:175:39: error: code should be clang-formatted [-Wclang-format-violations]
    if (usb_uart->cfg_cur.vcp_ch == 0)
                                      ^

You might want to run docker compose exec dev /syntax_check.sh for an auto-fix.

@nminaylov nminaylov marked this pull request as ready for review October 21, 2021 13:06
@nminaylov nminaylov marked this pull request as draft October 21, 2021 13:58
@nminaylov nminaylov marked this pull request as ready for review October 21, 2021 14:24
skotopes
skotopes previously approved these changes Oct 21, 2021
@skotopes skotopes merged commit 88cee46 into dev Oct 21, 2021
@skotopes skotopes deleted the nm/1885_usb_uart branch October 21, 2021 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants