2009-10-20 13:46:55 +02:00
|
|
|
|
2009-10-21 01:00:19 +02:00
|
|
|
#ifndef _GECKO_H_
|
|
|
|
#define _GECKO_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-19 01:16:05 +02:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-10-21 01:00:19 +02:00
|
|
|
#endif
|
2009-10-20 13:46:55 +02:00
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
char ascii(char s);
|
2010-09-19 01:04:39 +02:00
|
|
|
|
2009-11-01 00:23:27 +01:00
|
|
|
#ifndef NO_DEBUG
|
2010-09-19 01:16:05 +02:00
|
|
|
//use this just like printf();
|
2010-09-24 02:48:03 +02:00
|
|
|
void gprintf(const char *str, ...);
|
2010-09-19 01:16:05 +02:00
|
|
|
bool InitGecko();
|
2010-09-24 02:48:03 +02:00
|
|
|
void hexdump(void *d, int len);
|
2010-12-03 19:38:57 +01:00
|
|
|
void USBGeckoOutput();
|
2009-11-01 00:23:27 +01:00
|
|
|
#else
|
2010-09-19 01:16:05 +02:00
|
|
|
#define gprintf(...)
|
|
|
|
#define InitGecko() false
|
|
|
|
#define hexdump( x, y )
|
2009-11-01 00:23:27 +01:00
|
|
|
#endif /* NO_DEBUG */
|
|
|
|
|
2009-10-21 01:00:19 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|