mirror of https://github.com/zeldaret/mm.git
23 lines
856 B
C
23 lines
856 B
C
#ifndef _ULTRA64_RCP_H_
|
|
#define _ULTRA64_RCP_H_
|
|
|
|
#define VI_NTSC_CLOCK 48681812 /* Hz = 48.681812 MHz */
|
|
#define VI_PAL_CLOCK 49656530 /* Hz = 49.656530 MHz */
|
|
#define VI_MPAL_CLOCK 48628316 /* Hz = 48.628316 MHz */
|
|
|
|
#define DEVICE_TYPE_CART 0 /* ROM cartridge */
|
|
#define DEVICE_TYPE_BULK 1 /* ROM bulk */
|
|
#define DEVICE_TYPE_64DD 2 /* 64 Disk Drive */
|
|
#define DEVICE_TYPE_SRAM 3 /* SRAM */
|
|
#define DEVICE_TYPE_INIT 7 /* initial value */
|
|
|
|
|
|
#define CHNL_ERR_NORESP 0x80 /* Bit 7 (Rx): No response error */
|
|
#define CHNL_ERR_OVERRUN 0x40 /* Bit 6 (Rx): Overrun error */
|
|
#define CHNL_ERR_FRAME 0x80 /* Bit 7 (Tx): Frame error */
|
|
#define CHNL_ERR_COLLISION 0x40 /* Bit 6 (Tx): Collision error */
|
|
|
|
#define CHNL_ERR_MASK 0xC0 /* Bit 6-7: channel errors */
|
|
|
|
#endif
|