elixir-circuits / circuits_uart

Discover and use UARTs and serial ports in Elixir
Apache License 2.0
188 stars 48 forks source link

Add helper function for finding UARTs and getting their configurations #42

Closed fhunleth closed 6 years ago

fhunleth commented 6 years ago

I had an issue where I was doing a lot of Nerves.UART work via the iex prompt on a device. I started losing my UART pids and wasn't sure which UARTs to kill. I'm not sure that this is a perfect way of solving this problem, but it seems to help. Also adding a function to get the current UART's configuration seemed like a natural API to have even though I've gotten along without it for a long time.