forked from espressif/arduino-esp32
Fixed channel / unit selection for ESP32C3 (has only 5 channels on 1 adc unit). Removed unnecessary includes. Fixed different attenuation on channels to be taken in care in __analogReadMilliVolt. All chips in __analogReadMilliVolts now use adc characteristics + calculation from raw to voltage as ESP32 does.