Durgod: Increase scan rate by using wait_us GPT timer (#14091)
Lower the tick rate from 10kHz to 1kHz (otherwise all the extra interrupts reduce the achievable scan rate). Enable the WAIT_US_TIMER using GPT TIM3. Observed scan rate on the K320 is increased from 625Hz to 2090-2120Hz.
This commit is contained in:
@@ -22,6 +22,9 @@
|
||||
#define VENDOR_ID 0xD60D
|
||||
#define MANUFACTURER Hoksi Technology
|
||||
|
||||
#define USB_POLLING_INTERVAL_MS 1
|
||||
#define WAIT_US_TIMER GPTD3
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION ROW2COL
|
||||
|
||||
|
@@ -19,4 +19,7 @@
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define HAL_USE_I2C TRUE
|
||||
#endif
|
||||
|
||||
#define HAL_USE_GPT TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
|
Reference in New Issue
Block a user