Commit Graph

7293 Commits (13d839795cb9ec0d81e1f3e8517e1f2e12fe4714)

Author SHA1 Message Date
Scott Lahteine 965b0ab53e Spacing adjustments
Scott Lahteine ac41eb5871 Merge pull request from tcm0116/2.0.x-warnings
Cleanup 2.0.x compiler warnings
Thomas Moore ae2173cd52 Synchronize retractions
Thomas Moore 0cb00f52d9 Cleanup warnings
Bob-the-Kuhn 1beaef0452 fix 3S hang & enable SPLIT
Thomas Moore 020ce176c4 Fix Servo class compile errors
Bob-the-Kuhn 62054af6eb 2.0 compile issues
Christopher Pepper bea3ec2724 M355 S0, S1 fixes & faster LCD, SD card
fix Travis error
Scott Lahteine 8c622a59cf Merge pull request from thinkyhead/bf2_lcd_leveling_status
[2.0.x] Show leveling status on character LCD
Scott Lahteine 56c05a7015 Show leveling status on character LCD
Scott Lahteine 2ee4eef25c Merge pull request from
[bugfix-2.0.x] Fix compiler error (issue )
Scott Lahteine ffed785656 Merge pull request from thinkyhead/bf2_HAL_STM32F1
[2.0.x] HAL for STM32F1
Scott Lahteine 604b804125 Add confirmation step to Init EEPROM
Tannoo c869dc9745 User script return-to-status option
victorpv e9acb63290 STM32F1 HAL
Adding files for STM32F1 HAL based on libmaple/stm32duino core.
Current persistent_store uses cardreader changes to be sent in separate
commit, but could be changed to use i2c eeprom.
Scott Lahteine c2b1d51f16 HAL whitespace and style cleanup
Scott Lahteine c272f2c84e Cleanup pins spacing
Scott Lahteine dff2904c0f Marlin code whitespace cleanup
Scott Lahteine 599f2ad983 Define pin accessors more like <Arduino.h>
Scott Lahteine 358656acc3 Tweak HAL_adc_start_conversion
Scott Lahteine 0cb4d25431 Tweaks to Servo classes
Phr3d13 10c1b442ca Fixes for Anet10 and gt2560
Fixes for 2 "... not declared in this scope" compiler errors.
Phr3d13 5a3a53379f Update pins for GT2560_Rev_A_Plus
For PR 
Scott Lahteine fdf1b8a7b8 Fix sanity check for LCD_FOR_MELZI
Comes from 
Scott Lahteine b93a55e15f Fix ST7920_DELAY_2 potentially being unset
Comes from 
Scott Lahteine ce1638e32f Add Babystep Z graphic overlay
See PR 
Scott Lahteine 49c693c85b Tweak to serial macros
Scott Lahteine 46709ed7e0 More featureful CR-10 configurations
See 
Scott Lahteine 2b112143fa Update Sanguinololu config version
Scott Lahteine 7cd5eb6d42 Update LEVEL_BED_CORNERS config option
Scott Lahteine 981a610f75 Disable BABYSTEP_XY, add to SDSORT comment
Scott Lahteine 4c5be9bb05 Fix a PARKING_EXTRUDER comment
Scott Lahteine 494b0eba2d Config spacing fix
Scott Lahteine 2281154025 Increase BABYSTEP_MULTIPLICATOR to 100
Scott Lahteine 92dbf5f148 Fix babystep edit label, allowing translation
Scott Lahteine 37eb6d1732 Babystepping code tweak
Scott Lahteine 7a29f802d0 Fix ENCODER_PULSES_PER_STEP for G3D_PANEL
Scott Lahteine 5972251b17 No need for unused LCD_PINS_Dn
GMagician c508e9adec Fix compiler error
Added missing include file,
called 'leveling_is_active()' with no prototipe defined.
Scott Lahteine c4e4a0688c Fix bug in SD Autostart
As pointed out by @marcio-ao in 
Scott Lahteine 6d5fcac54a G33 changes from 1.1.x
Dave Johnson f58ba3a64e Improve AVR arch detection
Replace ARDUINO_ARCH_AVR with __AVR__ to better detect architecture for non-Arduino dev environments.  Resolves compile failure in PIO for 8-bit Teensduino targets

