瀏覽代碼

Update usb_mouse.c

Add MOUSE_BACK, MOUSE_FORWARD
main
Xenoamor 8 年之前
父節點
當前提交
85aac131a4
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      teensy3/usb_mouse.c

+ 5
- 1
teensy3/usb_mouse.c 查看文件

@@ -117,7 +117,11 @@ static uint8_t transmit_previous_timeout=0;
// When the PC isn't listening, how long do we wait before discarding data?
#define TX_TIMEOUT_MSEC 30

#if F_CPU == 168000000
#if F_CPU == 192000000
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 1280)
#elif F_CPU == 180000000
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 1200)
#elif F_CPU == 168000000
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 1100)
#elif F_CPU == 144000000
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 932)

Loading…
取消
儲存