HAL compatible pinsDebug & misc
Re-ARM has been tested. AVR has not been tested. 1) moved all cpu specific items to files in the low level HAL directory for that CPU (pinDebug_Re-ARM.h & pinsDebug_AVR_8_bit.h 2) added pinsDebug.h to the top level directory 3) modified HAL_pinsDebug.h to select the correct support file for the selected CPU 4) Patched sanitycheck to stop throwing false errors. A long term solution will be done 5) misc changes & bug fixes arduino.cpp - included macros.h to fix a missing definition pinmap_re-arm.h - removed a duplicated line. pinmapping.h - changed from "ENABLED" to "defined" to fix a compile error ====================================================================== split SanityCheck up, improve pinsDebug system ====================================================================== switch to latest pins_RAMPS_RE_ARM.h
This commit is contained in:
committed by
Scott Lahteine
parent
32e759c928
commit
84a11cfedc
@ -194,11 +194,9 @@
|
||||
//
|
||||
#if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENABLE)
|
||||
#if !defined(NUM_SERVOS) || NUM_SERVOS == 1 // must use servo connector
|
||||
#undef SERVO0
|
||||
#undef SERVO1
|
||||
#undef SERVO2
|
||||
#undef SERVO3
|
||||
#define SERVO0 4
|
||||
#define SPINDLE_LASER_ENABLE_PIN 6 // Pin should have a pullup/pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
@ -214,16 +212,20 @@
|
||||
/**
|
||||
* LCD / Controller
|
||||
*
|
||||
* All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smart LCD adapter
|
||||
*
|
||||
* The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
|
||||
* REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
|
||||
* DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
|
||||
* is needed to pick up 5V for the EXP1 connection.
|
||||
*
|
||||
* All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
|
||||
*
|
||||
* SD card on the LCD is not yet supported.
|
||||
*
|
||||
* SD card on the LCD uses the same SPI signals as the LCD.
|
||||
* SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines
|
||||
* on the LCD display during accesses of the SD card. The menus/code has been arranged so
|
||||
* that the garbage/lines are erased immediately after the SD card accesses are completed.
|
||||
*/
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
@ -243,6 +245,24 @@
|
||||
//#define SHIFT_EN 41 // J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && ENABLED(SDSUPPORT)
|
||||
#define SDCARD_SORT_ALPHA // Using SORT feature to keep one directory level in RAM
|
||||
// When going up/down directory levels the SD card is
|
||||
// accessed but the garbage/lines are removed when the
|
||||
// LCD updates
|
||||
|
||||
// SD Card Sorting options
|
||||
#if ENABLED(SDCARD_SORT_ALPHA)
|
||||
#define SDSORT_LIMIT 255 // Maximum number of sorted items (10-256).
|
||||
#define FOLDER_SORTING -1 // -1=above 0=none 1=below
|
||||
#define SDSORT_GCODE false // Allow turning sorting on/off with LCD and M34 g-code.
|
||||
#define SDSORT_USES_RAM true // Pre-allocate a static array for faster pre-sorting.
|
||||
#define SDSORT_USES_STACK false // Prefer the stack for pre-sorting to give back some SRAM. (Negated by next 2 options.)
|
||||
#define SDSORT_CACHE_NAMES true // Keep sorted items in RAM longer for speedy performance. Most expensive option.
|
||||
#define SDSORT_DYNAMIC_RAM false // Use dynamic allocation (within SD menus). Least expensive option. Set SDSORT_LIMIT before use!
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define BTN_EN1 31 // J3-2 & AUX-4
|
||||
#define BTN_EN2 33 // J3-4 & AUX-4
|
||||
#define BTN_ENC 35 // J3-3 & AUX-4
|
||||
@ -300,6 +320,26 @@
|
||||
#define ENET_TXD0 78 // J12-11
|
||||
#define ENET_TXD1 79 // J12-12
|
||||
|
||||
/**
|
||||
* PWMS
|
||||
*
|
||||
* There are 6 PWMS. Each PWM can be assigned to one of two pins.
|
||||
*
|
||||
* SERVO2 does NOT have a PWM assigned to it.
|
||||
*
|
||||
* PWM1.1 DIO4 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
|
||||
* PWM1.1 DIO26 E0_STEP_PIN
|
||||
* PWM1.2 DIO11 SERVO0_PIN
|
||||
* PWM1.2 DIO54 X_STEP_PIN
|
||||
* PWM1.3 DIO6 SERVO1_PIN J5-1
|
||||
* PWM1.3 DIO60 Y_STEP_PIN
|
||||
* PWM1.4 DIO53 SDSS(SSEL0) J3-5 AUX-3
|
||||
* PWM1.4 DIO46 Z_STEP_PIN
|
||||
* PWM1.5 DIO3 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.5 DIO9 RAMPS_D9_PIN
|
||||
* PWM1.6 DIO14 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.6 DIO10 RAMPS_D10_PIN
|
||||
*/
|
||||
|
||||
/**
|
||||
* The following pins are NOT available in a Re-ARM system
|
||||
|
Reference in New Issue
Block a user