Subversion Repositories Code-Repo

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

#ifndef CPS_H
#define CPS_H

#define CPS_AVG_COUNT 16
#define CPS_PCT_ON 10
#define CPS_PCT_OFF 8
#define CPS_NUM_CHANNELS 2
typedef struct {
    char channel;
    char btn_pressed[4];
    unsigned int btn_last_value[4];
    unsigned int btn_avg_value[4];
    char btn_pct_value[4];
} CPS_DATA;

void CPS_Init(CPS_DATA *data);
void CPS_Timer_0_Interrupt_Handler(void);
void CPS_Reset(void);

void CPS_Enable(void);
void CPS_Disable(void);

#endif