/PIC Stuff/PICX_16F1825_Controller/defines.h |
---|
1,6 → 1,9 |
#ifndef DEFINES_H |
#define DEFINES_H |
#include <xc.h> |
#include <stdint.h> |
// <editor-fold defaultstate="collapsed" desc="I/O Pins"> |
#define BTN_L_N_TRIS TRISAbits.TRISA1 |
#define BTN_L_N_PORT PORTAbits.RA1 |
57,7 → 60,7 |
unsigned BTN_R_W :1; |
unsigned :2; |
}; |
char value; |
uint8_t value; |
} BTN_STATUS; |
typedef union { |
67,7 → 70,7 |
unsigned LED_3 :1; |
unsigned LED_4 :1; |
}; |
char value; |
uint8_t value; |
} LED_STATUS; |
void Pins_Read(BTN_STATUS *btns); |