added support for per pin management of pull resistors (direction
up/down, enable/disable)