//********************************************************************
#include "ps2.h"
//********************************************************************
#define clr_ps2_clk() (ps2_clk = 0)
#define set_ps2_clk() (ps2_clk = 1)
#define clr_ps2_data() (ps2_data = 0)
#define set_ps2_data() (ps2_data = 1)
#define db (1<<3)
#define cmp_db() (P2^=db)
#define set_db() (P2 &= ~db)
#define clr_db() (P2|= db)
//********************************************************************
#define delay_5us nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
#define delay_10us delay_5us;delay_5us
#define delay_15us delay_5us;delay_10us
#define delay_20us delay_10us;delay_5us
#define delay_40us delay_20us;delay_15us
#define delay_50us delay_40us;delay_10us
//************************************************************************
1