1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef _CONFIG_H
- #define _CONFIG_H
- #include "Configuration_prusa.h"
- #include "pins.h"
- #if (defined(VOLT_IR_PIN) && defined(IR_SENSOR))
- # define IR_SENSOR_ANALOG
- #endif
- #ifndef 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_A8
- #define SWI2C_DEL 20
- #define SWI2C_TMO 2048
- #ifdef SWI2C_SCL
- #define PAT9125_SWI2C
- #else
- #define PAT9125_I2C
- #endif
- #define PAT9125_I2C_ADDR 0x75
- #define PAT9125_XRES 0
- #define PAT9125_YRES 240
- #define PAT9124_YRES_MM (5*PAT9125_YRES/25.4)
- #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 LANG_MODE 1
- #define LANG_SIZE_RESERVED 0x3000
- #define COMMUNITY_LANG_NL
- #if defined(COMMUNITY_LANG_NL)
- #define COMMUNITY_LANG_SUPPORT
- #endif
- #if defined(XFLASH_DUMP) && !defined(XFLASH)
- #error "XFLASH_DUMP requires XFLASH support"
- #endif
- #if (defined(MENU_DUMP) || defined(EMERGENCY_DUMP)) && !defined(XFLASH_DUMP)
- #error "MENU_DUMP and EMERGENCY_DUMP require XFLASH_DUMP"
- #endif
- #if defined(EMERGENCY_DUMP) && defined(EMERGENCY_SERIAL_DUMP)
- #error "EMERGENCY_DUMP and EMERGENCY_SERIAL_DUMP are mutually exclusive"
- #endif
- #if defined(MENU_DUMP) && defined(MENU_SERIAL_DUMP)
- #error "MENU_DUMP and MENU_SERIAL_DUMP are mutually exclusive"
- #endif
- #if defined(EMERGENCY_DUMP) || defined(EMERGENCY_SERIAL_DUMP)
- #define EMERGENCY_HANDLERS
- #endif
- #endif
|