2009-10-20 11:46:55 +00:00
|
|
|
|
2009-10-20 23:00:19 +00:00
|
|
|
#ifndef _GECKO_H_
|
|
|
|
#define _GECKO_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-18 23:16:05 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-10-20 23:00:19 +00:00
|
|
|
#endif
|
2009-10-20 11:46:55 +00:00
|
|
|
|
2011-07-25 22:28:22 +00:00
|
|
|
char ascii(char s);
|
2010-09-18 23:04:39 +00:00
|
|
|
|
2009-10-31 23:23:27 +00:00
|
|
|
#ifndef NO_DEBUG
|
2011-07-25 22:28:22 +00:00
|
|
|
//use this just like printf();
|
|
|
|
void gprintf(const char *str, ...);
|
|
|
|
bool InitGecko();
|
|
|
|
void hexdump(void *d, int len);
|
|
|
|
void USBGeckoOutput();
|
2009-10-31 23:23:27 +00:00
|
|
|
#else
|
2010-09-18 23:16:05 +00:00
|
|
|
#define gprintf(...)
|
2011-07-25 22:28:22 +00:00
|
|
|
#define InitGecko() false
|
2010-09-18 23:16:05 +00:00
|
|
|
#define hexdump( x, y )
|
2009-10-31 23:23:27 +00:00
|
|
|
#endif /* NO_DEBUG */
|
|
|
|
|
2009-10-20 23:00:19 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|