More info:
https://forum.pjrc.com/threads/33234-Using-Teensyduino-Selecting-Teensy-3-2-3-1-board-has-incorrect-platform-define
http://www.atmel.com/webdoc/avrlibcreferencemanual/using_tools_1using_avr_gcc_mach_opt.html
Scott Lahteine 71d63fcafb Apply LCD changes from 1.1.x
Changes from 
Scott Lahteine 1587962547 Combine G-code files into fewer units
Addressing 
Scott Lahteine bfd1e75c04 Patch for caselight + lcd compile issues
Scott Lahteine ff1f211eb4 Merge pull request from tcm0116/move_framework
Move LPC1768 framework out of Marlin source folder
Thomas Moore ddbd4b73e0 Move LPC1768 framework out of Marlin source folder
GMagician 00b1b33816 Fix compiler warning
Scott Lahteine f37ed314e0 Friendly layout for Arduino IDE
Scott Lahteine 06a02dd200 Workaround for SCK/MOSI pins on VIKI
Scott Lahteine f9ef446fb5 Clean up after refactor
Scott Lahteine 64dfb46461 Move z_endstop_adj to Endstops
Scott Lahteine 2e20c53c9d Move endstop debug to Endstops
Scott Lahteine a10451ceed Move Volumetric methods to Planner
Scott Lahteine 6f92ab7eed Move Controller Fan to feature
Scott Lahteine 07cf75883f Move T (tool change) to cpp
Scott Lahteine 927524af6b Move M999 to cpp
Scott Lahteine 1a37ebc76d Move M163-M165 MIXING_EXTRUDER to cpp
Scott Lahteine 8ca0b2fd68 Move M355 caselight to cpp
Scott Lahteine 59608086e6 Move M350_M351 to cpp
Scott Lahteine 6e0503eab2 Move M907-M910 to cpp
Scott Lahteine 2e89685154 Move TMC2130 g-codes to cpp
Scott Lahteine 19dde5be03 Move M900 to cpp
Scott Lahteine 1b0acbff72 Move M605 to cpp
Scott Lahteine 75cf17d816 Move M702 MK2_MULTIPLEXER to cpp
Scott Lahteine 7ba2ab4fb3 Move M540 to cpp
Scott Lahteine a90c7dbf64 Move M500-M503 to cpp
Scott Lahteine aab5489962 Move M428 to cpp
Scott Lahteine 1fe25271e4 Move M401_M402 to cpp
Scott Lahteine 0589884d26 Move M400 to cpp
Scott Lahteine 4a220a8b79 Move M380_M381 to cpp, solenoid feature
Scott Lahteine 9be8cb0ac9 Move M360-M364 to cpp
Scott Lahteine 828405cac8 Move M302 to cpp
Scott Lahteine 8584f7e390 Move M250 to cpp
Scott Lahteine ebb9bd5419 Move M240 to cpp
Scott Lahteine d4aaa0f1c8 Move M304 to cpp
Scott Lahteine 609c4eea32 Move M301 to cpp
Scott Lahteine 4f14849675 Move M300 to cpp
Scott Lahteine 6ed5252884 Move M280 to cpp
Scott Lahteine d4d3d92f8a Move M260_M261 to cpp
Scott Lahteine 3e761696a0 Move M226 to cpp
Scott Lahteine 0e319104c2 Move M220 to cpp
Scott Lahteine 234de3547c Move M211 to cpp
Scott Lahteine 6c7bad8bc3 Move M666 to cpp
Scott Lahteine f5877aa93e Move M665 to cpp
Scott Lahteine 33861d4e04 Move M206 to cpp
Scott Lahteine 7aca9fe2f7 Move M203-M205 to cpp
Scott Lahteine b3822b9242 M202 is unused
Scott Lahteine 5e63efc1d9 Move M201 to cpp
Scott Lahteine 92c15f5578 Move M150 to cpp
Scott Lahteine eef4a54778 Move M119-M121 to cpp
Scott Lahteine 379f16558e Move M118 to cpp
Scott Lahteine 811c32b85a Move M117 to cpp
Scott Lahteine 1d2061c935 Move M115 to cpp
Scott Lahteine 81b8fbf4d6 Move M114 to cpp
Scott Lahteine 5d2681a105 Move M100 to cpp
Scott Lahteine beb346e49f Move M92 to cpp
Scott Lahteine 381b17e6a9 Move M18_M84, M85 to cpp
Scott Lahteine a911215b0e Move M82_M83 to cpp
Scott Lahteine 4b9d1b9f26 Move M80-M81 to cpp
Scott Lahteine 0c7ba52451 Move M149 to cpp
Scott Lahteine cbf40f7ee9 Move M145 to cpp
Scott Lahteine b464887ea1 Make BARICUDA a feature
Scott Lahteine 14a5d2a273 Move M113 to cpp
Scott Lahteine 06f3c8029e Move M111 to cpp
Scott Lahteine a831977dee Move M110 to cpp
Scott Lahteine 7479ff98b7 Move M140, M190 to cpp
Scott Lahteine 5b3e49babd Move M108, M112, M410 to cpp
Scott Lahteine df0432c7c8 Move M155 to cpp, auto-report to Temperature
Scott Lahteine df031ab100 Move M106_M107 to cpp
Scott Lahteine 99c4b9050a Move M105 to cpp
Scott Lahteine a41130f854 Temp stat LEDs
Scott Lahteine 2c1eda9e00 Move M75-M78 to cpp
Scott Lahteine fc52fc72ac Move M48 to cpp
Scott Lahteine be8d913484 Move M43 to cpp
Scott Lahteine 10fab24e50 Move M42 to cpp
Scott Lahteine 69b664b6fe Move M31 to cpp
Scott Lahteine a442c34a1a Move SD commands to cpp
Scott Lahteine be0e4a4ad0 Consolidate pause, apply to M125, M600, M24
Scott Lahteine adca4a9b79 Move M17 to cpp
Scott Lahteine 33e00b6cd6 Move M3-M5 to cpp
Scott Lahteine 04583d46af Move M0_M1 to cpp
Scott Lahteine 04376975ce Move G92 to cpp
Scott Lahteine 931aa79d85 Move G42 to cpp
Scott Lahteine 84ddae56a8 Move G38 to cpp
Scott Lahteine b8adae0785 Move G31_G32 to cpp
Scott Lahteine 9db5d21837 Move G30 to cpp
Scott Lahteine 13136376ee Move G27 to cpp
Scott Lahteine a1ee1628e5 Move G20_G21 to cpp
Scott Lahteine 9b4aa5ea8b Move G17-G19 to cpp
Scott Lahteine 94d9def81c Move G12 to cpp
Scott Lahteine 56f4a43535 Move G5 to cpp
Scott Lahteine 760f29a88e Move G4 to cpp
Scott Lahteine 4007cbfe9e Move G2_G3 to cpp
Scott Lahteine 27f7e3fe6f Hide problem pins in pin debug list
Scott Lahteine 9c21191f74 Rename SPI class to avoid conflict (good?)
Scott Lahteine 51f195e698 Move dwell to gcode
Scott Lahteine 4f1eadf41f FILAMENT_WIDTH_SENSOR feature
Scott Lahteine d5fe0fb02b Consolidate PrintCounter
Scott Lahteine 551752eac7 Consolidate "bedlevel" code
Scott Lahteine 71aefc2e22 Move heater output to Temperature class
Scott Lahteine 63228fc453 Move volumetric flag to GCodeParser
Scott Lahteine bf7af95db3 Move flow_percentage to Planner
Scott Lahteine 8dc2838d98 Move host keepalive to GcodeSuite
Scott Lahteine 8fbb833de9 Encapsulate RGB(W) LEDs
Scott Lahteine a98e9874db FWRETRACT as a feature
Scott Lahteine 722786966a Add gcode.cpp, motion.*, queue.* - Apply to some G-codes.
Scott Lahteine 4231faf779 Initial split-up of G-code handlers by category
Scott Lahteine e0a189a481 Consolidate Buzzer
Scott Lahteine bca67a5b79 Main controller updates
Scott Lahteine 142d8aae56 Move debugging to serial.*
Scott Lahteine a1e2b5da70 Fix LCD_PINS_Dn tests in pinsDebug_list.h
Scott Lahteine 038f82cc38 Fix L6470 init and options
Scott Lahteine 42e2dd9251 Build file updates
Scott Lahteine 614a86a380 SD file updates
Scott Lahteine 82fff87e16 Pins updates
Scott Lahteine 3d8a0ab4b2 Module updates
Scott Lahteine 0fcec02db5 LCD updates
Scott Lahteine 7dd0a46732 Language updates
Scott Lahteine 4a82e95c3e Feature file updates
Scott Lahteine d7ee81202f Libs updates
Scott Lahteine 34101224c4 Inc updates
Scott Lahteine f52a31a275 Core updates
Scott Lahteine 479652073b Config updates
Scott Lahteine 54326fb06a HAL updates
Scott Lahteine 7e42c7563c Move build files into place
Scott Lahteine b66d65f865 Move 'sd' files
Scott Lahteine 0b9a88d6ce Move 'pins' files
Scott Lahteine 2b3b7d5d7f Move 'thermistor' files
Scott Lahteine 0c9231fd04 Move 'module' files
Scott Lahteine efa578d6b0 Move 'libs' files
Scott Lahteine cc92e544a5 Move 'lcd' files
Scott Lahteine 5be07b5db2 Move 'inc' files
Scott Lahteine 9ea2ff950a Move 'gcode' files
Scott Lahteine 4e4d16c92e Move 'core' files
Scott Lahteine fa5f9c2aec Move 'feature' files
Scott Lahteine f536c4dccb Move configs
Scott Lahteine 48351fd6d5 Move root sources
Scott Lahteine 27cbb939b2 Clean up some HAL code
Christopher Pepper b29b66feda Temporary fix for odd stepper behaviour with servos
Christopher Pepper 8afe13b1a2 Fix compile issue when watchdog was disabled
Christopher Pepper b908e38d08 Add needed platform defined gaurds to compile with Arduino IDE
Also removed explicit platform HAL directory inclusion from platformio.ini to make sure these errors are caught by Travis in the future
Scott Lahteine a037ddbf7b Other spacing tweaks
Scott Lahteine 2af62a5d8d Apply spacing, const to some HAL code
kfazz fa9ff6be6e try to fix LIN_ADVANCE for 32bit
kfazz 18f97c4013 add HardwareSerial and SoftwareSerial for Re-ARM.
HardwareSerial has been tested on Uart0 (debug header) and Uart3 (i2c connector)
Software Serial has been tested to work bi-directionally at 9600 and 115200
using pins 6 and 63 on J5, and unidirectionally (write only) at 250000.
The code used to test was Teemuatlut's tmc2208 patch, and a few small changes to main used to echo recieved chars back to a host pc.
Bob-the-Kuhn 01fb45b4f8 hybrid PWM system
Uses PWM1 to directly control pins 4, 6 & 11 (servo 0, 1 & 3) and PWM1
generated interrupts to control other pins.

