2014-12-18 17:45:36 -05:00
|
|
|
#include "util/constants.h"
|
|
|
|
|
2014-12-02 19:10:06 -05:00
|
|
|
#ifndef DEVICE_CONFIGURATION
|
|
|
|
#define DEVICE_CONFIGURATION
|
|
|
|
|
|
|
|
// CPU settings
|
2014-12-18 17:45:36 -05:00
|
|
|
#define TARGET_CPU m328p
|
2014-12-02 19:10:06 -05:00
|
|
|
#define F_CPU 16000000
|
|
|
|
#define FREQUENCY_CORRECTION 0
|
|
|
|
|
2014-12-18 18:50:14 -05:00
|
|
|
// ADC settings
|
|
|
|
#define OPEN_SQUELCH false
|
2014-12-18 17:45:36 -05:00
|
|
|
#define ADC_REFERENCE REF_3V3
|
|
|
|
// OR
|
|
|
|
//#define ADC_REFERENCE REF_5V
|
|
|
|
|
2014-12-02 19:10:06 -05:00
|
|
|
// Sampling & timer setup
|
|
|
|
#define CONFIG_AFSK_DAC_SAMPLERATE 9600
|
|
|
|
|
2014-12-18 17:45:36 -05:00
|
|
|
// Serial protocol settings
|
2014-12-18 18:50:14 -05:00
|
|
|
#define SERIAL_PROTOCOL PROTOCOL_KISS
|
2014-12-18 17:45:36 -05:00
|
|
|
// OR
|
2014-12-18 18:50:14 -05:00
|
|
|
//#define SERIAL_PROTOCOL PROTOCOL_SIMPLE_SERIAL
|
2014-12-18 17:45:36 -05:00
|
|
|
|
|
|
|
// AX25 settings
|
|
|
|
#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
|
|
|
|
#define CUSTOM_FRAME_SIZE 330
|
|
|
|
#endif
|
|
|
|
|
2014-12-02 19:10:06 -05:00
|
|
|
// Serial settings
|
2014-12-18 17:45:36 -05:00
|
|
|
#define BAUD 9600
|
|
|
|
#define SERIAL_DEBUG false
|
|
|
|
#define TX_MAXWAIT 2UL
|
2014-12-02 19:10:06 -05:00
|
|
|
|
|
|
|
// Port settings
|
2014-12-18 17:45:36 -05:00
|
|
|
#if TARGET_CPU == m328p
|
|
|
|
#define DAC_PORT PORTD
|
|
|
|
#define DAC_DDR DDRD
|
|
|
|
#define LED_PORT PORTB
|
|
|
|
#define LED_DDR DDRB
|
|
|
|
#define ADC_PORT PORTC
|
|
|
|
#define ADC_DDR DDRC
|
|
|
|
#endif
|
2014-12-02 19:10:06 -05:00
|
|
|
|
2015-11-17 02:09:39 -05:00
|
|
|
#endif
|