GBA SIO: Add timing data

This commit is contained in:
Jeffrey Pfau 2015-01-11 16:31:02 -08:00
parent 8118c94c81
commit 19648c786d
2 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,13 @@
#include "gba-io.h" #include "gba-io.h"
const int GBASIOCyclesPerTransfer[4][MAX_GBAS] = {
{ 31457, 62914, 94371, 125829 },
{ 7864, 15728, 23592, 31457 },
{ 5242, 10485, 15728, 20971 },
{ 2621, 5242, 7864, 10485 }
};
static struct GBASIODriver* _lookupDriver(struct GBASIO* sio, enum GBASIOMode mode) { static struct GBASIODriver* _lookupDriver(struct GBASIO* sio, enum GBASIOMode mode) {
switch (mode) { switch (mode) {
case SIO_NORMAL_8: case SIO_NORMAL_8:

View File

@ -8,6 +8,10 @@
#include "util/common.h" #include "util/common.h"
#define MAX_GBAS 4
extern const int GBASIOCyclesPerTransfer[4][MAX_GBAS];
enum GBASIOMode { enum GBASIOMode {
SIO_NORMAL_8 = 0, SIO_NORMAL_8 = 0,
SIO_NORMAL_32 = 1, SIO_NORMAL_32 = 1,