Clean up pins self-checks
This commit is contained in:
parent
77b4f23edc
commit
fdaa374490
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
#error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -34,9 +34,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega1281__
|
#ifndef __AVR_ATmega1281__
|
||||||
#error "Oops! Select 'Minitronics' in 'Tools > Board.'"
|
#error "Oops! Select 'Minitronics' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "Minitronics supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
#error "Minitronics supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 5 || E_STEPPERS > 5
|
||||||
|
|
||||||
#if HOTENDS > 5 || E_STEPPERS > 5
|
|
||||||
#error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
|
#error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||||
|
|
||||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
|
||||||
#error "Formbot supports up to 3 hotends / E-steppers. Comment out this line to continue."
|
#error "Formbot supports up to 3 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||||
|
|
||||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
|
||||||
#error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."
|
#error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __AVR_ATmega2560__
|
#ifndef __AVR_ATmega2560__
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."
|
#error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -25,12 +25,10 @@
|
|||||||
* Z-Bolt X Series board – based on Arduino Mega2560
|
* Z-Bolt X Series board – based on Arduino Mega2560
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if HOTENDS > 4 || E_STEPPERS > 4
|
|
||||||
#error "Z-Bolt X Series board supports up to 4 hotends / E-steppers."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(__AVR_ATmega2560__)
|
#if !defined(__AVR_ATmega2560__)
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
|
#elif HOTENDS > 4 || E_STEPPERS > 4
|
||||||
|
#error "Z-Bolt X Series board supports up to 4 hotends / E-steppers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOARD_NAME "Z-Bolt X Series"
|
#define BOARD_NAME "Z-Bolt X Series"
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#ifndef STM32F4
|
#ifndef STM32F4
|
||||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||||
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
#error "Arm'ed supports up to 2 hotends / E-steppers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ARMED_V1_0
|
#ifndef ARMED_V1_0
|
||||||
@ -38,10 +40,6 @@
|
|||||||
#undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
|
#undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
|
||||||
#define E2END 0xFFF // 4KB
|
#define E2END 0xFFF // 4KB
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "Arm'ed supports up to 2 hotends / E-steppers."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Limit Switches
|
// Limit Switches
|
||||||
//
|
//
|
||||||
|
@ -23,9 +23,7 @@
|
|||||||
|
|
||||||
#ifndef TARGET_STM32F4
|
#ifndef TARGET_STM32F4
|
||||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||||
|
|
||||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
|
||||||
#error "BIGTREE SKR Pro V1.1 supports up to 3 hotends / E-steppers."
|
#error "BIGTREE SKR Pro V1.1 supports up to 3 hotends / E-steppers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||||
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
#error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef BOARD_NAME
|
#ifndef BOARD_NAME
|
||||||
@ -43,10 +45,6 @@
|
|||||||
//#define E2END 0x1FFF // 8KB
|
//#define E2END 0x1FFF // 8KB
|
||||||
#define SRAM_EEPROM_EMULATION
|
#define SRAM_EEPROM_EMULATION
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Servos
|
// Servos
|
||||||
//
|
//
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __STM32F1__
|
#ifndef __STM32F1__
|
||||||
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "MKS Robin supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
#error "MKS Robin supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __STM32F1__
|
#ifndef __STM32F1__
|
||||||
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 1 || E_STEPPERS > 1
|
||||||
|
|
||||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
|
||||||
#error "MKS Robin mini supports up to 1 hotends / E-steppers. Comment out this line to continue."
|
#error "MKS Robin mini supports up to 1 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@
|
|||||||
|
|
||||||
#ifndef __STM32F1__
|
#ifndef __STM32F1__
|
||||||
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
||||||
#endif
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
#error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#ifndef STM32F4
|
#ifndef STM32F4
|
||||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||||
|
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||||
|
#error "RUMBA32 supports up to 3 hotends / E-steppers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RUMBA32_V1_0
|
#define RUMBA32_V1_0
|
||||||
@ -32,10 +34,6 @@
|
|||||||
//#define I2C_EEPROM
|
//#define I2C_EEPROM
|
||||||
#define E2END 0xFFF // 4KB
|
#define E2END 0xFFF // 4KB
|
||||||
|
|
||||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
|
||||||
#error "RUMBA32 supports up to 3 hotends / E-steppers."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Limit Switches
|
// Limit Switches
|
||||||
//
|
//
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||||
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||||
|
#error "STM32F4 supports up to 2 hotends / E-steppers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOARD_NAME "Misc. STM32F4"
|
#define BOARD_NAME "Misc. STM32F4"
|
||||||
@ -35,10 +37,6 @@
|
|||||||
// Ignore temp readings during development.
|
// Ignore temp readings during development.
|
||||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||||
|
|
||||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
||||||
#error "STM32F4 supports up to 2 hotends / E-steppers."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Limit Switches
|
// Limit Switches
|
||||||
//
|
//
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#if !defined(STM32F7)
|
#if !defined(STM32F7)
|
||||||
#error "Oops! Select an STM32F7 board in 'Tools > Board.'"
|
#error "Oops! Select an STM32F7 board in 'Tools > Board.'"
|
||||||
|
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||||
|
#error "The-Borg supports up to 3 hotends / E-steppers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOARD_NAME "The-Borge"
|
#define BOARD_NAME "The-Borge"
|
||||||
@ -33,10 +35,6 @@
|
|||||||
// Ignore temp readings during development.
|
// Ignore temp readings during development.
|
||||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||||
|
|
||||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
|
||||||
#error "The-Borg supports up to 3 hotends / E-steppers."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Limit Switches
|
// Limit Switches
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user