4,10 → 4,6 |
#include <p18f27j13.h> |
#include "uart.h" |
|
// Option to enable/disable internal oscillator |
#define USE_EXT_OSC |
|
// |
#define UART1_RX_TO_BUFFER |
//#define UART1_RX_TO_XBEE |
|
14,7 → 10,8 |
// Option to disable SPI MISO |
#define SPI2_WRITE_ONLY |
|
//#define _DEBUG |
#define _DEBUG |
|
//#define _TEST_UART |
//#define _TEST_I2C_MASTER |
//#define _TEST_I2C_SLAVE |
29,10 → 26,13 |
//#define _TEST_TIMER1_RTC |
//#define _TEST_LUX |
//#define _TEST_OLED_CHAR |
//#define _TEST_BMP |
|
|
// Enable or disable debug prints depending on project preprocessor (_DEBUG) |
#ifdef _DEBUG |
#define DBG_PRINT_MAIN(x) UART1_WriteS(x) |
#define DBG_PRINT_MAIN_F(x) UART1_WriteF(x) |
#define DBG_PRINT_UART(x) UART1_WriteS(x) |
#define DBG_PRINT_I2C(x) UART1_WriteS(x) |
#define DBG_PRINT_SPI(x) UART1_WriteS(x) |
39,8 → 39,8 |
#define DBG_PRINT_XBEE(x) UART1_WriteS(x) |
#define DBG_PRINT_PORTB_INT(x) |
#define DBG_PRINT_INT(x) |
#define DBG_PRINT_BUFFER(x) |
#define DBG_PRINT_LUX(x) UART1_WriteS(x) |
#define DBG_PRINT_LUX(x) |
#define DBG_PRINT_BMP(x) |
#else |
#define DBG_PRINT_MAIN(x) |
#define DBG_PRINT_UART(x) |
49,8 → 49,8 |
#define DBG_PRINT_XBEE(x) |
#define DBG_PRINT_PORTB_INT(x) |
#define DBG_PRINT_INT(x) |
#define DBG_PRINT_BUFFER(x) |
#define DBG_PRINT_LUX(x) |
#define DBG_PRINT_BMP(x) |
#endif |
|
// Pin allocations |