2017-12-20 12:42:20 +00:00
|
|
|
#ifndef _CONFIG_H
|
|
|
|
#define _CONFIG_H
|
|
|
|
|
|
|
|
|
|
|
|
//ADC configuration
|
|
|
|
#define ADC_CHAN_MSK 0b0000001001011111 //used AD channels bit mask (0,1,2,3,4,6,9)
|
|
|
|
#define ADC_CHAN_CNT 7 //number of used channels)
|
|
|
|
#define ADC_OVRSAMPL 16 //oversampling multiplier
|
|
|
|
#define ADC_CALLBACK adc_ready //callback function ()
|
|
|
|
|
2018-03-13 11:55:35 +00:00
|
|
|
//SM4 configuration
|
|
|
|
#define SM4_DEFDELAY 500 //default step delay [us]
|
|
|
|
|
2018-03-29 15:42:41 +00:00
|
|
|
//TMC2130 - Trinamic stepper driver
|
|
|
|
//pinout - hardcoded
|
|
|
|
//spi:
|
|
|
|
#define TMC2130_SPI_RATE 0 // fosc/4 = 4MHz
|
|
|
|
#define TMC2130_SPCR SPI_SPCR(TMC2130_SPI_RATE, 1, 1, 1, 0)
|
|
|
|
#define TMC2130_SPSR SPI_SPSR(TMC2130_SPI_RATE)
|
2017-12-20 12:42:20 +00:00
|
|
|
|
2018-05-22 01:20:03 +00:00
|
|
|
//LANG - Multi-language support
|
2018-05-22 18:30:55 +00:00
|
|
|
//#define LANG_MODE 0 // primary language only
|
|
|
|
#define LANG_MODE 1 // sec. language support
|
2018-05-27 13:14:04 +00:00
|
|
|
#define LANG_SIZE_RESERVED 0x2700 // reserved space for secondary language (~10kb)
|
|
|
|
//#define LANG_SIZE_RESERVED 0x1ef8 // reserved space for secondary language (~10kb)
|
2018-05-22 01:20:03 +00:00
|
|
|
|
|
|
|
|
2017-12-20 12:42:20 +00:00
|
|
|
#endif //_CONFIG_H
|