Changeset 5649b6c in avrstuff for starkadroid/code/usbconfig.h


Ignore:
Timestamp:
Nov 14, 2010, 12:01:03 PM (14 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
8f4b118
Parents:
98713b5
Message:
  • Report everything as buttons.
  • Don't periodically send reports. Only send one when there is an actual change of button state
  • Set the period to 20ms, as that's enough.
  • Some code cleanup.

git-svn-id: svn://pulkomandy.tk/avrstuff@31 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • starkadroid/code/usbconfig.h

    r98713b5 r5649b6c  
    6868 * low speed devices.
    6969 */
    70 #define USB_CFG_INTR_POLL_INTERVAL      10
     70#define USB_CFG_INTR_POLL_INTERVAL      20
    7171/** Define this to 1 if the device has its own power supply. Set it to 0 if the
    7272 * device is powered from the USB bus.
     
    8282 * bytes.
    8383 */
    84 #define USB_CFG_IMPLEMENT_FN_WRITE      1
     84#define USB_CFG_IMPLEMENT_FN_WRITE      0
    8585/** Set this to 1 if you need to send control replies which are generated
    8686 * "on the fly" when usbFunctionRead() is called. If you only want to send
     
    165165 * an HID device. Otherwise don't define it or define it to 0.
    166166 */
    167 #define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    42
     167#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    26
    168168
    169169/* ------------------- Fine Control over USB Descriptors ------------------- */
Note: See TracChangeset for help on using the changeset viewer.