]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Increase tick frequency for responsiveness
authorKaleb Elwert <belak@coded.io>
Mon, 9 Jan 2017 18:54:36 +0000 (10:54 -0800)
committerKaleb Elwert <belak@coded.io>
Mon, 9 Jan 2017 18:54:36 +0000 (10:54 -0800)
Based off of PR #866 which did the same thing for the infinity60

keyboards/whitefox/chconf.h
keyboards/whitefox/matrix.c

index 43c845739a6a406b166340c5c39a5deec1f544ae..d9114ec858bc64011903be91318060531d7ba431 100644 (file)
@@ -48,7 +48,7 @@
  * @details Frequency of the system timer that drives the system ticks. This
  *          setting also defines the system tick time unit.
  */
-#define CH_CFG_ST_FREQUENCY                 1000
+#define CH_CFG_ST_FREQUENCY                 100000
 
 /**
  * @brief   Time delta constant for the tick-less mode.
index ce35bca28780e186f94d5f38dc3e024d0d99f263..d69b82d61d8e9bdd4a9b59eea8ce881f33b93825 100644 (file)
@@ -69,7 +69,7 @@ uint8_t matrix_scan(void)
             case 8: palSetPad(GPIOC, 11);   break;
         }
 
-        wait_us(1); // need wait to settle pin state
+        wait_us(10); // need wait to settle pin state
 
         // read col data: { PTD0, PTD1, PTD4, PTD5, PTD6, PTD7, PTC1, PTC2 }
         data = ((palReadPort(GPIOC) & 0x06UL) << 5) |