You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
818 B
40 lines
818 B
10 months ago
|
#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 true
|
||
|
#define ADC_REFERENCE REF_3V3
|
||
|
// OR
|
||
|
//#define ADC_REFERENCE REF_5V
|
||
|
|
||
|
// Sampling & timer setup
|
||
|
#define CONFIG_AFSK_DAC_SAMPLERATE 9600
|
||
|
|
||
|
// Don't change this! Change it in
|
||
|
// config.h instead. This is going away
|
||
|
// soon, and only an intermediary thing.
|
||
|
#define SERIAL_PROTOCOL PROTOCOL_KISS
|
||
|
|
||
|
// Serial settings
|
||
|
#define BAUD 9600
|
||
|
#define SERIAL_DEBUG false
|
||
|
#define TX_MAXWAIT 5UL
|
||
|
|
||
|
// 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
|