Looking at some samplecode (Fanjita sio's prx in this case) I found following code:
Code: Select all
int intr_handler(void *arg)
{
sceKernelDisableIntr(PSP_HPREMOTE_INT);
u32 stat = _lw(0xBE500040);
_sw(stat, 0xBE500044);
if(!(_lw(PSP_UART4_STAT) & PSP_UART_RXEMPTY)) {
fWrite(_lw(PSP_UART4_FIFO));
sceKernelSetEventFlag(g_eventflag , SIO_CHAR_RECV_EVENT); // set "we got something!!" flag
}
sceKernelEnableIntr(PSP_HPREMOTE_INT); // re-enable interrupt
return -1;
}
I'm asking:
Where I could find a table with psp's memory map ?
Which uart controller is used in psp ?
Thanks all!