| View previous topic :: View next topic |
| Author |
Message |
tobiasbp
Joined: 22 Apr 2006 Posts: 5 Location: Denmark
|
Posted: Mon Jan 15, 2007 9:16 am Post subject: PSP external input (Not buttons) |
|
|
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 |
|
| Back to top |
|
 |
chrismulhearn
Joined: 22 Feb 2006 Posts: 80
|
Posted: Wed Jan 17, 2007 12:30 pm Post subject: psp headphone serial port io |
|
|
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 |
|
| Back to top |
|
 |
tobiasbp
Joined: 22 Apr 2006 Posts: 5 Location: Denmark
|
Posted: Thu Jan 18, 2007 2:51 am Post subject: |
|
|
| Thanks! |
|
| Back to top |
|
 |
|