Commit Graph

3693 Commits

Author SHA1 Message Date
Scott Lahteine
8ca0b2fd68 Move M355 caselight to cpp 2017-09-21 16:27:09 -05:00
Scott Lahteine
59608086e6 Move M350_M351 to cpp 2017-09-21 16:27:09 -05:00
Scott Lahteine
6e0503eab2 Move M907-M910 to cpp 2017-09-21 16:27:09 -05:00
Scott Lahteine
2e89685154 Move TMC2130 g-codes to cpp 2017-09-21 16:27:09 -05:00
Scott Lahteine
19dde5be03 Move M900 to cpp 2017-09-21 16:27:08 -05:00
Scott Lahteine
1b0acbff72 Move M605 to cpp 2017-09-21 16:27:08 -05:00
Scott Lahteine
75cf17d816 Move M702 MK2_MULTIPLEXER to cpp 2017-09-21 16:27:08 -05:00
Scott Lahteine
7ba2ab4fb3 Move M540 to cpp 2017-09-21 16:27:07 -05:00
Scott Lahteine
a90c7dbf64 Move M500-M503 to cpp 2017-09-21 16:27:07 -05:00
Scott Lahteine
aab5489962 Move M428 to cpp 2017-09-21 16:27:07 -05:00
Scott Lahteine
1fe25271e4 Move M401_M402 to cpp 2017-09-21 16:27:07 -05:00
Scott Lahteine
0589884d26 Move M400 to cpp 2017-09-21 16:27:06 -05:00
Scott Lahteine
4a220a8b79 Move M380_M381 to cpp, solenoid feature 2017-09-21 16:27:06 -05:00
Scott Lahteine
9be8cb0ac9 Move M360-M364 to cpp 2017-09-21 16:27:06 -05:00
Scott Lahteine
828405cac8 Move M302 to cpp 2017-09-21 16:27:06 -05:00
Scott Lahteine
8584f7e390 Move M250 to cpp 2017-09-21 16:27:05 -05:00
Scott Lahteine
ebb9bd5419 Move M240 to cpp 2017-09-21 16:27:05 -05:00
Scott Lahteine
d4aaa0f1c8 Move M304 to cpp 2017-09-21 16:27:05 -05:00
Scott Lahteine
609c4eea32 Move M301 to cpp 2017-09-21 16:27:04 -05:00
Scott Lahteine
4f14849675 Move M300 to cpp 2017-09-21 16:27:04 -05:00
Scott Lahteine
6ed5252884 Move M280 to cpp 2017-09-21 16:27:04 -05:00
Scott Lahteine
d4d3d92f8a Move M260_M261 to cpp 2017-09-21 16:27:04 -05:00
Scott Lahteine
3e761696a0 Move M226 to cpp 2017-09-21 16:27:03 -05:00
Scott Lahteine
0e319104c2 Move M220 to cpp 2017-09-21 16:27:03 -05:00
Scott Lahteine
234de3547c Move M211 to cpp 2017-09-21 16:27:03 -05:00
Scott Lahteine
6c7bad8bc3 Move M666 to cpp 2017-09-21 16:27:03 -05:00
Scott Lahteine
f5877aa93e Move M665 to cpp 2017-09-21 16:27:02 -05:00
Scott Lahteine
33861d4e04 Move M206 to cpp 2017-09-21 16:27:02 -05:00
Scott Lahteine
7aca9fe2f7 Move M203-M205 to cpp 2017-09-21 16:27:02 -05:00
Scott Lahteine
b3822b9242 M202 is unused 2017-09-21 16:27:02 -05:00
Scott Lahteine
5e63efc1d9 Move M201 to cpp 2017-09-21 16:27:01 -05:00
Scott Lahteine
92c15f5578 Move M150 to cpp 2017-09-21 16:27:01 -05:00
Scott Lahteine
eef4a54778 Move M119-M121 to cpp 2017-09-21 16:27:01 -05:00
Scott Lahteine
379f16558e Move M118 to cpp 2017-09-21 16:27:00 -05:00
Scott Lahteine
811c32b85a Move M117 to cpp 2017-09-21 16:27:00 -05:00
Scott Lahteine
1d2061c935 Move M115 to cpp 2017-09-21 16:27:00 -05:00
Scott Lahteine
81b8fbf4d6 Move M114 to cpp 2017-09-21 16:27:00 -05:00
Scott Lahteine
5d2681a105 Move M100 to cpp 2017-09-21 16:26:59 -05:00
Scott Lahteine
beb346e49f Move M92 to cpp 2017-09-21 16:26:59 -05:00
Scott Lahteine
381b17e6a9 Move M18_M84, M85 to cpp 2017-09-21 16:26:59 -05:00
Scott Lahteine
a911215b0e Move M82_M83 to cpp 2017-09-21 16:26:59 -05:00
Scott Lahteine
4b9d1b9f26 Move M80-M81 to cpp 2017-09-21 16:26:58 -05:00
Scott Lahteine
0c7ba52451 Move M149 to cpp 2017-09-21 16:26:58 -05:00
Scott Lahteine
cbf40f7ee9 Move M145 to cpp 2017-09-21 16:26:58 -05:00
Scott Lahteine
b464887ea1 Make BARICUDA a feature 2017-09-21 16:26:57 -05:00
Scott Lahteine
14a5d2a273 Move M113 to cpp 2017-09-21 16:26:57 -05:00
Scott Lahteine
06f3c8029e Move M111 to cpp 2017-09-21 16:26:57 -05:00
Scott Lahteine
a831977dee Move M110 to cpp 2017-09-21 16:26:57 -05:00
Scott Lahteine
7479ff98b7 Move M140, M190 to cpp 2017-09-21 16:26:56 -05:00
Scott Lahteine
5b3e49babd Move M108, M112, M410 to cpp 2017-09-21 16:26:56 -05:00
Scott Lahteine
df0432c7c8 Move M155 to cpp, auto-report to Temperature 2017-09-21 16:26:56 -05:00
Scott Lahteine
df031ab100 Move M106_M107 to cpp 2017-09-21 16:26:56 -05:00
Scott Lahteine
99c4b9050a Move M105 to cpp 2017-09-21 16:26:55 -05:00
Scott Lahteine
a41130f854 Temp stat LEDs 2017-09-21 16:26:55 -05:00
Scott Lahteine
2c1eda9e00 Move M75-M78 to cpp 2017-09-21 16:26:55 -05:00
Scott Lahteine
fc52fc72ac Move M48 to cpp 2017-09-21 16:26:54 -05:00
Scott Lahteine
be8d913484 Move M43 to cpp 2017-09-21 16:26:54 -05:00
Scott Lahteine
10fab24e50 Move M42 to cpp 2017-09-21 16:26:54 -05:00
Scott Lahteine
69b664b6fe Move M31 to cpp 2017-09-21 16:26:54 -05:00
Scott Lahteine
a442c34a1a Move SD commands to cpp 2017-09-21 16:26:53 -05:00
Scott Lahteine
be0e4a4ad0 Consolidate pause, apply to M125, M600, M24 2017-09-21 16:26:53 -05:00
Scott Lahteine
adca4a9b79 Move M17 to cpp 2017-09-21 16:26:53 -05:00
Scott Lahteine
33e00b6cd6 Move M3-M5 to cpp 2017-09-21 16:26:53 -05:00
Scott Lahteine
04583d46af Move M0_M1 to cpp 2017-09-21 16:26:52 -05:00
Scott Lahteine
04376975ce Move G92 to cpp 2017-09-21 16:26:52 -05:00
Scott Lahteine
931aa79d85 Move G42 to cpp 2017-09-21 16:26:52 -05:00
Scott Lahteine
84ddae56a8 Move G38 to cpp 2017-09-21 16:26:51 -05:00
Scott Lahteine
b8adae0785 Move G31_G32 to cpp 2017-09-21 16:26:51 -05:00
Scott Lahteine
9db5d21837 Move G30 to cpp 2017-09-21 16:26:51 -05:00
Scott Lahteine
13136376ee Move G27 to cpp 2017-09-21 16:26:51 -05:00
Scott Lahteine
a1ee1628e5 Move G20_G21 to cpp 2017-09-21 16:26:50 -05:00
Scott Lahteine
9b4aa5ea8b Move G17-G19 to cpp 2017-09-21 16:26:50 -05:00
Scott Lahteine
94d9def81c Move G12 to cpp 2017-09-21 16:26:50 -05:00
Scott Lahteine
56f4a43535 Move G5 to cpp 2017-09-21 16:26:50 -05:00
Scott Lahteine
760f29a88e Move G4 to cpp 2017-09-21 16:26:49 -05:00
Scott Lahteine
4007cbfe9e Move G2_G3 to cpp 2017-09-21 16:26:49 -05:00
Scott Lahteine
27f7e3fe6f Hide problem pins in pin debug list 2017-09-21 16:26:49 -05:00
Scott Lahteine
9c21191f74 Rename SPI class to avoid conflict (good?) 2017-09-21 16:26:49 -05:00
Scott Lahteine
51f195e698 Move dwell to gcode 2017-09-21 16:26:48 -05:00
Scott Lahteine
4f1eadf41f FILAMENT_WIDTH_SENSOR feature 2017-09-21 16:26:48 -05:00
Scott Lahteine
d5fe0fb02b Consolidate PrintCounter 2017-09-21 16:26:48 -05:00
Scott Lahteine
551752eac7 Consolidate "bedlevel" code 2017-09-21 16:26:47 -05:00
Scott Lahteine
71aefc2e22 Move heater output to Temperature class 2017-09-21 16:26:47 -05:00
Scott Lahteine
63228fc453 Move volumetric flag to GCodeParser 2017-09-21 16:26:47 -05:00
Scott Lahteine
bf7af95db3 Move flow_percentage to Planner 2017-09-21 16:26:46 -05:00
Scott Lahteine
8dc2838d98 Move host keepalive to GcodeSuite 2017-09-21 16:26:46 -05:00
Scott Lahteine
8fbb833de9 Encapsulate RGB(W) LEDs 2017-09-21 16:26:46 -05:00
Scott Lahteine
a98e9874db FWRETRACT as a feature 2017-09-21 16:26:46 -05:00
Scott Lahteine
722786966a Add gcode.cpp, motion.*, queue.* - Apply to some G-codes. 2017-09-21 16:26:45 -05:00
Scott Lahteine
4231faf779 Initial split-up of G-code handlers by category 2017-09-21 16:26:45 -05:00
Scott Lahteine
e0a189a481 Consolidate Buzzer 2017-09-21 16:26:45 -05:00
Scott Lahteine
bca67a5b79 Main controller updates 2017-09-21 16:26:44 -05:00
Scott Lahteine
142d8aae56 Move debugging to serial.* 2017-09-21 16:26:44 -05:00
Scott Lahteine
a1e2b5da70 Fix LCD_PINS_Dn tests in pinsDebug_list.h 2017-09-21 16:26:44 -05:00
Scott Lahteine
038f82cc38 Fix L6470 init and options 2017-09-21 16:26:43 -05:00
Scott Lahteine
42e2dd9251 Build file updates 2017-09-21 16:26:43 -05:00
Scott Lahteine
614a86a380 SD file updates 2017-09-21 16:26:43 -05:00
Scott Lahteine
82fff87e16 Pins updates 2017-09-21 16:26:43 -05:00
Scott Lahteine
3d8a0ab4b2 Module updates 2017-09-21 16:26:42 -05:00
Scott Lahteine
0fcec02db5 LCD updates 2017-09-21 16:26:42 -05:00
Scott Lahteine
7dd0a46732 Language updates 2017-09-21 16:26:41 -05:00
Scott Lahteine
4a82e95c3e Feature file updates 2017-09-21 16:26:41 -05:00
Scott Lahteine
d7ee81202f Libs updates 2017-09-21 16:26:41 -05:00
Scott Lahteine
34101224c4 Inc updates 2017-09-21 16:26:41 -05:00
Scott Lahteine
f52a31a275 Core updates 2017-09-21 16:26:40 -05:00
Scott Lahteine
479652073b Config updates 2017-09-21 15:52:17 -05:00
Scott Lahteine
54326fb06a HAL updates 2017-09-21 15:52:17 -05:00
Scott Lahteine
7e42c7563c Move build files into place 2017-09-12 14:51:06 -05:00
Scott Lahteine
b66d65f865 Move 'sd' files 2017-09-12 14:51:05 -05:00
Scott Lahteine
0b9a88d6ce Move 'pins' files 2017-09-12 14:51:05 -05:00
Scott Lahteine
2b3b7d5d7f Move 'thermistor' files 2017-09-12 14:51:05 -05:00
Scott Lahteine
0c9231fd04 Move 'module' files 2017-09-12 14:51:05 -05:00
Scott Lahteine
efa578d6b0 Move 'libs' files 2017-09-12 14:51:04 -05:00
Scott Lahteine
cc92e544a5 Move 'lcd' files 2017-09-12 14:51:04 -05:00
Scott Lahteine
5be07b5db2 Move 'inc' files 2017-09-07 07:42:55 -05:00
Scott Lahteine
9ea2ff950a Move 'gcode' files 2017-09-07 07:42:55 -05:00
Scott Lahteine
4e4d16c92e Move 'core' files 2017-09-07 07:42:55 -05:00
Scott Lahteine
fa5f9c2aec Move 'feature' files 2017-09-07 07:42:54 -05:00
Scott Lahteine
f536c4dccb Move configs 2017-09-06 06:28:30 -05:00
Scott Lahteine
48351fd6d5 Move root sources 2017-09-06 06:28:29 -05:00
Scott Lahteine
27cbb939b2 Clean up some HAL code 2017-08-31 18:36:53 -05:00
Christopher Pepper
8afe13b1a2 Fix compile issue when watchdog was disabled 2017-08-31 18:33:07 -05:00
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
2017-08-31 18:33:07 -05:00
Scott Lahteine
2af62a5d8d Apply spacing, const to some HAL code 2017-08-31 18:33:07 -05:00
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.
2017-08-31 18:33:07 -05:00
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.
2017-08-31 18:33:07 -05:00
Tannoo
94dd39b3b7 LCD_UBL_memory_slot_corrections (#7516)
* 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.
2017-08-31 18:33:07 -05:00
Bob-the-Kuhn
97444391e0 Servo & PWM support for LPC1768 (#7500) 2017-08-31 18:31:43 -05:00
Tannoo
859fa35287 Re-Arm bugfixes (#7495)
* UBL_correction

* RGB Map function
2017-08-31 18:31:43 -05:00
Bob-the-Kuhn
d80877d570 Set pinMode with every digitalWrite (legacy compatibility) 2017-08-31 18:31:07 -05:00
Chris Pepper
9a950e3a5a Update the delay functions and change the default pinmap for character displays (#7434) 2017-08-31 18:31:07 -05:00
Scott Lahteine
105324b85b Match the license headers in other files 2017-08-31 18:31:07 -05:00
Chris Pepper
61c0a10efe Revert "SPI API platform implementation stubs" (#7416)
This reverts commit 2dfa6ca72a2e8d43caf4932ca0d35792f0638917.

Revert "Base HAL SPI Changes"

This reverts commit 2afc521b8b6a81b2281a038f1b99a69f4a008e64.

Revert "Initial HAL SPI API"

This reverts commit 58f7ffe09ab5bc034b6510f5204f8d342138abaa.
2017-08-31 18:31:07 -05:00
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
2017-08-31 18:23:44 -05:00
Christopher Pepper
32e759c928 SPI API platform implementation stubs 2017-08-31 18:23:44 -05:00
Christopher Pepper
4183a249b6 Moved CMSIS and other LPC1768 dependencies
Fixes Arduino IDE builds for 8-bit AVR,
misc: Adafruit NeoPixel currently incompatible with Teensy 3.5-6, blacklisted
2017-08-31 18:23:44 -05:00
Christopher Pepper
b55295ad33 Post merge fix
Add macros.h to allow Enabled macro, also need to reference include files directly
2017-08-31 18:23:44 -05:00
Christopher Pepper
c66d1ac651 Debug Pins Support 2017-08-31 18:21:38 -05:00
Christopher Pepper
bcd050f33b Initial HAL SPI API 2017-08-31 18:21:38 -05:00
Christopher Pepper
44b0c186a6 HAL for Re:ARM (LPC1768) architecture 2017-08-31 18:21:38 -05:00
teemuatlut
f3e562e46e HAL for 32-bit Teensy (3.5, 3.6) architecture 2017-08-31 18:15:07 -05:00
Christopher Pepper
cfef925559 HAL for DUE architecture 2017-08-31 18:15:07 -05:00
Christopher Pepper
4b16fa3272 Implement HAL and apply macros across code-base
Implement AVR Platform
2017-08-31 18:14:31 -05:00