elixir-circuits / circuits_uart

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

Document how Elixir is interface with C #24

Closed pallix closed 6 years ago

pallix commented 7 years ago

Hi,

it would be great to put in the FAQ how the program is interfaced with C (port / NIFS / C node) and the security guarantees with regards to the supervisor if the C code crashes. If I understand correctly ports are used.

fhunleth commented 6 years ago

Ports are indeed used to isolate the Erlang VM from any weirdness when interacting with the serial port. Closing since I haven't had time to work on nerves_uart recently and I'm not quite sure what to add that's not already documented in the Erlang and Elixir docs. PRs are certainly welcome.