瀏覽代碼

Increase buffer size of PS2 protocol

core
tmk 11 年之前
父節點
當前提交
a46024a678
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      protocol/ps2.c
  2. 1
    1
      protocol/ps2_usart.c

+ 1
- 1
protocol/ps2.c 查看文件

} }
#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 查看文件

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