1
0

Add included header file and fix debug print

这个提交包含在:
tmk 2013-11-28 14:44:59 +09:00
父节点 90c6f003ec
当前提交 83634bfa2c
共有 2 个文件被更改,包括 5 次插入5 次删除

查看文件

@ -40,9 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdbool.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "ps2.h"
#include "debug.h"
#include "print.h"
#define WAIT(stat, us, err) do { \
@ -241,7 +242,7 @@ static inline void pbuf_enqueue(uint8_t data)
pbuf[pbuf_head] = data;
pbuf_head = next;
} else {
debug("pbuf: full\n");
print("pbuf: full\n");
}
SREG = sreg;
}

查看文件

@ -40,11 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdbool.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "ps2.h"
#include "debug.h"
#include "print.h"
#define WAIT(stat, us, err) do { \
@ -188,7 +187,7 @@ static inline void pbuf_enqueue(uint8_t data)
pbuf[pbuf_head] = data;
pbuf_head = next;
} else {
debug("pbuf: full\n");
print("pbuf: full\n");
}
SREG = sreg;
}