rtic-scope / cargo-rtic-scope

Non-intrusive ITM tracing/replay toolset for RTIC programs with nanosecond timestamp accuracy.
16 stars 4 forks source link

Add support for other operating systems #142

Open ryan-summers opened 2 years ago

ryan-summers commented 2 years ago

Currently, the various packages of rtic-scope require *nix IOTCTL commands for communicating with the TTY and there's some unix socket streams used as a mechanism to move data between the various sources and sinks.

It would be desirable to remove all uses of os-primitives to develop rtic-scope to be platform-independent. Given that probe-rs and other core utilities run on Windows and other supported OSes, it seems like thsi shouldn't be too difficult to refactor

tmplt commented 2 years ago

The largest hurdle (if one at all; I have yet to dive back into it) is refactoring the direct ioctl calls out. Its purpose is to mimic the configuration that screen /path/to/dev <baud rate> applies, specifically for FT232 variants.

tmplt commented 1 year ago

The serial module that calls ioctl (upstream in itm) can probably be replaced completely with serialport.