diff options
| author | QMK Bot <hello@qmk.fm> | 2022-12-08 09:10:52 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-09 04:10:52 +1100 |
| commit | 1786932d9fce138fea30f08031153ef98be75ec3 (patch) | |
| tree | 1d64ed035579738010234520c3ca4e6ecb62fa86 /tmk_core | |
| parent | a23333eb586943c94dc9ab2d69cecc1c2ffc8e8e (diff) | |
[CI] Format code according to conventions (#19265)
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/protocol/chibios/usb_main.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index 3ffea0a712..47edd7cb8c 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c | |||
| @@ -76,10 +76,10 @@ static void keyboard_idle_timer_cb(void *arg); | |||
| 76 | #endif | 76 | #endif |
| 77 | 77 | ||
| 78 | report_keyboard_t keyboard_report_sent = {{0}}; | 78 | report_keyboard_t keyboard_report_sent = {{0}}; |
| 79 | report_mouse_t mouse_report_sent = {0}; | 79 | report_mouse_t mouse_report_sent = {0}; |
| 80 | 80 | ||
| 81 | union { | 81 | union { |
| 82 | uint8_t report_id; | 82 | uint8_t report_id; |
| 83 | report_keyboard_t keyboard; | 83 | report_keyboard_t keyboard; |
| 84 | #ifdef EXTRAKEY_ENABLE | 84 | #ifdef EXTRAKEY_ENABLE |
| 85 | report_extra_t extra; | 85 | report_extra_t extra; |
| @@ -126,7 +126,7 @@ static const USBDescriptor *usb_get_descriptor_cb(USBDriver *usbp, uint8_t dtype | |||
| 126 | uint16_t wValue = ((uint16_t)dtype << 8) | dindex; | 126 | uint16_t wValue = ((uint16_t)dtype << 8) | dindex; |
| 127 | uint16_t wLength = ((uint16_t)usbp->setup[7] << 8) | usbp->setup[6]; | 127 | uint16_t wLength = ((uint16_t)usbp->setup[7] << 8) | usbp->setup[6]; |
| 128 | desc.ud_string = NULL; | 128 | desc.ud_string = NULL; |
| 129 | desc.ud_size = get_usb_descriptor(wValue, wIndex, wLength, (const void **const)&desc.ud_string); | 129 | desc.ud_size = get_usb_descriptor(wValue, wIndex, wLength, (const void **const) & desc.ud_string); |
| 130 | if (desc.ud_string == NULL) | 130 | if (desc.ud_string == NULL) |
| 131 | return NULL; | 131 | return NULL; |
| 132 | else | 132 | else |
| @@ -638,24 +638,24 @@ static bool usb_request_hook_cb(USBDriver *usbp) { | |||
| 638 | case MOUSE_INTERFACE: | 638 | case MOUSE_INTERFACE: |
| 639 | usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL); | 639 | usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL); |
| 640 | return TRUE; | 640 | return TRUE; |
| 641 | break; | 641 | break; |
| 642 | #endif | 642 | #endif |
| 643 | #ifdef SHARED_EP_ENABLE | 643 | #ifdef SHARED_EP_ENABLE |
| 644 | case SHARED_INTERFACE: | 644 | case SHARED_INTERFACE: |
| 645 | # ifdef KEYBOARD_SHARED_EP | 645 | # ifdef KEYBOARD_SHARED_EP |
| 646 | if (usbp->setup[2] == REPORT_ID_KEYBOARD) { | 646 | if (usbp->setup[2] == REPORT_ID_KEYBOARD) { |
| 647 | usbSetupTransfer(usbp, (uint8_t *)&keyboard_report_sent, KEYBOARD_REPORT_SIZE, NULL); | 647 | usbSetupTransfer(usbp, (uint8_t *)&keyboard_report_sent, KEYBOARD_REPORT_SIZE, NULL); |
| 648 | return TRUE; | 648 | return TRUE; |
| 649 | break; | 649 | break; |
| 650 | } | 650 | } |
| 651 | # endif | 651 | # endif |
| 652 | # ifdef MOUSE_SHARED_EP | 652 | # ifdef MOUSE_SHARED_EP |
| 653 | if (usbp->setup[2] == REPORT_ID_MOUSE) { | 653 | if (usbp->setup[2] == REPORT_ID_MOUSE) { |
| 654 | usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL); | 654 | usbSetupTransfer(usbp, (uint8_t *)&mouse_report_sent, sizeof(mouse_report_sent), NULL); |
| 655 | return TRUE; | 655 | return TRUE; |
| 656 | break; | 656 | break; |
| 657 | } | 657 | } |
| 658 | # endif | 658 | # endif |
| 659 | #endif /* SHARED_EP_ENABLE */ | 659 | #endif /* SHARED_EP_ENABLE */ |
| 660 | default: | 660 | default: |
| 661 | universal_report_blank.report_id = usbp->setup[2]; | 661 | universal_report_blank.report_id = usbp->setup[2]; |
