40 lines
754 B
C
Executable File
40 lines
754 B
C
Executable File
#include "util/constants.h"
|
|
|
|
#ifndef DEVICE_CONFIGURATION
|
|
#define DEVICE_CONFIGURATION
|
|
|
|
// CPU settings
|
|
#define TARGET_CPU m1284p
|
|
#define F_CPU 16000000UL
|
|
#define FREQUENCY_CORRECTION 0
|
|
|
|
// ADC settings
|
|
#define OPEN_SQUELCH true
|
|
#define ADC_REFERENCE REF_3V3
|
|
|
|
// Sampling & timer setup
|
|
#define CONFIG_SAMPLERATE 19200UL
|
|
//#define CONFIG_SAMPLERATE 9600UL
|
|
|
|
// Serial settings
|
|
#define BAUD 115200
|
|
#define SERIAL_DEBUG false
|
|
#define TX_MAXWAIT 2UL
|
|
|
|
// CSMA Settings
|
|
#define CONFIG_CSMA_P 255
|
|
|
|
// Packet settings
|
|
#define CONFIG_PASSALL false
|
|
|
|
// Port settings
|
|
#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
|
|
#endif
|
|
|
|
#endif |