Interupt control of the servo pins had too much jitter so switched all
that we could to PWM1 direct control.  The PWM1 direct control pins have
less than 1 microsecond pulse width jitter while the interrupt
controlled ones can have 20+ microseconds of jitter.

Also added insurance to the servo code in the "disable servo after move"
section.
Tannoo 94dd39b3b7 LCD_UBL_memory_slot_corrections ()
* LCD_UBL_memory_slot_corrections

Changed the memory slot edit function to work with the
`settings.calc_num_meshes()`

* Add a little more safety margin...

* More corrections

Error handling when the EEPROM is not available.
Roxy-3D 8587c4e1ec Minor corrections to 32-bit branch ()
Mostly...  clean up some compile time warnings for the 20x4 LCD Display.
Bob-the-Kuhn 7342d5c07a ST7565
Bob-the-Kuhn 97444391e0 Servo & PWM support for LPC1768 ()
Tannoo 859fa35287 Re-Arm bugfixes ()
* UBL_correction

* RGB Map function
Bob-the-Kuhn d80877d570 Set pinMode with every digitalWrite (legacy compatibility)
Chris Pepper 9a950e3a5a Update the delay functions and change the default pinmap for character displays ()
Scott Lahteine 105324b85b Match the license headers in other files
Bob-the-Kuhn 69704b93f2 ultralcd.cpp fix compile error - switch to int16_t
Chris Pepper 61c0a10efe Revert "SPI API platform implementation stubs" ()
This reverts commit 2dfa6ca72a2e8d43caf4932ca0d35792f0638917.

