Browse Source

Increase buffer size of PS2 protocol

tags/v1.9
tmk 11 years ago
parent
commit
7343366d3d
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      protocol/ps2.c
  2. 1
    1
      protocol/ps2_usart.c

+ 1
- 1
protocol/ps2.c View File

} }
#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;

+ 1
- 1
protocol/ps2_usart.c View File

/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
* 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;

Loading…
Cancel
Save