OpenModem/device.h
2018-12-29 15:57:49 +01:00

38 lines
739 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 19200UL
//#define CONFIG_SAMPLERATE 9600
// Serial settings
#define BAUD 115200
#define SERIAL_DEBUG false
#define TX_MAXWAIT 2UL
// CSMA Settings
#define CONFIG_CSMA_P 255
// 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