#include "util/constants.h" #ifndef DEVICE_CONFIGURATION #define DEVICE_CONFIGURATION // CPU settings #define TARGET_CPU m328p #define F_CPU 16000000 #define FREQUENCY_CORRECTION 0 // ADC settings #define OPEN_SQUELCH false #define ADC_REFERENCE REF_3V3 // OR //#define ADC_REFERENCE REF_5V // Sampling & timer setup #define CONFIG_AFSK_DAC_SAMPLERATE 9600 // Serial protocol settings #define SERIAL_PROTOCOL PROTOCOL_KISS // OR //#define SERIAL_PROTOCOL PROTOCOL_SIMPLE_SERIAL // AX25 settings #if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL #define CUSTOM_FRAME_SIZE 330 #endif // Serial settings #define BAUD 9600 #define SERIAL_DEBUG false #define TX_MAXWAIT 2UL // Port settings #if TARGET_CPU == m328p #define DAC_PORT PORTD #define DAC_DDR DDRD #define LED_PORT PORTB #define LED_DDR DDRB #define PTT_PORT PORTD #define PTT_DDR DDRD #define ADC_PORT PORTC #define ADC_DDR DDRC // Pins 3-7 on Port D = Arduino D3 - D7 #define DAC_HIGH _BV(7) #define DAC_PINS _BV(7)&_BV(6)&_BV(5)&_BV(4) #define LED_TX 1 // Arduino D9 #define LED_RX 2 // Arduino D10 #define PTT_TX 3 // Arduino D11 #define ADC_NO 0 // Arduino A0 #endif #endif