pios usb: small code cleanup

* use Standard Peripheral Driver Library functions to access GPIOs
* remove one unnecessary global variable