AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

Refactor ESP32 code into IDF Components

Open fadushin opened this issue 3 years ago • 0 comments

The following Nifs and Ports should be moved into their own directories and moved into the components directory, instead of being in the main directory:

  • gpio_driver
  • spi_driver
  • i2c_driver
  • uart_driver
  • socket_driver
  • ledc_nif
  • nvs_nif

We should also consider normalizing the naming conventions for these ports and nifs, as well as any new ports and drivers we add.

I recommend the following:

  • End Nifs in _nif (as done above)
  • End Ports in _port
  • Prefix all AtomVM-native Ports and Nifs with atomvm_

fadushin avatar Mar 29 '22 00:03 fadushin