2015-04-26 21:23:13 +02:00
|
|
|
#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
|
|
|
|
|
|
2015-08-05 21:26:55 +02:00
|
|
|
// Don't change this! Change it in
|
|
|
|
|
// config.h instead. This is going away
|
|
|
|
|
// soon, and only an intermediary thing.
|
2015-04-26 21:23:13 +02:00
|
|
|
#define SERIAL_PROTOCOL PROTOCOL_KISS
|
|
|
|
|
|
|
|
|
|
// Serial settings
|
2015-05-21 00:00:15 +02:00
|
|
|
#define BAUD 9600
|
2015-04-26 21:23:13 +02:00
|
|
|
#define SERIAL_DEBUG false
|
2015-05-21 10:49:09 +02:00
|
|
|
#define TX_MAXWAIT 5UL
|
2015-04-26 21:23:13 +02:00
|
|
|
|
|
|
|
|
// Port settings
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
|
|
#endif
|