(GX) Move sicksaxis GX files to input/ and rename it

This commit is contained in:
twinaphex 2014-08-15 21:18:46 +02:00
parent 6b5bb100a1
commit d3ae0834e6
3 changed files with 8 additions and 8 deletions

View File

@ -294,7 +294,7 @@ INPUT
#include "../input/autoconf/builtin_psp.c"
#elif defined(GEKKO)
#ifdef HAVE_LIBSICKSAXIS
#include "../gx/sicksaxis.c"
#include "../input/gx_input_sicksaxis.c"
#endif
#include "../input/gx_input.c"
#include "../input/autoconf/builtin_gx.c"

View File

@ -1,4 +1,4 @@
#include "sicksaxis.h"
#include "gx_input_sicksaxis.h"
#include <gccore.h>
#include <stdio.h>
#include <string.h>
@ -34,11 +34,12 @@ static int _ss_set_operational(struct ss_device *dev);
static int _ss_build_attributes_payload(struct ss_device *dev);
static int _ss_send_attributes_payload(struct ss_device *dev);
int ss_init()
int ss_init(void)
{
if (!_ss_inited) {
_ss_heap_id = iosCreateHeap(SS_HEAP_SIZE);
_ss_inited = 1;
if (!_ss_inited)
{
_ss_heap_id = iosCreateHeap(SS_HEAP_SIZE);
_ss_inited = 1;
}
return 1;
}

View File

@ -3,7 +3,6 @@
#include <gccore.h>
#define SS_HEAP_SIZE 4096
#define SS_MAX_DEV 8
#define SS_VENDOR_ID 0x054C
@ -122,7 +121,7 @@ struct ss_device {
}__attribute__((aligned(32)));
int ss_init();
int ss_init(void);
int ss_initialize(struct ss_device *dev);
int ss_open(struct ss_device *dev);
int ss_close(struct ss_device *dev);