Prusa MINI Firmware overview
config.h
Go to the documentation of this file.
1 //config.h - main configuration file
2 #ifndef _CONFIG_H
3 #define _CONFIG_H
4 
5 //--------------------------------------
6 //version and buildnumber
7 #if !defined(FW_VERSION)
8  #error "FW_VERSION not defined"
9 #endif
10 
11 #if !defined(FW_BUILDSX)
12  #define FW_BUILDSX "" //build suffix
13 #endif
14 
15 // convert PRERELEASE macro to string literal PRERELEASE_STR
16 #ifdef PRERELEASE
17  #define PRERELEASE_QUOTE(arg) #arg
18  #define PRERELEASE_STR_(macro) PRERELEASE_QUOTE(macro)
19  #define PRERELEASE_STR PRERELEASE_STR_(PRERELEASE)
20 #endif
21 
22 //--------------------------------------
23 //printer variants
24 #define PRINTER_PRUSA_MINI 2 //MINI printer
25 
26 #ifndef PRINTER_TYPE
27  #error "macro PRINTER_TYPE not defined"
28 #endif
29 
30 #include <avr/pgmspace.h>
31 
32 //--------------------------------------
33 //board revisions
34 #define OLIMEX_E407 0 //Olimex STM32-E407 devboard (discontinued 1.9.2019)
35 #define A3IDES2130_REV01 1 //A3ides with TMC2130 rev01 (discontinued 1.9.2019)
36 #define A3IDES2209_REV01 2 //A3ides with TMC2209 rev01 (discontinued 1.9.2019)
37 #define A3IDES2209_REV02 4 //A3ides with TMC2209 rev02
38 #define A3IDES2209_REV03 6 //A3ides with TMC2209 rev03
39 //simulators
40 #define A3IDES2209_SIM -2 //SDL simulator 2209 (windows)
41 #define A3IDES2130_SIM -1 //SDL simulator 2130 (windows)
42 
43 #ifdef MOTHERBOARD
44  #if (MOTHERBOARD == -2)
45  #define BOARD A3IDES2209_SIM
46  #elif (MOTHERBOARD == -1)
47  #define BOARD A3IDES2130_SIM
48  #elif (MOTHERBOARD == 0)
49  #define BOARD OLIMEX_E407
50  #elif (MOTHERBOARD == 1820)
51  #define BOARD A3IDES2130_REV01
52  #elif (MOTHERBOARD == 1821)
53  #define BOARD A3IDES2209_REV01
54  #elif (MOTHERBOARD == 1823)
55  #define BOARD A3IDES2209_REV02
56  #endif
57 #endif //MOTHERBOARD
58 
59 #ifdef BOARD
60 
61  #if (BOARD == A3IDES2209_SIM)
62  #include "config_a3ides2209_02.h"
63  #elif ((BOARD < A3IDES2209_REV02) || (BOARD > A3IDES2209_REV03))
64  #error "BOARD not supported"
65  //#elif (BOARD == OLIMEX_E407)
66  //#include "config_olimex.h"
67  //#elif (BOARD == A3IDES2130_REV01)
68  //#include "config_a3ides2130.h"
69  //#elif (BOARD == A3IDES2209_REV01)
70  //#include "config_a3ides2209.h"
71  #elif (BOARD == A3IDES2209_REV02)
72  #include "config_a3ides2209_02.h"
73  #elif (BOARD == A3IDES2209_REV03)
74  #include "config_a3ides2209_02.h"
75  #endif
76 
77 #else
78  #error "BOARD not defined"
79 #endif
80 
81 //--------------------------------------
82 //ETHERNET configuration
83 #define ETHERNET
84 
85 //--------------------------------------
86 //LCDSIM configuration
87 
88 //defined as external
89 #ifdef LCDSIM
90  #undef ETHERNET
91  #define LCDSIM_COLS 20
92  #define LCDSIM_ROWS 4
93 #endif //LCDSIM
94 
95 //marlin api config
96 #define MARLIN_MAX_CLIENTS 3 // maximum number of clients registered in same time
97 #define MARLIN_MAX_REQUEST 100 // maximum request length in chars
98 
99 //display PSOD instead of BSOD
100 //#define PSOD_BSOD
101 
102 //PID calibration service screen
103 #define PIDCALIBRATION
104 
105 //guiconfig.h included with config
106 #include "guiconfig.h"
107 
108 //resource.h included with config
109 #include "resource.h"
110 
111 #endif //_CONFIG_H
pgmspace.h
config_a3ides2209_02.h
guiconfig.h