12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef _CONFIG_H
- #define _CONFIG_H
- #include "Configuration_prusa.h"
- #include "pins.h"
- #define IR_SENSOR_ANALOG (defined(VOLT_IR_PIN) && defined(IR_SENSOR))
- #if !IR_SENSOR_ANALOG
- #define ADC_CHAN_MSK 0b0000001001011111
- #define ADC_DIDR_MSK 0b0000001001011111
- #define ADC_CHAN_CNT 7
- #else
- #define ADC_CHAN_MSK 0b0000001101011111
- #define ADC_DIDR_MSK 0b0000001001011111
- #define ADC_CHAN_CNT 8
- #endif
- #define ADC_OVRSAMPL 16
- #define ADC_CALLBACK adc_ready
- #define SWI2C
- #define SWI2C_A8
- #define SWI2C_DEL 20
- #define SWI2C_TMO 2048
- #define PAT9125_SWI2C
- #define PAT9125_I2C_ADDR 0x75
- #define PAT9125_XRES 0
- #define PAT9125_YRES 240
- #define SM4_DEFDELAY 500
- #define TMC2130_SPI_RATE 0
- #define TMC2130_SPCR SPI_SPCR(TMC2130_SPI_RATE, 1, 1, 1, 0)
- #define TMC2130_SPSR SPI_SPSR(TMC2130_SPI_RATE)
- #define W25X20CL_PIN_CS 32
- #define W25X20CL_SPI_RATE 0
- #define W25X20CL_SPCR SPI_SPCR(W25X20CL_SPI_RATE, 1, 1, 1, 0)
- #define W25X20CL_SPSR SPI_SPSR(W25X20CL_SPI_RATE)
- #define LANG_MODE 1
- #define LANG_SIZE_RESERVED 0x3000
- #endif
|