5 #include "Configuration_var.h"
10 #if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
11 #define ADC_CHAN_MSK 0b0000001101011111
12 #define ADC_DIDR_MSK 0b0000001001011111
13 #define ADC_CHAN_CNT 8
15 #define ADC_CHAN_MSK 0b0000001001011111
16 #define ADC_DIDR_MSK 0b0000001001011111
17 #define ADC_CHAN_CNT 7
19 #define ADC_OVRSAMPL 16
20 #define ADC_CALLBACK adc_callback
27 #define SWI2C_TMO 2048
36 #define PAT9125_I2C_ADDR 0x75
39 #define PAT9125_XRES 0
40 #define PAT9125_YRES 240
41 #define PAT9125_YRES_MM (5*PAT9125_YRES/25.4)
42 #define PAT9125_INVERT_X 0
43 #define PAT9125_INVERT_Y 1
44 #define PAT9125_SWAP_XY 0
45 #define PAT9125_12B_RES 1
46 #define PAT9125_NEW_INIT 1
49 #define SM4_DEFDELAY 500
54 #define TMC2130_SPI_RATE 0
55 #define TMC2130_SPCR SPI_SPCR(TMC2130_SPI_RATE, 1, 1, 1, 0)
56 #define TMC2130_SPSR SPI_SPSR(TMC2130_SPI_RATE)
66 #define LANG_SIZE_RESERVED 0x3500
70 #if (LANG_SIZE_RESERVED % 256)
71 #error "LANG_SIZE_RESERVED should be a multiple of a page size"
75 #define COMMUNITY_LANG_GROUP 1
77 #if (COMMUNITY_LANG_GROUP == 1)
78 #define COMMUNITY_LANG_GROUP1_NL
79 #define COMMUNITY_LANG_GROUP1_RO
80 #define COMMUNITY_LANG_GROUP1_HU
81 #define COMMUNITY_LANG_GROUP1_HR
82 #define COMMUNITY_LANG_GROUP1_SK
83 #define COMMUNITY_LANG_GROUP1_SV
84 #define COMMUNITY_LANG_GROUP1_NO
90 #if (COMMUNITY_LANG_GROUP == 2)
91 #define COMMUNITY_LANG_GROUP2_LT
95 #if (COMMUNITY_LANG_GROUP >=1 )
96 #define COMMUNITY_LANGUAGE_SUPPORT
100 #if defined(XFLASH_DUMP) && !defined(XFLASH)
101 #error "XFLASH_DUMP requires XFLASH support"
103 #if (defined(MENU_DUMP) || defined(EMERGENCY_DUMP)) && !defined(XFLASH_DUMP)
104 #error "MENU_DUMP and EMERGENCY_DUMP require XFLASH_DUMP"
108 #if defined(EMERGENCY_DUMP) && defined(EMERGENCY_SERIAL_DUMP)
109 #error "EMERGENCY_DUMP and EMERGENCY_SERIAL_DUMP are mutually exclusive"
111 #if defined(MENU_DUMP) && defined(MENU_SERIAL_DUMP)
112 #error "MENU_DUMP and MENU_SERIAL_DUMP are mutually exclusive"
116 #if defined(EMERGENCY_DUMP) || defined(EMERGENCY_SERIAL_DUMP)
117 #define EMERGENCY_HANDLERS
121 #if ( LANG_MODE == 0 ) && defined(XFLASH)