usb_api_k2_patch.c: use new io functions