Browse Source

Update usb_mouse.c

Add MOUSE_BACK, MOUSE_FORWARD
main
Xenoamor 8 years ago
parent
commit
85aac131a4
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      teensy3/usb_mouse.c

+ 5
- 1
teensy3/usb_mouse.c View File

// When the PC isn't listening, how long do we wait before discarding data? // When the PC isn't listening, how long do we wait before discarding data?
#define TX_TIMEOUT_MSEC 30 #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) #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 1100)
#elif F_CPU == 144000000 #elif F_CPU == 144000000
#define TX_TIMEOUT (TX_TIMEOUT_MSEC * 932) #define TX_TIMEOUT (TX_TIMEOUT_MSEC * 932)

Loading…
Cancel
Save