mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-28 06:04:19 +01:00
installer cleanup.
This commit is contained in:
parent
2100d84d7c
commit
0c2fb136e8
2
gecko.c
2
gecko.c
@ -200,6 +200,7 @@ u8 gecko_enable_console(const u8 enable)
|
||||
return gecko_console_enabled;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
int gecko_printf(const char *fmt, ...)
|
||||
{
|
||||
if (!gecko_console_enabled)
|
||||
@ -215,6 +216,7 @@ int gecko_printf(const char *fmt, ...)
|
||||
|
||||
return gecko_sendbuffer(buffer, i);
|
||||
}
|
||||
#endif
|
||||
|
||||
// irq context
|
||||
|
||||
|
6
gecko.h
6
gecko.h
@ -29,7 +29,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
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_timer_initialize(void);
|
||||
void gecko_timer(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user