Disable pullup on input

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have several inputs defined in a module as:

gpio_request(GPIO_PIN_PD(04), PWR_CTL);

When mounting the debuggfs i find that:

 gpio-100 PD4  (PWR_CTL     ) in  hi up

Is the anyway I can disable the pullup without recompiling, and if not how would be the correct way to do it in my module.

Since it says that:

void at32_select_gpio(unsigned int pin, unsigned long flags);

Should only be ised in board init.

Life's to short for waiting on slow CPU's