Code: Select all
#include <pspsdk.h>
#include <pspkernel.h>
#include <pspdisplay_kernel.h>
#include <stdio.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <string.h>
PSP_MODULE_INFO("myLib", 0x1006, 1, 1);
PSP_MAIN_THREAD_ATTR(0);
u32 k1;
int main(int argc, char **argv)
{
printf("blah blah...");
return 0;
}
//////////////////////////////////////////////////////////////////////////
int module_start(SceSize args, void *argp)
{
return 0;
}
//////////////////////////////////////////////////////////////////////////
int module_stop()
{
return 0;
}
//////////////////////////////////////////////////////////////////////////
int sioGetInt(){
return 0;
}
void sioInit(void)
{
pspDebugSioInit();
}
/tmp/pspdev/pspsdk/src/debug/sio.c:122: undefined reference to `sceHprmEnd'
collect2: ld returned 1 exit status
make: *** [mylib.elf] Error 1
this happens everytime I insert some specific sio funcions.. How can get it past? I run a 371 fat psp, but the problem is still at compile time, by now.
I also find that someone initializes the sio in their prx by a uncommon code like this:
Code: Select all
sceHprmEnd(); // I cannot compile this line
sceSysregUartIoEnable(4);
sceSysconCtrlHRPower(1);
[/code]