/*H**************************************************************************
* $RCSfile: kbd_task.h,v $
*----------------------------------------------------------------------------
* Copyright (c) 2002 Atmel.
*----------------------------------------------------------------------------
* RELEASE: $Name: DEMO_FAT_1_9_9 $
* REVISION: $Revision: 1.2 $
* FILE_CVSID: $Id: kbd_task.h,v 1.2 2002/06/07 15:44:38 ffosse Exp $
*----------------------------------------------------------------------------
* 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_ */