mirror of
https://github.com/moparisthebest/tmk_keyboard
synced 2024-10-31 15:35:01 -04:00
20 lines
311 B
C
20 lines
311 B
C
#include <stdint.h>
|
|
#include "oddebug.h"
|
|
#include "sendchar.h"
|
|
|
|
|
|
#if DEBUG_LEVEL > 0
|
|
/* from oddebug.c */
|
|
int8_t sendchar(uint8_t c)
|
|
{
|
|
while(!(ODDBG_USR & (1 << ODDBG_UDRE))); /* wait for data register empty */
|
|
ODDBG_UDR = c;
|
|
return 1;
|
|
}
|
|
#else
|
|
int8_t sendchar(uint8_t c)
|
|
{
|
|
return 1;
|
|
}
|
|
#endif
|