Move USB fix from keymap.c to keymap level config.h

This commit is contained in:
Blake Drayson 2024-06-18 09:02:57 +01:00
parent ff7f4cc576
commit 75fb148bb0
6 changed files with 72 additions and 18 deletions

View File

@ -0,0 +1,24 @@
/*Copyright 2021 Blake Drayson / Draytronics
Contact info@draytronics.co.uk
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//KVM Specific tweaks to prevent key repeat on wake from sleep.
//Please comment out and recompile if you do not wish to use them.
#pragma once
#define USB_POLLING_INTERVAL_MS 8
#define USB_SUSPEND_WAKEUP_DELAY 3000

View File

@ -18,12 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include QMK_KEYBOARD_H
//Fix to prevent key repeat on wake from sleep when using a KVM / non direct usb connection.
#undef USB_POLLING_INTERVAL_MS
#define USB_POLLING_INTERVAL_MS 8
#undef USB_SUSPEND_WAKEUP_DELAY
#define USB_SUSPEND_WAKEUP_DELAY 3000
enum custom_layers {
_BL,
_FL,

View File

@ -0,0 +1,24 @@
/*Copyright 2021 Blake Drayson / Draytronics
Contact info@draytronics.co.uk
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//KVM Specific tweaks to prevent key repeat on wake from sleep.
//Please comment out and recompile if you do not wish to use them.
#pragma once
#define USB_POLLING_INTERVAL_MS 8
#define USB_SUSPEND_WAKEUP_DELAY 3000

View File

@ -17,12 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
//Fix to prevent key repeat on wake from sleep when using a KVM / non direct usb connection.
#undef USB_POLLING_INTERVAL_MS
#define USB_POLLING_INTERVAL_MS 8
#undef USB_SUSPEND_WAKEUP_DELAY
#define USB_SUSPEND_WAKEUP_DELAY 3000
enum custom_layers {
_BL,
_FL,

View File

@ -0,0 +1,24 @@
/*Copyright 2021 Blake Drayson / Draytronics
Contact info@draytronics.co.uk
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//KVM Specific tweaks to prevent key repeat on wake from sleep.
//Please comment out and recompile if you do not wish to use them.
#pragma once
#define USB_POLLING_INTERVAL_MS 8
#define USB_SUSPEND_WAKEUP_DELAY 3000

View File

@ -18,12 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include QMK_KEYBOARD_H
//Fix to prevent key repeat on wake from sleep when using a KVM / non direct usb connection.
#undef USB_POLLING_INTERVAL_MS
#define USB_POLLING_INTERVAL_MS 8
#undef USB_SUSPEND_WAKEUP_DELAY
#define USB_SUSPEND_WAKEUP_DELAY 3000
enum custom_layers {
_BL,
_FL,