GP2X For Serious Devvers Only


Squidge

Certified Guru
Joined
Nov 16, 2003
Messages
8,493
Location
UK
Website
Visit site
I've had a number of requests for my usb code hackings to date, so here it is:

http://ibiblio.org/paulc/gp2x-gen/usb.zip

This is my source code for talking to the netchip 2272 (USB Slave, NOT host)

WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!

This code is currently INCOMPLETE, UNRELIABLE and is a complete HACK. I present it here as an educational aid only.

It really needs to be part of a module, and handle interrupts for the Netchip2272. Interrupt's can't be done in user land, so this will code will quite happily waste 100% CPU polling the 2272 chip.

WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!
 
Back
Top