|
sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
|
#include <stdio.h>#include <kernel.h>Go to the source code of this file.
Enumerations | |
| enum | EE_SIO_START_RETCODES { EESIO_SUCESS = 0 , EESIO_COOKIE_OPEN_IS_NULL , EESIO_BUFFER_ALLOC_IS_NULL } |
| Return values for ee_sio_start. More... | |
Functions | |
| int | ee_sio_start (u32 baudrate, u8 lcr_ueps, u8 lcr_upen, u8 lcr_usbl, u8 lcr_umode, int hook_stdout) |
| initializes both the serial port comunication and the EE_SIO custom stream to print data trough it | |
Variables | |
| FILE * | EE_SIO |
| custom stream to print data to the EE serial port. must call ee_sio_start() first to make it work | |
Return values for ee_sio_start.
| Enumerator | |
|---|---|
| EESIO_COOKIE_OPEN_IS_NULL | everything is OK! |
| EESIO_BUFFER_ALLOC_IS_NULL | fopencookie() failed to hook the custom stream the allocation of memfile_cookie.buf failed |
Definition at line 32 of file SIOCookie.h.
| int ee_sio_start | ( | u32 | baudrate, |
| u8 | lcr_ueps, | ||
| u8 | lcr_upen, | ||
| u8 | lcr_usbl, | ||
| u8 | lcr_umode, | ||
| int | hook_stdout ) |
initializes both the serial port comunication and the EE_SIO custom stream to print data trough it
| baudrate | baudrate of the EE SIO. Unlike the BIOS sio_init() routine, we always base the baud rate on the CPU clock. 38400 is the recommended value |
| lcr_ueps | passed as is, so you'll need to use the SIO_LCR_* register values. You can pass 0 for all of the lcr_* params to get the standard 8N1 setting (8 data bits, no parity checking, 1 stop bit). |
| lcr_upen | passed as is, so you'll need to use the SIO_LCR_* register values. You can pass 0 for all of the lcr_* params to get the standard 8N1 setting (8 data bits, no parity checking, 1 stop bit). |
| lcr_usbl | passed as is, so you'll need to use the SIO_LCR_* register values. You can pass 0 for all of the lcr_* params to get the standard 8N1 setting (8 data bits, no parity checking, 1 stop bit). |
| lcr_umode | passed as is, so you'll need to use the SIO_LCR_* register values. You can pass 0 for all of the lcr_* params to get the standard 8N1 setting (8 data bits, no parity checking, 1 stop bit). |
| hook_stdout | wether to also hook EE SIO into stdout |
Definition at line 23 of file SIOCookie.c.
|
extern |
custom stream to print data to the EE serial port. must call ee_sio_start() first to make it work
Definition at line 15 of file SIOCookie.c.