1
0
Fork 0

Increase buffer size of PS2 protocol

This commit is contained in:
tmk 2013-05-04 14:51:46 +09:00
parent 95001dd6e4
commit 7343366d3d
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ uint8_t ps2_host_recv(void)
} }
#else #else
/* ring buffer to store ps/2 key data */ /* ring buffer to store ps/2 key data */
#define PBUF_SIZE 8 #define PBUF_SIZE 32
static uint8_t pbuf[PBUF_SIZE]; static uint8_t pbuf[PBUF_SIZE];
static uint8_t pbuf_head = 0; static uint8_t pbuf_head = 0;
static uint8_t pbuf_tail = 0; static uint8_t pbuf_tail = 0;

View file

@ -287,7 +287,7 @@ static inline void inhibit(void)
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
* Ring buffer to store scan codes from keyboard * Ring buffer to store scan codes from keyboard
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
#define PBUF_SIZE 8 #define PBUF_SIZE 32
static uint8_t pbuf[PBUF_SIZE]; static uint8_t pbuf[PBUF_SIZE];
static uint8_t pbuf_head = 0; static uint8_t pbuf_head = 0;
static uint8_t pbuf_tail = 0; static uint8_t pbuf_tail = 0;