mirror of https://github.com/EspoTek/Labrador.git
29 lines
505 B
C
29 lines
505 B
C
#ifndef XMEGA_H
|
|
#define XMEGA_H
|
|
|
|
|
|
#define FGEN_OFFSET 5
|
|
#define FGEN_LIMIT (double) 3.2
|
|
#define CLOCK_FREQ 24000000
|
|
#define DAC_SPS 1000000
|
|
#define ADC_SPS 750000
|
|
#define ADC_SPF (ADC_SPS/1000)
|
|
|
|
#define vcc (double)3.3
|
|
#define vref ((double)(vcc/2))
|
|
#define R4 (double)75000
|
|
#define R3 (double)1000000
|
|
#define R2 (double)1000
|
|
#define R1 (double)1000
|
|
|
|
#define INIT_DEVICE_MODE 0
|
|
|
|
#define PSU_STEP 5
|
|
#define PSU_PERIOD 100
|
|
#define PSU_ADC_TOP 128
|
|
|
|
#define INVERT_TRIPLE
|
|
#define INVERT_MM
|
|
|
|
#endif // XMEGA_H
|