pbuf[pbuf_head] = data;
pbuf_head = next;
} else {
- print("pbuf: full\n");
+ debug("pbuf: full\n");
}
}
static inline uint8_t pbuf_dequeue(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