extern.h (523B)
1 #ifndef _EXTERN_H_ 2 #define _EXTERN_H_ 3 4 #define NO_BIT_DEFINES 5 #include <pic14regs.h> 6 #include <stdint.h> 7 8 /* MCU related constants */ 9 #define _XTAL_FREQ 16000000 /* Crystal oscillator running at 16MHz */ 10 11 #define BTN_PORT PORTBbits.RB0 12 #define BTN_TRIS TRISBbits.TRISB0 13 #define BTN_DEBOUNCE_TIME_MS 20 14 15 #define LED_PORT PORTBbits.RB1 16 #define LED_TRIS TRISBbits.TRISB1 17 18 #define OUTPUT 0 19 #define INPUT 1 20 21 /* Non MCU related constants */ 22 #define NULL ((void *)0) 23 #define BUFSIZ (3 * sizeof(uint32_t)) 24 25 #endif /* _EXTERN_H_ */