|
@@ -31,9 +31,13 @@
|
31
|
31
|
|
32
|
32
|
// Settings for the I2C based DIGIPOT (MCP4018) based on WT150
|
33
|
33
|
|
34
|
|
-#define DIGIPOT_A4988_Rsx 0.250
|
35
|
|
-#define DIGIPOT_A4988_Vrefmax 1.666
|
36
|
|
-#define DIGIPOT_MCP4018_MAX_VALUE 127
|
|
34
|
+#ifndef DIGIPOT_A4988_Rsx
|
|
35
|
+ #define DIGIPOT_A4988_Rsx 0.250
|
|
36
|
+#endif
|
|
37
|
+#ifndef DIGIPOT_A4988_Vrefmax
|
|
38
|
+ #define DIGIPOT_A4988_Vrefmax 1.666
|
|
39
|
+#endif
|
|
40
|
+#define DIGIPOT_MCP4018_MAX_VALUE 127
|
37
|
41
|
|
38
|
42
|
#define DIGIPOT_A4988_Itripmax(Vref) ((Vref) / (8.0 * DIGIPOT_A4988_Rsx))
|
39
|
43
|
|