Set the left KEY_SCANNER_INTERVAL_USEC to 1000 / KEYBOARD_MATRIX_ROWS_NUM
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#ifndef __KEY_SCANNER_H__
|
||||
#define __KEY_SCANNER_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "main.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define LPTMR_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_LpoClk)
|
||||
@@ -9,7 +13,7 @@
|
||||
#define KEY_SCANNER_LPTMR_IRQ_ID LPTMR0_IRQn
|
||||
#define KEY_SCANNER_HANDLER LPTMR0_IRQHandler
|
||||
|
||||
#define KEY_SCANNER_INTERVAL_MSEC 1
|
||||
#define KEY_SCANNER_INTERVAL_USEC (1000 / KEYBOARD_MATRIX_ROWS_NUM)
|
||||
|
||||
// Functions:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user