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
|
|
|
|
2011-07-26 00:28:22 +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
|
2011-07-26 00:28:22 +02:00
|
|
|
//use this just like printf();
|
|
|
|
void gprintf(const char *str, ...);
|
|
|
|
bool InitGecko();
|
|
|
|
void hexdump(void *d, int len);
|
|
|
|
void USBGeckoOutput();
|
2009-11-01 00:23:27 +01:00
|
|
|
#else
|
2010-09-19 01:16:05 +02:00
|
|
|
#define gprintf(...)
|
2011-07-26 00:28:22 +02:00
|
|
|
#define InitGecko() false
|
2010-09-19 01:16:05 +02:00
|
|
|
#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
|
|
|
|
|