Page 1 of 1

USB clock project

Posted: Mon Mar 17, 2008 5:10 am
by kipp8r
Hi all,

Firstly I'm new to ps2 dev. :)

I'm working on a little project that I want to port to the PS2. Currently it runs on windows. It gets the system's time and sends it via a USB hid class to my clock device that's plugged in on the USB (basically an LED clock I made). This works great on Windows.

I've been looking around here and on search engines but cannot find much information on programming the USB on the PS2, specifically a HID device. Do any of you have advice or samples you can point me to. I notice that the ps2sdk has a usbd.h with some defs for functions.

Thanks :)

Posted: Mon Mar 17, 2008 7:39 am
by J.F.
If you get the sdk source from the repo, you'll find the mouse, keyboard, and mass storage USB drivers. If you can't write a USB driver for you own device from that, you're out of luck. :)

Posted: Mon Mar 17, 2008 8:02 am
by kipp8r
Thanks J.F.

I did not see these files as I had the bin release of the toolchain for Windows. This does not seem to have these examples.

I'll take a look, thanks for the quick response.

:)

Posted: Mon Mar 17, 2008 12:23 pm
by J.F.
Yeah, the source can be really useful at times. Be sure to check out both ps2 and ps2ware.

Code: Select all

svn co svn://svn.ps2dev.org/ps2/trunk ps2
svn co svn://svn.ps2dev.org/ps2ware/trunk ps2ware