forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PS2SDK updates and additions

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Thu Aug 30, 2007 11:49 pm    Post subject: PS2SDK updates and additions Reply with quote

Since not everyone checks the subversion logs as often as they check the forums ( I don't :-) ), I thought I'd create this thread to announce additions and updates to PS2SDK, which aren't just minor bugfixes.

I've been working on making free opensource pad replacement modules. Here is a list of my updates and additions to PS2SDK lately:


    Added freesio2.irx - free replacement module for XSIO2MAN, built from sio2log source.
    Added freepad.irx - free replacement module for XPADMAN.
    Added freemtap.irx - free replacement module for XMTAPMAN.
    Added padx sample
    Added mtap sample
    Added xsio2man.h, xpadman.h and xmtapman.h IOP headers.
    Updated libpadx


I've only tested freepad with DualShock2 controllers and multitaps. So there might be some bugs with other types of controllers. However the bugs should be in sio2Cmds.c where the SIO2 commands are setup for different controllers, and should be very easy to locate and fix, if the controllers are tested with freepad in debug mode (uncomment DEBUG flag in makefile to enable debug mode).

It is now possibly to write your own custom lowlevel pad driver, based upon the freepad source. Some hints if you take upon this task;

- Use sio2log by Marcus R. Brown in PS2SDK to log the SIO2 send/receive data, to get an overview of what XPADMAN/freepad does to setup the pad and how it reads it. I recommend changing the logging functions in sio2log to use printf instead of writing to the logging file.
- Read padspecs.txt by Florin Sasu, this document will be of great help in undestanding what all the different sio2 pad commands do (the ones you log with sio2log).
- And of course, read the freepad source :-)
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Fri Aug 31, 2007 9:43 am    Post subject: Reply with quote

Thanks Lukasz!
Back to top
View user's profile Send private message Visit poster's website
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Sun Sep 02, 2007 11:12 pm    Post subject: Reply with quote


    Updated freesd - Added SdNote2Pitch and SdPitch2Note. Updated version number to 1.0.


I've tested SdNote2Pitch with 12.960.000 different combinations of input and tested SdPitch2Note with 2.744.000 different combinations of input, and both functions always returned the same value as the LIBSD functions. So I'm pretty confident that both functions work correctly :-)
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Sep 03, 2007 4:51 am    Post subject: Reply with quote

Nice work. All you need now is a freesmap to complete the set. :)
Back to top
View user's profile Send private message Visit poster's website
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Mon Sep 03, 2007 7:33 am    Post subject: Reply with quote

ooPo wrote:
Nice work. All you need now is a freesmap to complete the set. :)


I think ps2devman already did this: http://forums.ps2dev.org/viewtopic.php?t=6784

Cody56 is also working on a new smap driver, which I'm hoping he will release as he got quite nice transfers speeds, and it would be nice to include this in ps2link . Maybe someone can poke him on IRC and get it released. :-)
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group