| View previous topic :: View next topic |
| Author |
Message |
MIB.42
Joined: 03 Nov 2006 Posts: 5
|
Posted: Sat Nov 04, 2006 7:32 am Post subject: sceHprmRegisterCallback |
|
|
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 |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Sat Nov 04, 2006 8:12 am Post subject: |
|
|
| AFAIK Hprm is for your Sony headphone with its audio pad. |
|
| Back to top |
|
 |
MIB.42
Joined: 03 Nov 2006 Posts: 5
|
Posted: Sat Nov 04, 2006 8:17 am Post subject: |
|
|
| Yes, I am interested in if anybody used the sceHprmInit, sceHprmEnd, sceHprmSuspend, sceHprmResume, sceHprmRegisterCallback, sceHprmUnregisterCallback functions... also the sceHprmGetModel... |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sat Nov 04, 2006 8:45 am Post subject: |
|
|
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 |
|
 |
|