mirror of https://github.com/mgba-emu/mgba.git
GBA SIO: Add timing data
This commit is contained in:
parent
8118c94c81
commit
19648c786d
|
@ -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:
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue