update pullups and flags for usb depending on vbus valid
try to handle usb connect/disconnect better
add delay for pullup disable