Browse Source

Merge remote-tracking branch 'origin/master' into develop

QMK Bot 2 years ago
parent
commit
67f52935e3

+ 4 - 1
keyboards/teleport/native/ansi/keymaps/perfmode/config.h

@@ -20,4 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 /* Increase eeprom size to allow for 5 layers */
 #define WEAR_LEVELING_BACKING_SIZE 16384
-#define WEAR_LEVELING_LOGICAL_SIZE 4096
+#define WEAR_LEVELING_LOGICAL_SIZE 4096
+
+/* Increase debounce, as asym eager seems to lead to chatter with the fast polling rate in some cases */
+#define DEBOUNCE 7

+ 3 - 0
keyboards/teleport/native/ansi/keymaps/perfmode/keymap.c

@@ -15,6 +15,9 @@
  */
 #include QMK_KEYBOARD_H
 
+// tested and working
+void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
+
 enum layers{
     BASE,
     GAME,

+ 1 - 0
keyboards/teleport/native/ansi/keymaps/perfmode/rules.mk

@@ -1,4 +1,5 @@
 DEBOUNCE_TYPE = asym_eager_defer_pk 
+OPT = 2
 
 VIA_ENABLE = yes
  

+ 2 - 1
keyboards/teleport/native/info.json

@@ -19,7 +19,8 @@
         "console": false,
         "extrakey": true,
         "mousekey": true,
-        "nkro": true
+        "nkro": true,
+        "lto": true
     },
     "diode_direction": "ROW2COL",
     "matrix_pins": {

+ 4 - 1
keyboards/teleport/native/iso/keymaps/perfmode/config.h

@@ -20,4 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 /* Increase eeprom size to allow for 5 layers */
 #define WEAR_LEVELING_BACKING_SIZE 16384
-#define WEAR_LEVELING_LOGICAL_SIZE 4096
+#define WEAR_LEVELING_LOGICAL_SIZE 4096
+
+/* Increase debounce, as asym eager seems to lead to chatter with the fast polling rate in some cases */
+#define DEBOUNCE 7

+ 3 - 0
keyboards/teleport/native/iso/keymaps/perfmode/keymap.c

@@ -15,6 +15,9 @@
  */
 #include QMK_KEYBOARD_H
 
+// tested and working
+void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
+
 enum layers{
     BASE,
     GAME,

+ 1 - 0
keyboards/teleport/native/iso/keymaps/perfmode/rules.mk

@@ -1,4 +1,5 @@
 DEBOUNCE_TYPE = asym_eager_defer_pk 
+OPT = 2
 
 VIA_ENABLE = yes
  

+ 3 - 1
keyboards/teleport/native/native.c

@@ -17,9 +17,11 @@
 #include "quantum.h"
 
 /* This board has !SDB of the is31 wired to D2. Set high to enable */
-void keyboard_post_init_user(void) {
+void keyboard_post_init_kb(void) {
     setPinOutput(B9);
     writePinHigh(B9);
+    
+    keyboard_post_init_user();
 }
 
 #ifdef RGB_MATRIX_ENABLE