mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-23 16:45:12 -04:00
6d20839ab0
* Decompile padmgr.c * Format * Enum names * Update namefixer * Suggested changes Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * Suggested changes, improve motor.c Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Further suggested changes * Format * Fix `controller.h` comment Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> --------- Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
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
|