mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Small fixes.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@181 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
818fa05608
commit
7578f74e8c
@ -199,22 +199,21 @@ static const uint8_t PIOS_USB_HID_ReportDescriptor[PIOS_USB_HID_SIZ_REPORT_DESC]
|
||||
0x06, 0x9c, 0xff, /* Usage Page (Vendor Defined) */
|
||||
0x09, 0x01, /* Usage (Vendor Defined) */
|
||||
0xa1, 0x01, /* Collection (Vendor Defined) */
|
||||
#if 1
|
||||
|
||||
0x09, 0x02, /* Usage (Vendor Defined) */
|
||||
0x75, 0x08, /* Report Size (8) */
|
||||
0x95, 8, /* Report Count (64) */
|
||||
0x95, 64, /* Report Count (64) */
|
||||
0x15, 0x00, /* Logical Minimum (0) */
|
||||
0x25, 0xff, /* Logical Maximum (255) */
|
||||
0x81, 0x02, /* Input (Data, Variable, Absolute) */
|
||||
|
||||
0x09, 0x03, /* Usage (Vendor Defined) */
|
||||
0x75, 0x08, /* Report Size (8) */
|
||||
0x95, 8, /* Report Count (64) */
|
||||
0x95, 64, /* Report Count (64) */
|
||||
0x15, 0x00, /* Logical Minimum (0) */
|
||||
0x25, 0xff, /* Logical Maximum (255) */
|
||||
0x91, 0x02, /* Output (Data, Variable, Absolute) */
|
||||
0x81, 0x02, /* Input (Data, Variable, Absolute) */
|
||||
#endif
|
||||
|
||||
0xc0 /* End Collection */
|
||||
};
|
||||
static ONE_DESCRIPTOR PIOS_USB_HID_Report_Descriptor = {(uint8_t *) PIOS_USB_HID_ReportDescriptor, PIOS_USB_HID_SIZ_REPORT_DESC};
|
||||
|
@ -31,9 +31,7 @@
|
||||
//#define PIOS_USB_HID_SIZ_REPORT_DESC 26
|
||||
//#define PIOS_USB_HID_SIZ_REPORT_DESC 67
|
||||
//#define PIOS_USB_HID_SIZ_REPORT_DESC 122
|
||||
#define PIOS_USB_HID_SIZ_REPORT_DESC 34
|
||||
//#define PIOS_USB_HID_SIZ_REPORT_DESC 23
|
||||
//#define PIOS_USB_HID_SIZ_REPORT_DESC 28
|
||||
#define PIOS_USB_HID_SIZ_REPORT_DESC 32
|
||||
|
||||
#define PIOS_USB_HID_REPORT_DESCRIPTOR 0x22
|
||||
#define PIOS_USB_HID_HID_DESCRIPTOR_TYPE 0x21
|
||||
|
@ -176,7 +176,7 @@ static void TaskHIDTest(void *pvParameters)
|
||||
|
||||
for(;;)
|
||||
{
|
||||
Send_Buffer[0] = 0x01;
|
||||
Send_Buffer[0] = 'H';
|
||||
Send_Buffer[1] = 'e';
|
||||
Send_Buffer[2] = 'l';
|
||||
Send_Buffer[3] = 'l';
|
||||
|
Loading…
Reference in New Issue
Block a user