Loading...
Searching...
No Matches
Go to the documentation of this file.
13#if (MODULE_EVERDRIVE != 0)
26#define _MEGAKEY_REGION_1 10
27#define _SSF_MODE_ON 11
38#define SPI_PORT *((volatile u16*) (0xA13000))
39#define CFG_PORT *((volatile u16*) (0xA13002))
40#define VBL_PORT *((volatile u16*) (0xA13004))
41#define SRAM_BANK_PORT *((volatile u16*) (0xA13006))
42#define VER_PORT *((volatile u16*) (0xA13008))
43#define ROM_MAP_PORT *((volatile u16*) (0xA1300a))
46#define CFGC(bit)(cfg &= ~(1 << bit), CFG_PORT = cfg)
47#define CFGS(bit)(cfg |= (1 << bit), CFG_PORT = cfg)
49#define IS_RY (CFG_PORT & (1 << _RY))
50#define IS_SPI_READY (CFG_PORT & (1 << _SPI_READY))
51#define IS_SMS_KEY_PRESSED (CFG_PORT & (1 << _SMS_KEY))
52#define IS_SD_SLOT_EMPTY (CFG_PORT & (1 << _SD_CART))
54#define SPI_HI_SPEED_ON CFGS(_FULL_SPEED)
55#define SPI_HI_SPEED_OFF CFGC(_FULL_SPEED)
57#define SPI16_ON CFGS(_SPI16);
58#define SPI16_OFF CFGC(_SPI16);
60#define SS_ON CFGC(_SS)
61#define SS_OFF CFGS(_SS)
63#define CART_ON CFGC(_CART)
64#define CART_OFF CFGS(_CART)
66#define RAM_ON CFGS(_RAM_ON);
67#define RAM_OFF CFGC(_RAM_ON);
69#define VBL_CATCH_ON CFGS(_VBL_CATCH);
70#define VBL_CATCH_OFF CFGC(_VBL_CATCH);
72#define SPI_BUSY while(!IS_SPI_READY)
73#define EPR_BUSY while(!IS_RY)
87u8 evd_mmcRdBlock(
u32 mmc_addr,
u8 *stor);
92u8 evd_mmcWrBlock(
u32 mmc_addr,
u8 *data_ptr);
98void evd_eprEraseBlock(
u32 rom_addr);
105void evd_eprProgBlock(
u16 *data,
u32 rom_addr,
u32 len);
111void evd_init(
u16 def_rom_bank,
u8 _is_ram_app);
unsigned long u32
Definition types.h:105
unsigned short u16
Definition types.h:100
unsigned char u8
Definition types.h:95