123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- #ifndef _CONFIG_H
- #define _CONFIG_H
- #include "Configuration_prusa.h"
- #include "pins.h"
- #if (defined(VOLT_IR_PIN) && defined(IR_SENSOR))
- #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_callback
- #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
- #if (LANG_SIZE_RESERVED % 256)
- #error "LANG_SIZE_RESERVED should be a multiple of a page size"
- #endif
- #define COMMUNITY_LANG_GROUP 1
- #if (COMMUNITY_LANG_GROUP == 1)
- #define COMMUNITY_LANG_GROUP1_NL
- #define COMMUNITY_LANG_GROUP1_RO
- #define COMMUNITY_LANG_GROUP1_HU
- #define COMMUNITY_LANG_GROUP1_HR
- #define COMMUNITY_LANG_GROUP1_SK
- #define COMMUNITY_LANG_GROUP1_SV
- #define COMMUNITY_LANG_GROUP1_NO
- #endif
- #if (COMMUNITY_LANG_GROUP >=1 )
- #define COMMUNITY_LANGUAGE_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
- #if ( LANG_MODE == 0 ) && defined(XFLASH)
- #define PRUSA_FARM
- #endif
- #ifndef XFLASH
- #define PRUSA_FARM
- #endif
- #endif
|