-
Notifications
You must be signed in to change notification settings - Fork 6
/
gecko.h
41 lines (30 loc) · 1.03 KB
/
gecko.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
mini - a Free Software replacement for the Nintendo/BroadOn IOS.
USBGecko support code
Copyright (c) 2008 Nuke - <[email protected]>
Copyright (C) 2008, 2009 Hector Martin "marcan" <[email protected]>
Copyright (C) 2008, 2009 Sven Peter <[email protected]>
Copyright (C) 2009 Andre Heider "dhewg" <[email protected]>
# 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_process(void);
#else
#define gecko_init(...) do { } while(0)
#define gecko_enable_console(...) do { } while(0)
#define gecko_printf(...) do { } while(0)
#define gecko_process(...) do { } while(0)
#define gecko_timer(...) do { } while(0)
#endif
#endif