2013-05-21 07:19:38 +00:00
|
|
|
/* nazwa pliku: key.h
|
2013-06-09 08:05:35 +00:00
|
|
|
opis: Odczyt klawiszy - nagłówek
|
2013-05-21 07:19:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __KEY_H
|
|
|
|
#define __KEY_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
//-----------------------------Stałe------------------------------//
|
|
|
|
//kody klawiszy
|
|
|
|
#define KEY_IDLE 0
|
2013-06-09 08:05:35 +00:00
|
|
|
#define KEY_MEAS 1
|
|
|
|
#define KEY_2 2
|
2013-05-21 07:19:38 +00:00
|
|
|
|
|
|
|
#define DEBOUNCE_DELAY 50 //50ms
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------Funkcje------------------------------//
|
|
|
|
void Key_Initialize (void);
|
2013-06-09 08:05:35 +00:00
|
|
|
uint8_t Key_Poll (void);
|
2013-05-21 07:19:38 +00:00
|
|
|
uint8_t Key_Get (void);
|
|
|
|
void Key_ClearEvent (void);
|
|
|
|
|
|
|
|
#endif
|