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

Have the TUI try to find the board's serial path automatically #6

Open
rrbutani opened this issue May 27, 2022 · 0 comments
Open

Have the TUI try to find the board's serial path automatically #6

rrbutani opened this issue May 27, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rrbutani
Copy link
Member

rrbutani commented May 27, 2022

what

^

We want to support: WSL, Windows, macOS, and Linux.

Here's some prior art from a few years ago.

steps

...

where

branch: feat-...

open questions

baud rate detection, etc. is tricky; also knowing what device types to look for becomes device specific again

I'm thinking that we have device crates (i.e. utp-tm4c) provide a host counterpart (i.e. utp-tm4c-device-info) that provides:

  • baud rate
  • device short name (i.e. tm4c)
  • URL/repo for binaries for the board (for later)
  • the pinout (documentation; it'd be neat to show this in the TUI too though...)
  • host-only functions that, when run, try to find the device of the given type

(we should also eventually make a template utp device repo, etc.)

We can then go have a tui-devices crate that pulls in all of these, etc.
And have the tui support --device <short name> in addition to the --device board=<path>:baud_rate.

@rrbutani rrbutani self-assigned this May 27, 2022
@rrbutani rrbutani added the enhancement New feature or request label May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant