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