Interesting, normally I am paranoid about the pulls and I always like to add gpio_disable_pulls() with the GPIO config stuff, but in my copy of C SDK 1.5.1 (below), gpio_disable_pulls() is called when doing ADC pin init:
So if adc_gpio_init() is called, it should have called gpio_disable_pulls() too. I'm not sure I understand what happened here...
just puzzled.
Code:
static inline void adc_gpio_init(uint gpio) { invalid_params_if(ADC, gpio < 26 || gpio > 29); // Select NULL function to make output driver hi-Z gpio_set_function(gpio, GPIO_FUNC_NULL); // Also disable digital pulls and digital receiver gpio_disable_pulls(gpio); gpio_set_input_enabled(gpio, false);}
![Neutral :|](http://forums.raspberrypi.com/images/smilies/icon_neutral.gif)
Statistics: Posted by katak255 — Tue Jan 07, 2025 1:55 am