Browse Source

define sendcha() in usb_debug.c

tags/v1.9
tmk 13 years ago
parent
commit
5552b5afea
2 changed files with 2 additions and 4 deletions
  1. 2
    3
      usb_debug.c
  2. 0
    1
      usb_debug.h

+ 2
- 3
usb_debug.c View 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)
{

+ 0
- 1
usb_debug.h View 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

Loading…
Cancel
Save