all repos — mgba @ 433759f1fe5b360df225ad3d21b7b4321712178d

mGBA Game Boy Advance Emulator

GBA Hardware: Remove leftover code
Vicki Pfau vi@endrift.com
Mon, 16 Oct 2017 22:48:08 -0700
commit

433759f1fe5b360df225ad3d21b7b4321712178d

parent

d3526be8f53a15f289e94ce04d3315ce95c98f1f

2 files changed, 0 insertions(+), 20 deletions(-)

jump to
M include/mgba/internal/gba/hardware.hinclude/mgba/internal/gba/hardware.h

@@ -177,7 +177,6 @@ };

void GBAHardwareInit(struct GBACartridgeHardware* gpio, uint16_t* gpioBase); void GBAHardwareClear(struct GBACartridgeHardware* gpio); -int32_t GBAHardwareProcessEvents(struct GBA* gba, int32_t cycles); void GBAHardwareInitRTC(struct GBACartridgeHardware* gpio); void GBAHardwareInitGyro(struct GBACartridgeHardware* gpio);
M src/gba/hardware.csrc/gba/hardware.c

@@ -40,7 +40,6 @@ static void _eReaderReset(struct GBACartridgeHardware* hw);

static void _eReaderWriteControl0(struct GBACartridgeHardware* hw, uint8_t value); static void _eReaderWriteControl1(struct GBACartridgeHardware* hw, uint8_t value); static void _eReaderReadData(struct GBACartridgeHardware* hw); -static int32_t _eReaderProcessEvents(struct GBACartridgeHardware* hw, int32_t cycles); static const int RTC_BYTES[8] = { 0, // Force reset

@@ -80,13 +79,6 @@

if (hw->p->sio.drivers.normal == &hw->gbpDriver.d) { GBASIOSetDriver(&hw->p->sio, 0, SIO_NORMAL_32); } -} - -int32_t GBAHardwareProcessEvents(struct GBA* gba, int32_t cycles) { - if (gba->memory.hw.devices & HW_EREADER) { - return _eReaderProcessEvents(&gba->memory.hw, cycles); - } - return INT_MAX; } void GBAHardwareGPIOWrite(struct GBACartridgeHardware* hw, uint32_t address, uint16_t value) {

@@ -793,17 +785,6 @@ if (EReaderControl0IsLedEnable(hw->eReaderRegisterControl0)) {

GBARaiseIRQ(hw->p, IRQ_GAMEPAK, 0); } } -} - -static int32_t _eReaderProcessEvents(struct GBACartridgeHardware* hw, int32_t cycles) { - if (hw->eReaderState != EREADER_SERIAL_INACTIVE) { - hw->eReaderDelay += cycles; - if (hw->eReaderDelay > 1024) { - mLOG(GBA_HW, DEBUG, "[e-Reader] Command timed out"); - hw->eReaderState = EREADER_SERIAL_INACTIVE; - } - } - return INT_MAX; } // == Serialization