Implement key debouncer.

This commit is contained in:
László Monda
2017-11-14 22:54:53 +01:00
parent 9e18caa0ba
commit a0afdcf476
7 changed files with 79 additions and 10 deletions

18
right/src/key_debouncer.h Normal file
View 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