Skip to content

Commit

Permalink
usb_main.c: remove CH_KERNEL_MAJOR check (qmk#19597)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Jan 15, 2023
1 parent 8046467 commit a920714
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tmk_core/protocol/chibios/usb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ uint8_t keyboard_led_state = 0;
volatile uint16_t keyboard_idle_count = 0;
static virtual_timer_t keyboard_idle_timer;

#if CH_KERNEL_MAJOR >= 7
static void keyboard_idle_timer_cb(struct ch_virtual_timer *, void *arg);
#elif CH_KERNEL_MAJOR <= 6
static void keyboard_idle_timer_cb(void *arg);
#endif

report_keyboard_t keyboard_report_sent = {{0}};
report_mouse_t mouse_report_sent = {0};
Expand Down Expand Up @@ -827,12 +823,8 @@ __attribute__((weak)) void restart_usb_driver(USBDriver *usbp) {

/* Idle requests timer code
* callback (called from ISR, unlocked state) */
#if CH_KERNEL_MAJOR >= 7
static void keyboard_idle_timer_cb(struct ch_virtual_timer *timer, void *arg) {
(void)timer;
#elif CH_KERNEL_MAJOR <= 6
static void keyboard_idle_timer_cb(void *arg) {
#endif
USBDriver *usbp = (USBDriver *)arg;

osalSysLockFromISR();
Expand Down

0 comments on commit a920714

Please sign in to comment.