ps2.inc
来自「这是使用CYPRESS的7C637xx芯片完成USB鼠标的例子。」· INC 代码 · 共 42 行
INC
42 行
;========================================================================
; FILE: ps2.inc
;
; This file contains ps2-specific delarations
;
;========================================================================
BAT_PASS: equ 0aah
BAT_FAIL: equ 055h
;ps2 clock, data bits are D+ and D-, respectively
PS2_CLOCK_BIT: equ 20h
PS2_DATA_BIT: equ 10h
;PS2 response byte declarations
PS2_RESEND: equ 0feh ; Resend response (request resend from host)
PS2_ACK: equ 0fah ; ACK response
PS2_ERROR: equ 0fch ; Error response
;
; PS2 commands
;
PS2_RESET_CMD: equ 0FFh
PS2_RESET_WRAP_MODE_CMD: equ 0ECh
PS2_SET_SAMPLE_RATE_CMD: equ 0F3h
PS2_SET_RESOLUTION_CMD: equ 0E8h
;
; PS2 Mouse Resolution
;
RES1: equ 00h ; 1 count/mm
RES2: equ 01h ; 2 counts/mm
RES4: equ 02h ; 4 counts/mm
RES8: equ 03h ; 8 counts/mm
;
; PS2 Scaling
;
SCALE2_1: equ 01h ; scale 2:1
SCALE1_1: equ 00h ; scale 1:1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?