#include #include "negcon.h" // prototypes header /* Controller related variables and functions */ volatile unsigned char *PadDataBuff[8]; u_char negcon_twist; u_char negcon_a1; u_char negcon_a2; u_char negcon_l; u_char negcon_b1; u_char negcon_b2; void NegconInit(void) { GetPadBuf(&PadDataBuff[0], &PadDataBuff[1]); return; } void NegconRead(void) { negcon_b1=~PadDataBuff[0][2]; negcon_b2=~PadDataBuff[0][3]; negcon_twist=PadDataBuff[0][4]; negcon_a1=PadDataBuff[0][5]; negcon_a2=PadDataBuff[0][6]; negcon_l=PadDataBuff[0][7]; }