Go to the documentation of this file.
28 #if (DRIVER_SPINDLE_ENABLE & SPINDLE_ENA) && !defined(SPINDLE_ENABLE_PIN)
29 #warning "Selected spindle is not supported!"
32 #if (DRIVER_SPINDLE_ENABLE & SPINDLE_DIR) && !defined(SPINDLE_DIRECTION_PIN)
33 #warning "Selected spindle is not fully supported - no direction output!"
36 #if (DRIVER_SPINDLE_ENABLE & SPINDLE_PWM) && !defined(SPINDLE_PWM_PIN)
37 #warning "Selected spindle is not supported!"
40 #if (DRIVER_SPINDLE1_ENABLE & SPINDLE_PWM) && !defined(SPINDLE_PWM_PIN)
41 #warning "Selected spindle 1 is not supported!"
44 #if MPG_ENABLE == 1 && !defined(MPG_MODE_PIN)
45 #error "MPG_MODE_PIN must be defined!"
48 #if KEYPAD_ENABLE == 1 && !defined(I2C_STROBE_PORT)
49 #error Keypad plugin not supported!
50 #elif I2C_STROBE_ENABLE && !defined(I2C_STROBE_PORT)
51 #error I2C strobe not supported!
54 #if EEPROM_ENABLE == 0
55 #define FLASH_ENABLE 1
57 #define FLASH_ENABLE 0
61 #include "motors/trinamic.h"
62 #ifndef TRINAMIC_MIXED_DRIVERS
63 #define TRINAMIC_MIXED_DRIVERS 1
65 #if TRINAMIC_UART_ENABLE == 1 && !defined(TRINAMIC_STREAM)
66 #define TRINAMIC_STREAM 1
70 #if USB_SERIAL_CDC && defined(SERIAL_PORT)
88 #if MODBUS_ENABLE & MODBUS_RTU_ENABLED
94 #if TRINAMIC_ENABLE && TRINAMIC_UART_ENABLE == 1
95 #define TRINAMIC_TEST 1
97 #define TRINAMIC_TEST 0
100 #if KEYPAD_ENABLE == 2 && MPG_ENABLE == 0
101 #define KEYPAD_TEST 1
103 #define KEYPAD_TEST 0
106 #if (MODBUS_TEST + KEYPAD_TEST + (MPG_ENABLE ? 1 : 0) + TRINAMIC_TEST + (BLUETOOTH_ENABLE == 2 ? 1 : 0)) > (SP0 + SP1 + SP2)
107 #error "Too many options that uses a serial port are enabled!"
117 #if KEYPAD_ENABLE == 2 && !defined(KEYPAD_STREAM)
119 #define KEYPAD_STREAM 0
121 #define KEYPAD_STREAM 1
123 #if (MODBUS_ENABLE & MODBUS_RTU_ENABLED) && defined(MODBUS_RTU_STREAM) && MODBUS_RTU_STREAM == MPG_STREAM
125 #define KEYPAD_STREAM (MODBUS_RTU_STREAM + 1)
129 #if MPG_ENABLE && !defined(MPG_STREAM)
135 #if (MODBUS_ENABLE & MODBUS_RTU_ENABLED) && defined(MODBUS_RTU_STREAM) && MODBUS_RTU_STREAM == MPG_STREAM
137 #define MPG_STREAM (MODBUS_RTU_STREAM + 1)
141 #if defined(COPROC_RESET_PIN) && defined(COPROC_BOOT0_PIN)
142 #define COPROC_PASSTHRU 1
144 #define COPROC_PASSTHRU 0
147 #ifndef COPROC_STREAM
149 #define COPROC_STREAM 0
151 #define COPROC_STREAM 1