//--------------------------------------------------------------------------------------------------
//	PROGRAM : Set menu routines
//	VERSION : 1.0
//	AUTHOR  : Bc. Pazour Zbynìk
//	DATE	: 07.09.2009
//--------------------------------------------------------------------------------------------------
#ifndef	 _menu_h
#define	 _menu_h
#define	alok_led			0x00
#define alok_vyber_cidel	0x08
#define alok_cidlo			0x10
#define alok_zobrazeni		0x18
#define alok_citac			0x20
#define alok_Ti				0x30
#define alok_Td				0x40
#define alok_Kr				0x50
#define alok_Dif			0x60
#define alok_Tmax			0x70
#define alok_Per			0x80
#define alok_por			0x90
#define alok_kalibrace1		0xA0
#define alok_kalibrace2		0xB0
#define alok_eeadr			0xC0


#define	DIS_ON	PORTD &=~_BV(PD7)
#define	DIS_OFF	PORTD |=_BV(PD7)
#define SVIT_ON PORTD &=~_BV(PD6)
#define SVIT_OFF PORTD |=_BV(PD6)

char  up (char b,char poc);
char down (char b,char poc);
char esc(char b,char poc);
char menu (void);

void zapis_par_pid (void);
extern void nacti_par_pid (void);
void dispmenu (void);
void submenu1 (void);
void submenu_nastav (void);
void submenu_zobraz (void);

void submenu_uloz (void);
void submenu_PIDpar(void);
void submenu_casdat (void);
void submenu_led (void);
void submenu_cidla (void);

#endif
