summaryrefslogtreecommitdiff
path: root/keyboards/whitefox
diff options
context:
space:
mode:
authorKaleb Elwert <belak@coded.io>2017-01-09 10:54:36 -0800
committerKaleb Elwert <belak@coded.io>2017-01-09 10:54:36 -0800
commita702f4631ebfb8f2ae92c8da0cc9a49d899bd920 (patch)
tree6a7a7fa1494ca3560716a7b39d6e8e4e4edd46da /keyboards/whitefox
parentef2ebeb3cace7f2555ccf655f3a7bb7c9bb77b76 (diff)
Increase tick frequency for responsiveness
Based off of PR #866 which did the same thing for the infinity60
Diffstat (limited to 'keyboards/whitefox')
-rw-r--r--keyboards/whitefox/chconf.h2
-rw-r--r--keyboards/whitefox/matrix.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/whitefox/chconf.h b/keyboards/whitefox/chconf.h
index 43c845739a..d9114ec858 100644
--- a/keyboards/whitefox/chconf.h
+++ b/keyboards/whitefox/chconf.h
@@ -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.
diff --git a/keyboards/whitefox/matrix.c b/keyboards/whitefox/matrix.c
index ce35bca287..d69b82d61d 100644
--- a/keyboards/whitefox/matrix.c
+++ b/keyboards/whitefox/matrix.c
@@ -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) |