Extract PIT related macros to the newly created peripherals/pit.h
This commit is contained in:
@@ -3,17 +3,13 @@
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "peripherals/pit.h"
|
||||
#include "right_key_matrix.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define KEY_SCANNER_INTERVAL_USEC (1000 / RIGHT_KEY_MATRIX_ROWS_NUM)
|
||||
|
||||
#define PIT_KEY_SCANNER_HANDLER PIT1_IRQHandler
|
||||
#define PIT_KEY_SCANNER_IRQ_ID PIT1_IRQn
|
||||
#define PIT_KEY_SCANNER_CHANNEL kPIT_Chnl_1
|
||||
#define PIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_BusClk)
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitKeyScanner(void);
|
||||
|
||||
Reference in New Issue
Block a user