summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-08 00:59:31 +0900
committertmk <nobody@nowhere>2011-02-22 03:08:56 +0900
commit5552b5afeaa9ce7432f9ded3586984253f292d80 (patch)
tree7b4f771c8b4f33453aaf3f1d544a0f4b32221f31
parent04f351b80279c55dfc6c8028f95eab7e01d50c84 (diff)
define sendcha() in usb_debug.c
-rw-r--r--usb_debug.c5
-rw-r--r--usb_debug.h1
2 files changed, 2 insertions, 4 deletions
diff --git a/usb_debug.c b/usb_debug.c
index 97590184a5..09048e0f16 100644
--- a/usb_debug.c
+++ b/usb_debug.c
@@ -1,4 +1,5 @@
#include <avr/interrupt.h>
+#include "sendchar.h"
#include "usb_debug.h"
@@ -7,8 +8,7 @@
volatile uint8_t debug_flush_timer=0;
-// transmit a character. 0 returned on success, -1 on error
-int8_t usb_debug_putchar(uint8_t c)
+int8_t sendchar(uint8_t c)
{
static uint8_t previous_timeout=0;
uint8_t timeout, intr_state;
@@ -60,7 +60,6 @@ int8_t usb_debug_putchar(uint8_t c)
return 0;
}
-
// immediately transmit any buffered output.
void usb_debug_flush_output(void)
{
diff --git a/usb_debug.h b/usb_debug.h
index 65ad05b04a..a751612c0b 100644
--- a/usb_debug.h
+++ b/usb_debug.h
@@ -14,7 +14,6 @@
extern volatile uint8_t debug_flush_timer;
-int8_t usb_debug_putchar(uint8_t c); // transmit a character
void usb_debug_flush_output(void); // immediately transmit any buffered output
#endif