Increase the infinity60 system tick frequency
This commit is contained in:
parent
04df74f636
commit
c06e2486ab
2 changed files with 7 additions and 2 deletions
|
@ -48,7 +48,7 @@
|
||||||
* @details Frequency of the system timer that drives the system ticks. This
|
* @details Frequency of the system timer that drives the system ticks. This
|
||||||
* setting also defines the system tick time unit.
|
* 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.
|
* @brief Time delta constant for the tick-less mode.
|
||||||
|
|
|
@ -96,7 +96,12 @@ uint8_t matrix_scan(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wait_us(1); // need wait to settle pin state
|
// need wait to settle pin state
|
||||||
|
// if you wait too short, or have a too high update rate
|
||||||
|
// the keyboard might freeze, or there might not be enough
|
||||||
|
// processing power to update the LCD screen properly.
|
||||||
|
// 20us, or two ticks at 100000Hz seems to be OK
|
||||||
|
wait_us(20);
|
||||||
|
|
||||||
// read col data
|
// read col data
|
||||||
data = (palReadPort(GPIOD)>>1);
|
data = (palReadPort(GPIOD)>>1);
|
||||||
|
|
Loading…
Reference in a new issue