Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
dosfs
LICENSES
Makefile
README
export.c
ls.c

README

USB Mass Storage Read/LS
========================

This example code works on Linux/MacOS/iPhone OS Systems.

Add "export TARGET=native" for building for the current platform. Default is building for the iPhone.

This code can use the following environment variables:
	- USB_DEVICE=<vid>:<pid>

On a Mac/iPhone system use `ioreg -p IOUSB -c IOUSBDevice' to find the VID/PID for the specified USB device, or use `lsusb' to find the device identifier on a Linux system.

Usage:
======

 usb_ls:
    usb_ls [dir]

    usb_ls will list the current directory for specified [dir]
    from the USB mass storage device.

 usb_cp
    usb_cp [file] 

    usb_cp will copy the [file] from the USB storage device to the
    main device.

Compiling:
======

- Get Theos (git://github.com/DHowett/theos)
- make