This is the source for the psp-uart-library. It is designed to simplify communication with the PlayStation Portable's UART hardware for serial I/O.
All that is required to build is the PSPSDK. Run make in the root directory to build the libpspuart.a binary.
When including this library be sure to also include -lpsphprm_driver.
For examle LIBS = ./libs/libpspuart.a -lpsphprm_driver.
Currently this library is configured as an Archive (.a) but it can be compiled into a standalone PRX which could be imported into a user mode EBOOT. Note an exports.exp has already been provided and configured.
To do so follow these steps:
- Add the following to
main.c
PSP_MODULE_INFO("pspUART", 0x1006, 1, 1);
PSP_NO_CREATE_MAIN_THREAD();
int module_start(SceSize args, void *argp) {
return 0;
}
int module_stop(void) {
return 0;
}
- Comment out
alib = libpspuart.ain themakefile - Comment out option
-mno-crt0in theLDFLAGSsection of themakefile
A PRX will now be generated which can be imported using KUBridge for example.
See the header file for a list of functions to interface with the UART hardware.
psp-uart-library is a fork of DavisDev's SioDriver library, designed to be cleaner and more concise. The following are the extra credits listed under the SioDriver source header.
- Tyranid - SIO based on psplink
- forum.ps2dev.org - More info over the port
- Jean - initial SIO driver