Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Macros
link-ft232h.h File Reference
#include <stdint.h>
#include "common/hardware/hwregs.h"
Include dependency graph for link-ft232h.h:

Go to the source code of this file.

Macros

#define MONITOR_LINK_IS_STREAM   1
 
#define MONITOR_FT232H_DATA   0xbf000000
 
#define MONITOR_FT232H_STATUS   0xbf100000
 
#define MONITOR_FT232H_EXP1_CONFIG   ((23 << 16) | 0x2422) /* 8 MB, psx232h's timing */
 
#define FT232H_DATA   (*(volatile uint8_t *)(MONITOR_FT232H_DATA))
 
#define FT232H_STATUS   (*(volatile uint8_t *)(MONITOR_FT232H_STATUS))
 
#define FT232H_RXF   0x01
 
#define FT232H_TXE   0x02
 
#define LINK_RX_STAT_ADDR   MONITOR_FT232H_STATUS
 
#define LINK_RX_STAT_LOAD   "lbu"
 
#define LINK_RX_STAT_BIT   FT232H_RXF
 

Macro Definition Documentation

◆ FT232H_DATA

#define FT232H_DATA   (*(volatile uint8_t *)(MONITOR_FT232H_DATA))

◆ FT232H_RXF

#define FT232H_RXF   0x01

◆ FT232H_STATUS

#define FT232H_STATUS   (*(volatile uint8_t *)(MONITOR_FT232H_STATUS))

◆ FT232H_TXE

#define FT232H_TXE   0x02

◆ LINK_RX_STAT_ADDR

#define LINK_RX_STAT_ADDR   MONITOR_FT232H_STATUS

◆ LINK_RX_STAT_BIT

#define LINK_RX_STAT_BIT   FT232H_RXF

◆ LINK_RX_STAT_LOAD

#define LINK_RX_STAT_LOAD   "lbu"

◆ MONITOR_FT232H_DATA

#define MONITOR_FT232H_DATA   0xbf000000

◆ MONITOR_FT232H_EXP1_CONFIG

#define MONITOR_FT232H_EXP1_CONFIG   ((23 << 16) | 0x2422) /* 8 MB, psx232h's timing */

◆ MONITOR_FT232H_STATUS

#define MONITOR_FT232H_STATUS   0xbf100000

◆ MONITOR_LINK_IS_STREAM

#define MONITOR_LINK_IS_STREAM   1