]> git.donarmstrong.com Git - tmk_firmware.git/commitdiff
define sendcha() in usb_debug.c
authortmk <nobody@nowhere>
Mon, 7 Feb 2011 15:59:31 +0000 (00:59 +0900)
committertmk <nobody@nowhere>
Mon, 21 Feb 2011 18:08:56 +0000 (03:08 +0900)
usb_debug.c
usb_debug.h

index 97590184a508dd02b92cbcf87477e7eba88f6bf2..09048e0f16c1a791c32682c921b6d554102c0905 100644 (file)
@@ -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)
 {
index 65ad05b04a2bc8f1b658b4b6f585d6afe5418d6b..a751612c0bdd9a572b7fa03ceb87c116be4131c6 100644 (file)
@@ -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