mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-16 08:29:25 +01:00
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/*
|
|
mini - a Free Software replacement for the Nintendo/BroadOn IOS.
|
|
USBGecko support code
|
|
|
|
Copyright (c) 2008 Nuke - <wiinuke@gmail.com>
|
|
Copyright (C) 2008, 2009 Hector Martin "marcan" <marcan@marcansoft.com>
|
|
Copyright (C) 2008, 2009 Sven Peter <svenpeter@gmail.com>
|
|
Copyright (C) 2009 Andre Heider "dhewg" <dhewg@wiibrew.org>
|
|
|
|
# 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
|
|
*/
|
|
|
|
#ifndef __GECKO_H__
|
|
#define __GECKO_H__
|
|
|
|
#ifdef CAN_HAZ_USBGECKO
|
|
|
|
#include "types.h"
|
|
|
|
void gecko_init(void);
|
|
u8 gecko_enable_console(const u8 enable);
|
|
|
|
#ifdef NDEBUG
|
|
#define gecko_printf(...) do { } while(0)
|
|
#else
|
|
int gecko_printf(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
|
|
#endif
|
|
|
|
void gecko_timer_initialize(void);
|
|
void gecko_timer(void);
|
|
|
|
#else
|
|
#define gecko_init(...) do { } while(0)
|
|
#define gecko_enable_console(...) do { } while(0)
|
|
#define gecko_printf(...) do { } while(0)
|
|
#define gecko_timer_initialize(...) do { } while(0)
|
|
#define gecko_timer(...) do { } while(0)
|
|
#endif
|
|
|
|
#endif
|
|
|