gpio_set_pull_mode()'s purpose is to call the pullup/pulldown en/dis calls for you so no need to call gpio_pullup_en yourself... Code:Select all switch(pull) {caseGPIO_PULLUP_ONLY: gpio_pulldown_dis(gpio_num); gpio_pullup_en(gpio_num);break;caseGPIO_PULLDOWN_ONLY: gpio_pull...
if i set up in hardware the pushbutton connector one with pullup resistor then i get the high level if i push the button, then i get the low level. this work in HW , but not in SW #define BUTTON1 GPIO_NUM_34 #define BUTTON2 GPIO_NUM_35 ...
$ cat /sys/class/gpio/gpio336/value 0 Before the GPIO direction is changed from an input to an output, exar_set_value() is called with value = 1, but since the GPIO is an input when exar_set_value() is called, _regmap_update_bits() reads a 1 due to an external pull-up. reg...
to a gpio_config_t variable, specifically stating that I want a PULLUP on an Output pin, AND AND, having an external pull up resistor 1K (for good measure in case the pin does not have a pull-up), when the call is made to the gpio_config(&io_conf) the pin goes immediately LOW...
Solved: Hello! I'm trying to set a GPIO with a pull-up resistor, but I am always reading zero from the pin, no matter the input value I'm configuring
{ + s3c_gpio_setpull(pin, S3C_GPIO_PULL_NONE); + } } - EXPORT_SYMBOL(s3c2410_gpio_pullup); - void s3c2410_gpio_setpin(unsigned int pin, unsigned int to) { - void __iomem *base = S3C24XX_GPIO_BASE(pin); - unsigned long offs = S3C2410_GPIO_OFFSET(pin); - unsigned long ...