usb_api_magpie_patch.c: use new io funcs