PSP external input (Not buttons)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
tobiasbp
Posts: 5
Joined: Sat Apr 22, 2006 7:53 pm
Location: Denmark

PSP external input (Not buttons)

Post by tobiasbp »

Hello,

I considering making a slot-car timer for the PSP. What are my options as to get the race data into my PSP? I seem to remember that something can be done with the headphone jack? If correct, where can I read up on it?

Thanks
chrismulhearn
Posts: 80
Joined: Wed Feb 22, 2006 4:43 am

psp headphone serial port io

Post by chrismulhearn »

Go to http://df38.dot5hosting.com/~remember/chris

Download the "kernel source" toward the bottom.

unpack that archive, and grab

psp_serialport.h
and
psp_serialport.c

from arch/mipsnommu/psp/

Those do direct IO to the serial port. Its self-explanatory if you just look in the .h file. Link psp_serialport.c in with your program and away you go!

Of course, if you are looking for "GPIO" style inputs, where you get to sample its value whenever you want, you are out of luck.. You need to feed that port serial data.

-Chris
tobiasbp
Posts: 5
Joined: Sat Apr 22, 2006 7:53 pm
Location: Denmark

Post by tobiasbp »

Thanks!
Post Reply