?? portdef.inc
字號:
;========================================================================
; This is the Cypress Dual Interface Keyboard hardware port defines
;
;========================================================================
DEBOUNCE_PRESS_TIME: equ 03h ; Set debounce time for
; key press equal to 12 ms
; (3 * 4 ms)
DEBOUNCE_RELEASE_TIME: equ 01h ; Set debounce time for
; key release equal to 4 ms
; (1 * 4 ms)
; LED and KEY bit masks in port 3
P3_KEY_MASK: equ c0h ; bits[7:4]
P3_LED_MASK: equ 07h ; bits[3:0]
P3_KEY_LSBIT_MASK: equ 040h ; first bit of key drive lines in p3
P3_USB_CONN_MASK: equ 08h; usb connection bit
; LED positions in port 3
NUM_LOCK_LED: equ 1h ; bit[0]
CAPS_LOCK_LED: equ 2h ; bit[1]
SCROLL_LOCK_LED: equ 4h ; bit[2]
; Normal GPIO port configuration
NORMAL: equ f5h ; Port3 resistive neg
; Port2 resistive neg
; Port1 open drain neg
; Port0 open drain neg
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -