You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would call it adc_deinit(), similar to i2c_deinit().
Not really, I don't expect a deinit function to have a parameter. This function really can enable or disable the ADC, so it doesn't fit
Do you mean you don't like adc_deinit(bool enable)? Yeah me neither... it would just be adc_deinit() without param.
No I think you are out of context. The point is with setting/resetting the flag you enable or disable the ADC conversion. It doesn't do any deinitialization. You can simply enable it by setting the bit again. The same applies for gpio_deinit(). There is no deinit on a GPIO.
Activity
bruelltuete commentedon Apr 24, 2022
I would call it
adc_deinit(), similar toi2c_deinit().Reneg973 commentedon Apr 26, 2022
Not really, I don't expect a deinit function to have a parameter. This function really can enable or disable the ADC, so it doesn't fit
bruelltuete commentedon Apr 26, 2022
Do you mean you don't like
adc_deinit(bool enable)? Yeah me neither... it would just beadc_deinit()without param.Reneg973 commentedon Apr 26, 2022
No I think you are out of context. The point is with setting/resetting the flag you enable or disable the ADC conversion. It doesn't do any deinitialization. You can simply enable it by setting the bit again. The same applies for gpio_deinit(). There is no deinit on a GPIO.