24 lines
393 B
C
24 lines
393 B
C
#ifndef __KEY_STATES_H__
|
|
#define __KEY_STATES_H__
|
|
|
|
// Includes:
|
|
|
|
#include "fsl_common.h"
|
|
#include "slot.h"
|
|
#include "module.h"
|
|
|
|
// Typedefs:
|
|
|
|
typedef struct {
|
|
bool previous;
|
|
bool current;
|
|
bool suppressed;
|
|
uint8_t debounceCounter;
|
|
} key_state_t;
|
|
|
|
// Variables:
|
|
|
|
extern key_state_t KeyStates[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
|
|
|
|
#endif
|