2014-12-18 15:45:36 -07:00
|
|
|
#include "util/constants.h"
|
|
|
|
|
2014-12-02 17:10:06 -07:00
|
|
|
#ifndef DEVICE_CONFIGURATION
|
|
|
|
#define DEVICE_CONFIGURATION
|
|
|
|
|
|
|
|
// CPU settings
|
2018-12-27 12:24:21 -07:00
|
|
|
#define TARGET_CPU m1284p
|
|
|
|
#define F_CPU 16000000UL
|
2014-12-02 17:10:06 -07:00
|
|
|
#define FREQUENCY_CORRECTION 0
|
|
|
|
|
2014-12-18 16:50:14 -07:00
|
|
|
// ADC settings
|
2018-04-24 07:34:50 -06:00
|
|
|
#define OPEN_SQUELCH true
|
2014-12-18 15:45:36 -07:00
|
|
|
#define ADC_REFERENCE REF_3V3
|
|
|
|
|
2014-12-02 17:10:06 -07:00
|
|
|
// Sampling & timer setup
|
2018-12-27 12:24:21 -07:00
|
|
|
#define CONFIG_SAMPLERATE 19200UL
|
2018-12-31 05:24:28 -07:00
|
|
|
//#define CONFIG_SAMPLERATE 9600UL
|
2014-12-18 15:45:36 -07:00
|
|
|
|
2014-12-02 17:10:06 -07:00
|
|
|
// Serial settings
|
2018-12-27 12:24:21 -07:00
|
|
|
#define BAUD 115200
|
2014-12-18 15:45:36 -07:00
|
|
|
#define SERIAL_DEBUG false
|
|
|
|
#define TX_MAXWAIT 2UL
|
2014-12-02 17:10:06 -07:00
|
|
|
|
2018-12-29 07:57:49 -07:00
|
|
|
// CSMA Settings
|
|
|
|
#define CONFIG_CSMA_P 255
|
|
|
|
|
2018-12-29 16:32:19 -07:00
|
|
|
// Packet settings
|
|
|
|
#define CONFIG_PASSALL false
|
|
|
|
|
2014-12-02 17:10:06 -07:00
|
|
|
// Port settings
|
2018-12-27 12:24:21 -07:00
|
|
|
#if TARGET_CPU == m1284p
|
|
|
|
#define ADC_PORT PORTA
|
|
|
|
#define ADC_DDR DDRA
|
|
|
|
#define DAC_PORT PORTB
|
|
|
|
#define DAC_DDR DDRB
|
|
|
|
#define LED_PORT PORTC
|
|
|
|
#define LED_DDR DDRC
|
2014-12-18 15:45:36 -07:00
|
|
|
#endif
|
2014-12-02 17:10:06 -07:00
|
|
|
|
2015-11-17 00:09:39 -07:00
|
|
|
#endif
|