Implement key debouncer.
This commit is contained in:
18
right/src/key_debouncer.h
Normal file
18
right/src/key_debouncer.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __KEY_DEBOUNCER_H__
|
||||
#define __KEY_DEBOUNCER_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "peripherals/pit.h"
|
||||
#include "fsl_common.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define KEY_DEBOUNCER_INTERVAL_MSEC 1
|
||||
#define KEY_DEBOUNCER_TIMEOUT_MSEC 10
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitKeyDebouncer(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user