Blame | Last modification | View Log | RSS feed
#ifndef DEFINES_H
#define DEFINES_H
#include <xc.h>
#include "stdint.h"
// UART TX on pin 7
#define UART_TX_TRIS TRISAbits.TRISA0
// UART RX on pin 6
#define UART_RX_TRIS TRISAbits.TRISA1
// CCP1 on pin 5
#define CCP1_TRIS TRISAbits.TRISA2
#define CCP1_LAT LATAbits.LATA2
// IOC on pin 4
#define IOC_TRIS TRISAbits.TRISA3
#define IOC_PORT PORTAbits.RA3
#define IOC_IOCAP IOCAPbits.IOCAP3
#define IOC_IOCAN IOCANbits.IOCAN3
#define IOC_IOCAF IOCAFbits.IOCAF3
// Oscillator on pins 2-3
#define _XTAL_FREQ 20000000
#endif /* DEFINES_H */