X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fin_gp2x.c;h=eb97a7e940813d358776229837d331927dc430d0;hb=1ed480497a9adb926b9b70a2bbf542d43e8b3d54;hp=818aead94c7392d91f999566e81c0ebea05c487b;hpb=4858c6338ba7ec5a9061ea9b7505acde098c03d9;p=libpicofe.git diff --git a/gp2x/in_gp2x.c b/gp2x/in_gp2x.c index 818aead..eb97a7e 100644 --- a/gp2x/in_gp2x.c +++ b/gp2x/in_gp2x.c @@ -55,8 +55,8 @@ static int in_gp2x_get_mmsp2_bits(void) static int in_gp2x_get_wiz_bits(void) { - int value = 0; - read(gpiodev, &value, 4); + int r, value = 0; + r = read(gpiodev, &value, 4); if (value & 0x02) value |= 0x05; if (value & 0x08) @@ -80,6 +80,9 @@ static int in_gp2x_get_wiz_bits(void) } #ifdef FAKE_IN_GP2X +volatile unsigned short *gp2x_memregs; +gp2x_soc_t soc_detect(void) { return -1; } + static int in_gp2x_get_fake_bits(void) { extern int current_keys;