PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sio.c File Reference
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>
#include "tamtypes.h"
#include "kernel.h"
#include "string.h"
#include "sio.h"
+ Include dependency graph for sio.c:

Go to the source code of this file.

Macros

#define PS2LIB_STR_MAX   4096
 
#define CPUCLK   294912000
 
#define LCR_SCS_VAL   (1 << 5)
 

Detailed Description

Routines for accessing the EE's on-chip serial port.

Definition in file sio.c.

Macro Definition Documentation

◆ PS2LIB_STR_MAX

#define PS2LIB_STR_MAX   4096

Definition at line 26 of file sio.c.

◆ CPUCLK

#define CPUCLK   294912000

Use this to determine the baud divide value.

Definition at line 30 of file sio.c.

◆ LCR_SCS_VAL

#define LCR_SCS_VAL   (1 << 5)

Baud rate generator output that divided CPUCLK.

Definition at line 32 of file sio.c.