diff options
| author | QMK Bot <hello@qmk.fm> | 2020-02-02 02:40:30 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2020-02-02 02:40:30 +0000 |
| commit | 4888a118c363ed73d913ef8c70eb643dd3ea8bd0 (patch) | |
| tree | 9e90bd5dfdf0f6a5aee16431527c96aa594ebeb2 /tmk_core | |
| parent | e036b94a215157bb45913a22267d709ec5c6ef5f (diff) | |
| download | qmk_firmware-4888a118c363ed73d913ef8c70eb643dd3ea8bd0.tar.gz qmk_firmware-4888a118c363ed73d913ef8c70eb643dd3ea8bd0.zip | |
format code according to conventions [skip ci]
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/protocol/arm_atsam/usb/udi_hid_kbd.c | 46 |
1 files changed, 27 insertions, 19 deletions
diff --git a/tmk_core/protocol/arm_atsam/usb/udi_hid_kbd.c b/tmk_core/protocol/arm_atsam/usb/udi_hid_kbd.c index ace7c2108..5b3295407 100644 --- a/tmk_core/protocol/arm_atsam/usb/udi_hid_kbd.c +++ b/tmk_core/protocol/arm_atsam/usb/udi_hid_kbd.c | |||
| @@ -381,27 +381,35 @@ UDC_DESC_STORAGE udi_hid_exk_report_desc_t udi_hid_exk_report_desc = {{ | |||
| 381 | 0x09, 0x80, // Usage (System Control) | 381 | 0x09, 0x80, // Usage (System Control) |
| 382 | 0xA1, 0x01, // Collection (Application) | 382 | 0xA1, 0x01, // Collection (Application) |
| 383 | 0x85, REPORT_ID_SYSTEM, // Report ID | 383 | 0x85, REPORT_ID_SYSTEM, // Report ID |
| 384 | 0x1A, 0x81, 0x00, // Usage Minimum (81) (System Power Down) | 384 | 0x1A, 0x81, |
| 385 | 0x2A, 0x83, 0x00, // Usage Maximum (83) (System Wake Up) | 385 | 0x00, // Usage Minimum (81) (System Power Down) |
| 386 | 0x16, 0x01, 0x00, // Logical Minimum (1) | 386 | 0x2A, 0x83, |
| 387 | 0x26, 0x03, 0x00, // Logical Maximum (3) | 387 | 0x00, // Usage Maximum (83) (System Wake Up) |
| 388 | 0x95, 0x01, // Report Count (1) | 388 | 0x16, 0x01, |
| 389 | 0x75, 0x10, // Report Size (16) | 389 | 0x00, // Logical Minimum (1) |
| 390 | 0x81, 0x00, // Input (Data, Array, Absolute) | 390 | 0x26, 0x03, |
| 391 | 0xC0, // End Collection | 391 | 0x00, // Logical Maximum (3) |
| 392 | 0x95, 0x01, // Report Count (1) | ||
| 393 | 0x75, 0x10, // Report Size (16) | ||
| 394 | 0x81, 0x00, // Input (Data, Array, Absolute) | ||
| 395 | 0xC0, // End Collection | ||
| 392 | 396 | ||
| 393 | 0x05, 0x0C, // Usage Page (Consumer) | 397 | 0x05, 0x0C, // Usage Page (Consumer) |
| 394 | 0x09, 0x01, // Usage (Consumer Control) | 398 | 0x09, 0x01, // Usage (Consumer Control) |
| 395 | 0xA1, 0x01, // Collection (Application) | 399 | 0xA1, 0x01, // Collection (Application) |
| 396 | 0x85, REPORT_ID_CONSUMER, // Report ID | 400 | 0x85, REPORT_ID_CONSUMER, // Report ID |
| 397 | 0x1A, 0x01, 0x00, // Usage Minimum (Consumer Control) | 401 | 0x1A, 0x01, |
| 398 | 0x2A, 0x9C, 0x02, // Usage Maximum (AC Distribute Vertically) | 402 | 0x00, // Usage Minimum (Consumer Control) |
| 399 | 0x16, 0x01, 0x00, // Logical Minimum | 403 | 0x2A, 0x9C, |
| 400 | 0x26, 0x9C, 0x02, // Logical Maximum | 404 | 0x02, // Usage Maximum (AC Distribute Vertically) |
| 401 | 0x95, 0x01, // Report Count (1) | 405 | 0x16, 0x01, |
| 402 | 0x75, 0x10, // Report Size (16) | 406 | 0x00, // Logical Minimum |
| 403 | 0x81, 0x00, // Input (Data, Array, Absolute) | 407 | 0x26, 0x9C, |
| 404 | 0xC0 // End Collection | 408 | 0x02, // Logical Maximum |
| 409 | 0x95, 0x01, // Report Count (1) | ||
| 410 | 0x75, 0x10, // Report Size (16) | ||
| 411 | 0x81, 0x00, // Input (Data, Array, Absolute) | ||
| 412 | 0xC0 // End Collection | ||
| 405 | }}; | 413 | }}; |
| 406 | 414 | ||
| 407 | static bool udi_hid_exk_setreport(void); | 415 | static bool udi_hid_exk_setreport(void); |
| @@ -758,9 +766,9 @@ static uint8_t udi_hid_con_report_trans[UDI_HID_CON_REPORT_SIZE]; | |||
| 758 | 766 | ||
| 759 | COMPILER_WORD_ALIGNED | 767 | COMPILER_WORD_ALIGNED |
| 760 | UDC_DESC_STORAGE udi_hid_con_report_desc_t udi_hid_con_report_desc = {{ | 768 | UDC_DESC_STORAGE udi_hid_con_report_desc_t udi_hid_con_report_desc = {{ |
| 761 | 0x06, 0x31, 0xFF, // Usage Page (Vendor Defined - PJRC Teensy compatible) | 769 | 0x06, 0x31, 0xFF, // Usage Page (Vendor Defined - PJRC Teensy compatible) |
| 762 | 0x09, 0x74, // Usage (Vendor Defined - PJRC Teensy compatible) | 770 | 0x09, 0x74, // Usage (Vendor Defined - PJRC Teensy compatible) |
| 763 | 0xA1, 0x01, // Collection (Application) | 771 | 0xA1, 0x01, // Collection (Application) |
| 764 | // Data to host | 772 | // Data to host |
| 765 | 0x09, 0x75, // Usage (Vendor Defined) | 773 | 0x09, 0x75, // Usage (Vendor Defined) |
| 766 | 0x15, 0x00, // Logical Minimum (0x00) | 774 | 0x15, 0x00, // Logical Minimum (0x00) |
