aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/matrix.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-02-21 03:49:33 +0000
committerGitHub <noreply@github.com>2020-02-21 14:49:33 +1100
commit7707724dc4864cb4ede738ee9e2c3568df99ced2 (patch)
treea8107c5eaf6254ce71ae1e3c4b61d69b6c4ef7d4 /quantum/matrix.c
parent42d6270f28831e95d1cb9c14a7423d5b1d864d67 (diff)
downloadfirmware-7707724dc4864cb4ede738ee9e2c3568df99ced2.tar.gz
firmware-7707724dc4864cb4ede738ee9e2c3568df99ced2.tar.bz2
firmware-7707724dc4864cb4ede738ee9e2c3568df99ced2.zip
Allow 30us matrix delay to be keyboard/user overridable (#8216)
* Allow 30us matrix delay to be configurable via define * Move wait logic to matrix_common * Move wait logic to matrix_common - fix wait includes
Diffstat (limited to 'quantum/matrix.c')
-rw-r--r--quantum/matrix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c
index 6bd604bb7..67d8af6ee 100644
--- a/quantum/matrix.c
+++ b/quantum/matrix.c
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
-#include "wait.h"
#include "util.h"
#include "matrix.h"
#include "debounce.h"
@@ -94,7 +93,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row)
// Select row and wait for row selecton to stabilize
select_row(current_row);
- wait_us(30);
+ matrix_io_delay();
// For each col...
for (uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) {
@@ -138,7 +137,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col)
// Select col and wait for col selecton to stabilize
select_col(current_col);
- wait_us(30);
+ matrix_io_delay();
// For each row...
for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) {