Hello,
 
	I cloned the master branch of WiringOP one month ago, it reported same version 2.46 and it was working except for the option to activate internal pull up/down.
 
	Trying it in C code using:
 
pullUpDnControl(n, PUD_DOWN);
	or by terminal with:
 
gpio mode 1 down
	same behavior, nothing happen.. by default, unfortunately in my case, it seem active a pull up resistor for all inputs.
 
	 
 
	I searched on the web and found there was a bug, fixed.
 
	I checked again the main branch and in effect it is different now, the new code is:
 
    *(gpio + GPPUD)              = pud & 3 ;		delayMicroseconds (5) ;
    *(gpio + gpioToPUDCLK [pin]) = 1 << (pin & 31) ;	delayMicroseconds (5) ;
    
    *(gpio + GPPUD)              = 0 ;			delayMicroseconds (5) ;
    *(gpio + gpioToPUDCLK [pin]) = 0 ;			delayMicroseconds (5) ;
	but executing it I get "segmentation fault", debugging deeply the reason is that "gpio" address is zero.
 
	 
 
	I tried to clone the "next" branch but it is even worst, it won't compile, many errors, log from terminal attached.
 
	 
 
	What I can do in order to fix.. of simply to setup all inputs with pulldown resistor active?
 
	Thanks in advance
 
	Andrea
 
	 
 
log.txt