Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Durgod: Increase scan rate by using wait_us timer #14091

Merged
merged 1 commit into from
Dec 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion keyboards/durgod/boards/DURGOD_STM32_F070/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#pragma once

#define CH_CFG_ST_FREQUENCY 10000
#define CH_CFG_ST_FREQUENCY 1000

#define CH_CFG_ST_TIMEDELTA 0

Expand Down
2 changes: 1 addition & 1 deletion keyboards/durgod/boards/DURGOD_STM32_F070/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
*/
#define STM32_GPT_USE_TIM1 FALSE
#define STM32_GPT_USE_TIM2 FALSE
#define STM32_GPT_USE_TIM3 FALSE
#define STM32_GPT_USE_TIM3 TRUE
#define STM32_GPT_USE_TIM14 FALSE
#define STM32_GPT_TIM1_IRQ_PRIORITY 2
#define STM32_GPT_TIM2_IRQ_PRIORITY 2
Expand Down
3 changes: 3 additions & 0 deletions keyboards/durgod/dgk6x/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions keyboards/durgod/dgk6x/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@
#ifdef RGB_MATRIX_ENABLE
#define HAL_USE_I2C TRUE
#endif

#define HAL_USE_GPT TRUE

#include_next <halconf.h>
3 changes: 3 additions & 0 deletions keyboards/durgod/k3x0/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#define VENDOR_ID 0xD60D
#define MANUFACTURER Hoksi Technology

#define USB_POLLING_INTERVAL_MS 1
#define WAIT_US_TIMER GPTD3

/* key matrix size (rows in specific keyboard variant) */
#define MATRIX_COLS 16

Expand Down
2 changes: 2 additions & 0 deletions keyboards/durgod/k3x0/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@
#define HAL_USE_PAL TRUE
#define PAL_USE_CALLBACKS TRUE

#define HAL_USE_GPT TRUE

#include_next <halconf.h>