Scott Lahteine
38e1823375
Add HAL.h for AVR for easier 2.0.x parity
2018-05-20 21:24:57 -05:00
Scott Lahteine
3505d018db
Smarter MIN, MAX, ABS macros
...
Use macros that explicitly avoid double-evaluation and can be used for any datatype, replacing `min`, `max`, `abs`, `fabs`, `labs`, and `FABS`.
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
2018-05-13 04:51:33 -05:00
Scott Lahteine
bf0fcebfe6
Apply _AXIS macro
2018-05-13 04:51:32 -05:00
Scott Lahteine
039302bf4c
Better handling of DELAY_NS and DELAY_US ( #10717 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
2018-05-12 04:22:55 -05:00
Scott Lahteine
7ee1ab4fd3
Add Bézier Jerk Control option
2018-05-08 09:21:54 -05:00
Scott Lahteine
99cbeb3806
Do rounding in integer (instead of FIXFLOAT)
...
Co-Authored-By: Bob-the-Kuhn <bob-the-kuhn@users.noreply.github.com>
2018-04-29 19:34:16 -05:00
Scott Lahteine
81b9914704
Further cleanup of inline delays
2018-04-27 19:25:14 -05:00
Scott Lahteine
8f5d99a2ab
Wrap delay macros in do{}while(0)
2018-04-27 00:34:40 -05:00
Scott Lahteine
5c186f7dd3
Try FIXFLOAT rounding based on sign
2018-04-17 15:59:49 -05:00
Scott Lahteine
72776f647b
Move _AXIS macro to macros.h
2018-03-19 17:59:59 -05:00
Thomas Moore
5b4e39a429
Apply feedrate to nozzle movement for kinematic machines
2018-02-03 22:17:13 -06:00
Scott Lahteine
f4639fa964
Move SET_BIT macro to endstops.cpp and simplify
2018-02-02 00:50:29 -06:00
Scott Lahteine
31920a5285
Add / use 32-bit wide bit macros
2018-02-01 21:47:23 -06:00
Scott Lahteine
d8aa40eedf
Marlin must override _BV for 32-bit masks!
2018-01-23 23:50:42 -06:00
Scott Lahteine
deaa70c2cc
Update macros for parity with 2.0.x
2017-11-10 04:32:27 -06:00
Scott Lahteine
318c419f77
Implement support for Dual X and Y endstops
2017-10-29 03:49:45 -05:00
Scott Lahteine
4e19ff75b6
XON/XOFF corrections, tweaks, formatting, etc.
2017-10-02 03:52:42 -05:00
etagle
b4c53af07d
Adding a new macro to be able to determine if a given integer value is a power of 2
2017-08-08 02:09:50 -03:00
Scott Lahteine
6c45d0fd81
Apply maths macros and type changes ahead of HAL
2017-06-19 22:57:42 -05:00
bgort
2f55870edb
[New Feature] I2C position encoder support ( #6946 )
...
* [New Feature] I2C position encoder support
I plan to continue improving/cleaning this up, as there areas that need work.
* let the cleanups begin.
* progress
* more progress
* comments, rename files, etc.
* clean
* Cleanups per thinkyhead
* a few more cleanups
* cleanups, bugfixes, etc.
* remove unnecessary passes_test(), additional cleanups/optimizations
* cleanups
* misc.
* Fix up I2CPEM.init() and a few other things.
* organize, fix, rename, etc.
* more optimization
* a few more tweaks
2017-06-09 08:06:23 -04:00
Scott Lahteine
4a96433b7e
Simplify counting of printable characters
2017-05-31 23:45:41 -05:00
Scott Lahteine
6b9ca16f36
Patch lcd_print edge limit code
2017-05-30 03:32:15 -05:00
Scott Lahteine
f4028fe088
New GCode Parser - Implementation
2017-05-23 14:15:10 -05:00
Scott Lahteine
34cfbc90cd
Use new attribute macros in more places
2017-05-22 17:38:58 -05:00
oldmcg
48f7652143
UBL G29 -P3.1 smart fill ( #6823 )
...
* UBL G29 -P3.1 mesh fill with distance-weighted least squares fit.
* Back to original -O0 on G29 for now.
2017-05-22 12:33:50 -05:00
Scott Lahteine
081bf1f879
Patch #else / #endif comments
2017-05-09 12:37:23 -05:00
Scott Lahteine
6a9b008044
Fix MINIMUM_STEPPER_PULSE maths
2017-04-11 11:11:17 -05:00
Scott Lahteine
e02a5a6371
Add macros for delays by machine cycle
2017-04-11 09:18:32 -05:00
Scott Lahteine
04050237f0
Header and pins changes to support 5 extruders
2017-04-07 10:46:36 -05:00
Scott Lahteine
4487d22d56
Apply FIXFLOAT macro
2017-03-31 09:27:48 -05:00
Scott Lahteine
25a6bfa7ed
Add and apply WITHIN macro
2017-03-31 09:27:48 -05:00
Scott Lahteine
87b03b16bd
Use a macro for array copies
2017-03-05 04:43:46 -06:00
Scott Lahteine
c9193e856d
Limit preheat parameters based on all nozzles
2016-11-28 01:37:24 -06:00
Scott Lahteine
f663220e87
Store Mix factors as reciprocals and multiply
2016-11-12 15:19:18 -06:00
Scott Lahteine
3544c3632f
Merge pull request #5062 from thinkyhead/rc_warnings_fix
...
Warnings fixed redux
2016-10-22 12:21:36 -05:00
Josef Pavlik
c2b51af3ba
fixed warning: ISO C does not permit named variadic macros
2016-10-22 11:12:29 -05:00
Scott Lahteine
5f5a55a0de
Add a ZERO macro to clear arrays
2016-10-22 10:07:18 -05:00
Scott Lahteine
eabff30e75
Improve MINIMUM_STEPPER_PULSE
2016-09-24 02:23:43 -05:00
Scott Lahteine
413b61e64a
Add HYPOT2 and float comparison macros
2016-09-13 03:32:58 -05:00
Scott Lahteine
280534c06f
Add M211: Enable/Disable Software Endstops
2016-08-21 00:10:08 -05:00
Scott Lahteine
628dcbc764
extruder_multiplier => flow_percentage
2016-08-18 22:13:47 -05:00
Scott Lahteine
b73203a0b7
Move some includes around to uncover missing deps
2016-08-02 19:37:46 -07:00
Scott Lahteine
d9f7ed9a3c
Move some macros from Marlin.h to macros.h
2016-07-26 12:37:13 -07:00
Scott Lahteine
93ea281061
Split up Conditionals.h into two files
...
Rather than include twice, which is tricky but may confuse
2016-07-25 20:30:45 -07:00
Scott Lahteine
9f9fe043ba
Apply sq macro throughout
2016-07-17 13:29:41 -07:00
João Brázio
fa4274cf4c
Improves the custom bootscreen logo feature
2016-07-17 01:31:44 +01:00
Scott Lahteine
e650a75b88
Simplified variable-size array macros
2016-07-01 20:36:05 -07:00
Scott Lahteine
07c9a11c3c
Automatically set X2 stepper pins
2016-05-18 19:09:09 -07:00
Scott Lahteine
c6f1337f5c
NOOP macro for do-nothing macros
2016-05-01 13:49:32 -07:00
Scott Lahteine
386140f361
Test time difference in safe way
2016-04-10 18:09:31 -07:00