usb_api_main_patch.c use new io funcs