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 

sceHprmRegisterCallback

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



Joined: 03 Nov 2006
Posts: 5

PostPosted: Sat Nov 04, 2006 7:32 am    Post subject: sceHprmRegisterCallback Reply with quote

Any update / anybody has experience with the sceHprmRegisterCallback and the rest of the "not-in-the-include-file" sceHprm calls?

I tried chid = sceKernelCreateCallback("Hprm Callback", hprm_callback, NULL);sceHprmRegisterCallback(chid); with no luck...
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Sat Nov 04, 2006 8:12 am    Post subject: Reply with quote

AFAIK Hprm is for your Sony headphone with its audio pad.
Back to top
View user's profile Send private message
MIB.42



Joined: 03 Nov 2006
Posts: 5

PostPosted: Sat Nov 04, 2006 8:17 am    Post subject: Reply with quote

Yes, I am interested in if anybody used the sceHprmInit, sceHprmEnd, sceHprmSuspend, sceHprmResume, sceHprmRegisterCallback, sceHprmUnregisterCallback functions... also the sceHprmGetModel...
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sat Nov 04, 2006 8:45 am    Post subject: Reply with quote

you mean like this
Code:
static void _sioInit(void)
{
        /* Shut down the remote driver */
        sceHprmEnd();
        /* Enable UART 4 */
        sceSysregUartIoEnable(4);
        /* Enable remote control power */
        sceSyscon_driver_44439604(1);
}

Code:
void sioInit(int baud, int kponly)
{
        _sioInit();
        if(!kponly)
        {
                g_eventflag = sceKernelCreateEventFlag("SioShellEvent", 0, 0, 0);
                sceKernelRegisterIntrHandler(PSP_HPREMOTE_INT, 1, intr_handler, NULL, NULL);
                sceKernelEnableIntr(PSP_HPREMOTE_INT);
                /* Delay thread for a bit */
                sceKernelDelayThread(2000000);
        }
        sioSetBaud(baud);
        sioInstallKprintf();
}


check psplink sio source for more info here
http://svn.ps2dev.org/filedetails.php?repname=psp&path=%2Ftrunk%2Fpsplink%2Fpsplink%2Fsio.c&rev=0&sc=0
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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