Browse Source

Add included header file and fix debug print

tags/v1.9
tmk 10 years ago
parent
commit
8b4fa599cf
2 changed files with 5 additions and 5 deletions
  1. 3
    2
      protocol/ps2_interrupt.c
  2. 2
    3
      protocol/ps2_usart.c

+ 3
- 2
protocol/ps2_interrupt.c View File

*/ */


#include <stdbool.h> #include <stdbool.h>
#include <avr/interrupt.h>
#include <util/delay.h> #include <util/delay.h>
#include "ps2.h" #include "ps2.h"
#include "debug.h"
#include "print.h"




#define WAIT(stat, us, err) do { \ #define WAIT(stat, us, err) do { \
pbuf[pbuf_head] = data; pbuf[pbuf_head] = data;
pbuf_head = next; pbuf_head = next;
} else { } else {
debug("pbuf: full\n");
print("pbuf: full\n");
} }
SREG = sreg; SREG = sreg;
} }

+ 2
- 3
protocol/ps2_usart.c View File

*/ */


#include <stdbool.h> #include <stdbool.h>
#include <avr/io.h>
#include <avr/interrupt.h> #include <avr/interrupt.h>
#include <util/delay.h> #include <util/delay.h>
#include "ps2.h" #include "ps2.h"
#include "debug.h"
#include "print.h"




#define WAIT(stat, us, err) do { \ #define WAIT(stat, us, err) do { \
pbuf[pbuf_head] = data; pbuf[pbuf_head] = data;
pbuf_head = next; pbuf_head = next;
} else { } else {
debug("pbuf: full\n");
print("pbuf: full\n");
} }
SREG = sreg; SREG = sreg;
} }

Loading…
Cancel
Save