Browse Source

Spacing adjustments

pull/1/head
Scott Lahteine 7 years ago
parent
commit
965b0ab53e
  1. 2
      Marlin/src/inc/SPI.h
  2. 2
      Marlin/src/inc/SanityCheck.h
  3. 2
      Marlin/src/module/probe.cpp
  4. 4
      Marlin/src/module/stepper.cpp
  5. 2
      Marlin/src/pins/pins_ANET_10.h
  6. 17
      Marlin/src/pins/pins_RAMPS_RE_ARM.h
  7. 10
      frameworks/CMSIS/LPC1768/include/lpc_types.h

2
Marlin/src/inc/SPI.h

@ -1,7 +1,7 @@
#include <stdint.h> #include <stdint.h>
#if !defined(SPI_FULL_SPEED) #ifndef SPI_FULL_SPEED
/** /**
* SPI speed where 0 <= index <= 6 * SPI speed where 0 <= index <= 6

2
Marlin/src/inc/SanityCheck.h

@ -632,7 +632,7 @@ static_assert(1 >= 0
/** /**
* Make sure Z raise values are set * Make sure Z raise values are set
*/ */
#if !defined(Z_CLEARANCE_DEPLOY_PROBE) #ifndef Z_CLEARANCE_DEPLOY_PROBE
#error "You must define Z_CLEARANCE_DEPLOY_PROBE in your configuration." #error "You must define Z_CLEARANCE_DEPLOY_PROBE in your configuration."
#elif !defined(Z_CLEARANCE_BETWEEN_PROBES) #elif !defined(Z_CLEARANCE_BETWEEN_PROBES)
#error "You must define Z_CLEARANCE_BETWEEN_PROBES in your configuration." #error "You must define Z_CLEARANCE_BETWEEN_PROBES in your configuration."

2
Marlin/src/module/probe.cpp

@ -276,7 +276,7 @@ inline void do_probe_raise(const float z_raise) {
#endif #endif
} }
#endif #endif // Z_PROBE_ALLEN_KEY
#if ENABLED(PROBING_FANS_OFF) #if ENABLED(PROBING_FANS_OFF)

4
Marlin/src/module/stepper.cpp

