2009-04-10 18:15:10 +02:00
|
|
|
/*
|
|
|
|
mini - a Free Software replacement for the Nintendo/BroadOn IOS.
|
2009-05-11 07:53:16 +02:00
|
|
|
USBGecko support code
|
2009-04-10 18:15:10 +02:00
|
|
|
|
2009-05-11 07:53:16 +02:00
|
|
|
Copyright (c) 2008 Nuke - <wiinuke@gmail.com>
|
2009-04-10 18:15:10 +02:00
|
|
|
Copyright (C) 2008, 2009 Hector Martin "marcan" <marcan@marcansoft.com>
|
2009-04-13 22:13:45 +02:00
|
|
|
Copyright (C) 2008, 2009 Sven Peter <svenpeter@gmail.com>
|
2009-05-11 07:53:16 +02:00
|
|
|
Copyright (C) 2009 Andre Heider "dhewg" <dhewg@wiibrew.org>
|
2009-04-10 18:15:10 +02:00
|
|
|
|
2009-05-11 07:53:16 +02:00
|
|
|
# This code is licensed to you under the terms of the GNU GPL, version 2;
|
|
|
|
# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
2009-04-10 18:15:10 +02:00
|
|
|
*/
|
2009-05-11 07:53:16 +02:00
|
|
|
|
2008-12-28 14:35:37 +01:00
|
|
|
#ifndef __GECKO_H__
|
|
|
|
#define __GECKO_H__
|
|
|
|
|
2010-07-09 02:37:33 +02:00
|
|
|
#ifdef CAN_HAZ_USBGECKO
|
|
|
|
|
2008-12-28 14:35:37 +01:00
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
void gecko_init(void);
|
2009-04-05 15:43:25 +02:00
|
|
|
u8 gecko_enable_console(const u8 enable);
|
2009-04-15 21:35:47 +02:00
|
|
|
|
|
|
|
#ifdef NDEBUG
|
|
|
|
#define gecko_printf(...) do { } while(0)
|
|
|
|
#else
|
2009-04-05 15:43:25 +02:00
|
|
|
int gecko_printf(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
|
2009-04-15 21:35:47 +02:00
|
|
|
#endif
|
|
|
|
|
2010-08-05 18:11:16 +02:00
|
|
|
void gecko_process(void);
|
2008-12-28 14:35:37 +01:00
|
|
|
|
2010-07-09 02:37:33 +02:00
|
|
|
#else
|
|
|
|
#define gecko_init(...) do { } while(0)
|
|
|
|
#define gecko_enable_console(...) do { } while(0)
|
|
|
|
#define gecko_printf(...) do { } while(0)
|
2010-08-05 18:11:16 +02:00
|
|
|
#define gecko_process(...) do { } while(0)
|
2010-07-09 02:37:33 +02:00
|
|
|
#define gecko_timer(...) do { } while(0)
|
|
|
|
#endif
|
|
|
|
|
2008-12-28 14:35:37 +01:00
|
|
|
#endif
|
2009-04-13 22:13:45 +02:00
|
|
|
|