summaryrefslogtreecommitdiff
path: root/ps2.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-10 15:51:30 +0900
committertmk <nobody@nowhere>2011-02-22 03:09:02 +0900
commit2b8cd88ab142068eed0a3f230a3de79deb567536 (patch)
treece62861e44d57791ff43391d841ea125ce319754 /ps2.c
parentacc974c64b1e17e6807133fdc50de5bb34aedda5 (diff)
refactor keyboard.h, host.h
Diffstat (limited to 'ps2.c')
-rw-r--r--ps2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ps2.c b/ps2.c
index f7aaf96e3f..6d76538fe4 100644
--- a/ps2.c
+++ b/ps2.c
@@ -190,7 +190,7 @@ static inline void pbuf_enqueue(uint8_t data)
pbuf[pbuf_head] = data;
pbuf_head = next;
} else {
- print("pbuf: full\n");
+ debug("pbuf: full\n");
}
}
static inline uint8_t pbuf_dequeue(void)
@@ -214,14 +214,12 @@ uint8_t ps2_host_recv(void)
ISR(PS2_INT_VECT)
{
-PORTC = 0xFF;
/* interrupt means start bit comes */
pbuf_enqueue(recv_data());
/* release lines(idle state) */
idle();
_delay_us(5);
-PORTC = 0x00;
}
#endif