@ -323,7 +323,7 @@ void Stepper::isr() {
HAL_TIMER_TYPE ocr_val; HAL_TIMER_TYPE ocr_val;
#if defined(CPU_32_BIT) #ifdef CPU_32_BIT
#define ENDSTOP_NOMINAL_OCR_VAL 1500 * HAL_TICKS_PER_US // check endstops every 1.5ms to guarantee two stepper ISRs within 5ms for BLTouch #define ENDSTOP_NOMINAL_OCR_VAL 1500 * HAL_TICKS_PER_US // check endstops every 1.5ms to guarantee two stepper ISRs within 5ms for BLTouch
#define OCR_VAL_TOLERANCE 500 * HAL_TICKS_PER_US // First max delay is 2.0ms, last min delay is 0.5ms, all others 1.5ms #define OCR_VAL_TOLERANCE 500 * HAL_TICKS_PER_US // First max delay is 2.0ms, last min delay is 0.5ms, all others 1.5ms
#else #else
@ -335,7 +335,7 @@ void Stepper::isr() {
// Disable Timer0 ISRs and enable global ISR again to capture UART events (incoming chars) // Disable Timer0 ISRs and enable global ISR again to capture UART events (incoming chars)
DISABLE_TEMPERATURE_INTERRUPT(); // Temperature ISR DISABLE_TEMPERATURE_INTERRUPT(); // Temperature ISR
DISABLE_STEPPER_DRIVER_INTERRUPT(); DISABLE_STEPPER_DRIVER_INTERRUPT();
#if !defined(CPU_32_BIT) #ifndef CPU_32_BIT
sei(); sei();
#endif #endif
#endif #endif

2
Marlin/src/pins/pins_ANET_10.h

@ -88,7 +88,7 @@
* Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community. * Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
*/ */
#if !defined(__AVR_ATmega1284P__) #ifndef __AVR_ATmega1284P__
#error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu." #error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu."
#endif #endif

17
Marlin/src/pins/pins_RAMPS_RE_ARM.h

@ -66,7 +66,7 @@
#define Y_MAX_PIN 15 //10k pullup to 3.3V, 1K series #define Y_MAX_PIN 15 //10k pullup to 3.3V, 1K series
#define Z_MIN_PIN 18 //10k pullup to 3.3V, 1K series #define Z_MIN_PIN 18 //10k pullup to 3.3V, 1K series
#define Z_MAX_PIN 19 //10k pullup to 3.3V, 1K series #define Z_MAX_PIN 19 //10k pullup to 3.3V, 1K series
//#define Z_probe_pin 1 // AUX-1 //#define Z_PROBE_PIN 1 // AUX-1
// //
@ -267,23 +267,18 @@
//#define SHIFT_EN 41 // J5-4 & AUX-4 //#define SHIFT_EN 41 // J5-4 & AUX-4
#endif #endif
#if ENABLED(SDSUPPORT)
#define SDCARD_SORT_ALPHA // Using SORT feature to keep one directory level in RAM #define SDCARD_SORT_ALPHA // Using SORT feature to keep one directory level in RAM
// When going up/down directory levels the SD card is // When going up/down directory levels the SD card is
// accessed but the garbage/lines are removed when the // accessed but the garbage/lines are removed when the
// LCD updates // LCD updates
// SD Card Sorting options #define SDSORT_LIMIT 256 // Maximum number of sorted items (10-256). Costs 27 bytes each.
#if ENABLED(SDCARD_SORT_ALPHA)
#define SDSORT_LIMIT 255 // Maximum number of sorted items (10-256). Costs 27 bytes each.
#define FOLDER_SORTING -1 // -1=above 0=none 1=below #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_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_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_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_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! #define SDSORT_DYNAMIC_RAM false // Use dynamic allocation (within SD menus). Least expensive option. Set SDSORT_LIMIT before use!
#endif
#endif
#if ENABLED(VIKI2) || ENABLED(miniVIKI) #if ENABLED(VIKI2) || ENABLED(miniVIKI)
// #define LCD_SCREEN_ROT_180 // #define LCD_SCREEN_ROT_180
@ -307,7 +302,7 @@
#undef LCD_PINS_D5 //59 // J3-8 & AUX-2 #undef LCD_PINS_D5 //59 // J3-8 & AUX-2
#define DOGLCD_A0 59 // J3-8 & AUX-2 #define DOGLCD_A0 59 // J3-8 & AUX-2
#undef LCD_PINS_D6 //63 // J5-3 & AUX-2 #undef LCD_PINS_D6 //63 // J5-3 & AUX-2
#undef LCD_PINS_D7 //6 // (SERVO1) J5-1 & SERVO connector #undef LCD_PINS_D7 // 6 // (SERVO1) J5-1 & SERVO connector
#define DOGLCD_SCK SCK_PIN #define DOGLCD_SCK SCK_PIN
#define DOGLCD_MOSI MOSI_PIN #define DOGLCD_MOSI MOSI_PIN
@ -335,9 +330,9 @@
// Ethernet pins // Ethernet pins
// //
#ifndef ULTIPANEL #ifndef ULTIPANEL
#define ENET_MDIO 71 // J12-4 #define ENET_MDIO 71 // J12-4
#define ENET_RX_ER 73 // J12-6 #define ENET_RX_ER 73 // J12-6
#define ENET_RXD1 75 // J12-8 #define ENET_RXD1 75 // J12-8
#endif #endif
#define ENET_MOC 70 // J12-3 #define ENET_MOC 70 // J12-3
#define REF_CLK 72 // J12-5 #define REF_CLK 72 // J12-5

10
frameworks/CMSIS/LPC1768/include/lpc_types.h

@ -134,7 +134,7 @@ typedef int32_t(*PFI)();
/* NULL pointer */ /* NULL pointer */
#ifndef NULL #ifndef NULL
#define NULL ((void*) 0) #define NULL ((void*) 0)
#endif #endif
/* Number of elements in an array */ /* Number of elements in an array */
@ -145,11 +145,11 @@ typedef int32_t(*PFI)();
/* External data/function define */ /* External data/function define */
#define EXTERN extern #define EXTERN extern
#if !defined(MAX) #ifndef MAX
#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif #endif
#if !defined(MIN) #ifndef MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif #endif
/** /**

Loading…
Cancel
Save