Revert "Base HAL SPI Changes"

This reverts commit 2afc521b8b6a81b2281a038f1b99a69f4a008e64.

Revert "Initial HAL SPI API"

This reverts commit 58f7ffe09ab5bc034b6510f5204f8d342138abaa.
Chris Pepper a5cf3a190c bugfix-2.0.x critical fix ()
* Fix mistake in gitignore file and add in missing core files.

The missing leading slash on "lib" meant all folders names lib in the directory tree are ignored, rather than just the top level PlatformIO lib folder

* Add LiquidCrystal Library and associated headers modified to compile.
Bob-the-Kuhn 76da81c1de minimize SD card reads when using SDCARD_SORT_ALPHA (Re-ARM board)
Because of the Re-ARM card's pinout there is only one SPI connected to
the RepRap Discount Full Graphic LCD display.  The LCD responds to ANY
SCK transitions no matter if it's enable is inactive.  The result is
garbage (usually bars) on the LCD display whenever there is SD card
activity.

This code minimizes this by only accessing the SD card when changing
directory levels if :
SDCARD_SORT_ALPHA is enabled
SDSORT_USES_RAM is true
SDSORT_CACHE_NAMES is true

The code changes result in file names being pulled from the ALPHA SORT
memory array rather than the SD card.

The code also gives the file count and file index functions their own
variables.  When they shared a common variable the index function
sometimes resulted in the file count being short by 1.

=======================================================================

cardreader.cpp & pins_RAMPS_RE_ARM.h changes

Added another condition to cardreader.cpp to enable getting file names
only from RAM.

pins_RAMPS_RE_ARM.h :
Added comments about the SD card accesses and the LCD display
Combined all versions into this one.
Bob-the-Kuhn 84a11cfedc 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