/*H**************************************************************************
* NAME: kbd_task.h
*----------------------------------------------------------------------------
* Copyright (c) 2003 Atmel.
*----------------------------------------------------------------------------
* RELEASE: snd1c-refd-nf-4_0_3
* REVISION: 1.3.2.2
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the Keyboard task definition
*****************************************************************************/
#ifndef _KBD_TASK_H_
#define _KBD_TASK_H_
/*_____ I N C L U D E S ____________________________________________________*/
/*_____ M A C R O S ________________________________________________________*/
#define KBD_DEBOUNCE_TEMPO 80/SCHEDULER_TICK /* debounce period: 80 ms */
#define KBD_DEBOUNCE_INIT 0 /* debounce counter init */
/*----- Task states -----*/
#define KBD_IDLE (Byte)0x00
#define KBD_DEBOUNCE (Byte)0x01
#define KBD_DECODE (Byte)0x02
/*_____ D E F I N I T I O N ________________________________________________*/
/*_____ D E C L A R A T I O N ______________________________________________*/
void kbd_task_init (void);
void kbd_task (void);
void kbd_set_stop (void);
#endif /* _KBD_TASK_H_ */