Scott Lahteine
80ce0d2bdb
Whitespace cleanup
2019-06-08 06:40:44 -05:00
Ryan
9d9030a39c
Fix Archim1 SD card ( #14184 )
2019-05-30 19:58:38 -05:00
Bob Kuhn
688b54d66a
DUE USB composite device field corrections ( #14185 )
2019-05-30 16:26:48 -05:00
Scott Lahteine
07021c85c8
Tweak timer16_Sequence_t
2019-05-30 16:09:37 -05:00
Giuliano Zaro
7b838f31be
DUE HAL cleanup ( #14126 )
2019-05-26 14:51:32 -05:00
Giuliano Zaro
a74aad3b4a
Clean up HALs / FastIO ( #14082 )
2019-05-21 18:28:12 -05:00
Marcio Teixeira
9558962d59
Fix DUE HAL SW SPI compile error ( #14005 )
2019-05-16 20:36:19 -05:00
Bob Kuhn
456a0ee76b
Improve Due SW SPI, Fysetc sanity checks, &c. ( #13939 )
2019-05-11 16:51:39 -05:00
Scott Lahteine
a613bcad2d
Fix some spelling
2019-05-10 20:39:19 -05:00
Marcio Teixeira
746c38f4be
Fix HAL_DUE multiple define error with graphical LCD ( #13971 )
2019-05-10 19:52:43 -05:00
Scott Lahteine
ad4ffa1d2f
Use C++ language supported 'nullptr' ( #13944 )
2019-05-09 11:45:55 -05:00
Bob Kuhn
c48e6be366
Fysetc panel, RUMBA and ReARM pins, SPI mode 3 ( #13900 )
2019-05-04 17:59:36 -05:00
Scott Lahteine
e7682eea42
Use Arduino.h include wrapper ( #13877 )
2019-05-02 00:45:50 -05:00
Bob Kuhn
81ca5a4cd4
Fix and improve FYSETC LCD support ( #13767 )
2019-04-21 20:48:53 -05:00
Marcio Teixeira
08f21335a6
Fix bad opcode in LIGHTWEIGHT_UI; add 32-bit HAL and Due compatibility ( #13751 )
2019-04-18 13:10:58 -05:00
Alexander Amelkin
e40636a7c1
Replace digitalPinHasPWM with HAS_TIMER ( #13520 )
2019-03-29 12:21:14 -05:00
Chris Pepper
ffc2c2d7c5
Move FAST_PWM_FAN code to HALs ( #13491 )
2019-03-26 01:03:23 -05:00
Bob Kuhn
6bd0a0be97
Relocate DUE Stepper ISR to TC0,2 ( #13481 )
2019-03-25 22:39:51 -05:00
Scott Lahteine
b376c7e374
Group DISABLED items
2019-03-17 07:56:35 -05:00
Scott Lahteine
67bee06e43
No patch needed for non-libmaple analogWrite
...
See https://github.com/pinchies/Marlin/pull/1#issuecomment-471388743
2019-03-13 07:21:10 -05:00
Scott Lahteine
f89b375fb9
Fixes and improvements for PWM pins ( #13383 )
2019-03-13 06:51:15 -05:00
Scott Lahteine
51ff5b68fa
Clean up fastIO ahead of PWM patch
2019-03-12 20:39:55 -05:00
Scott Lahteine
1f7e220387
Make HAL ISR macros function-like
2019-03-10 20:44:27 -05:00
Scott Lahteine
2212da453a
Distinguish between analog/digital auto fans ( #13298 )
2019-03-05 00:41:31 -06:00
Bob Kuhn
ddbe4cfa20
Printrboard G2 support ( #13116 )
2019-02-26 21:03:13 -06:00
Scott Lahteine
dc88747770
Fix Due GET_ARRAY_IS_DIGITAL
...
Co-Authored-By: bob-the-kuhn <bob.kuhn@att.net>
2019-02-26 17:49:14 -06:00
Scott Lahteine
833c2e54a1
Add an empty flushTX to MarlinSerialUSB_Due
2019-02-25 13:48:14 -06:00
Scott Lahteine
e15354e387
Simplify serial port redirect ( #13234 )
2019-02-23 22:53:01 -06:00
Scott Lahteine
631d867dc9
HAL cleanups
2019-02-20 06:27:26 -06:00
Scott Lahteine
758c6c9464
Very minor SPI speedup
2019-02-20 04:36:23 -06:00
Scott Lahteine
422dd6666e
Fix Due EEPROM write bug
...
See #13065
2019-02-20 04:36:23 -06:00
Scott Lahteine
3a1b6fe8c1
Coding standards
2019-02-19 14:58:39 -06:00
Scott Lahteine
0feeef2604
Update copyright in headers
2019-02-12 15:30:11 -06:00
Scott Lahteine
e1587da228
Clean up HAL_spi_Due.cpp ( #13087 )
2019-02-06 06:31:31 -06:00
Scott Lahteine
48a581ba2e
Tweak some HAL Due code
2019-01-23 00:53:20 -06:00
Scott Lahteine
a5911765c3
Tweak some spacing
2019-01-19 20:27:57 -06:00
Scott Lahteine
424aa05cc2
Fix some file endings
2019-01-19 18:19:12 -06:00
Scott Lahteine
ce563d7c2e
Various general cleanups
...
Mostly from the L6470-oriented PR
2019-01-19 16:56:12 -06:00
InsanityAutomation
a403d9a50c
Improve menu pause / resume ( #12876 )
2019-01-11 20:42:11 -06:00
Scott Lahteine
c986239837
A single SERIAL_ECHO macro type ( #12557 )
2018-11-29 16:58:58 -06:00
Marcio Teixeira
7109dadd21
Additional pin definitions for Archim 2 ( #12500 )
...
- Added GPIO pins to Archim 2
- Added new 108 pin to `fastio_Due.h`
2018-11-22 01:07:02 -06:00
Scott Lahteine
66580f32c2
Make CardReader class static ( #12451 )
...
* Make CardReader a static class
* Make CardReader flags into bitfields
2018-11-16 22:39:16 -06:00
Ryan
052d102ded
UltiMachine Archim 1 support ( #12404 )
2018-11-14 00:27:39 -06:00
Scott Lahteine
0ee1a92971
Group status methods, share reset_status with Extensible UI ( #12414 )
...
* Group status methods, share reset_status with Extensible UI
* Move common DOGM code to headers
2018-11-13 01:47:45 -06:00
Scott Lahteine
4e0c935959
Update HAL and libs formatting
2018-11-10 19:43:23 -06:00
Scott Lahteine
e0956bb572
Drop 'register' storage specifier
2018-11-04 16:17:13 -06:00
Scott Lahteine
f5eab912ed
Apply #pragma once, misc cleanup ( #12322 )
...
* Apply #pragma once in headers
* Adjust some thermistors formatting
* Misc cleanup and formatting
2018-11-04 02:25:55 -06:00
Scott Lahteine
3583e2b449
Followup to Menu Refactor ( #12275 )
2018-10-30 16:34:45 -05:00
Scott Lahteine
5580773191
Use FastIO, sanity-check LPC SD options, apply formatting ( #12231 )
2018-10-26 15:23:02 -05:00
Scott Lahteine
d015f746cc
Fix some compile warnings ( #12220 )
2018-10-26 03:53:06 -05:00
Scott Lahteine
7a04eb3a8b
Fix some comment formatting
2018-10-23 22:35:44 -05:00
Scott Lahteine
c6a5c74208
Add parentheses to SD macros
2018-10-19 13:52:57 -05:00
Marcio Teixeira
5b7dd553d3
Fix sd_mmc_spi_mem capacity; clean up USB code ( #12134 )
...
- Fix an error in the return value of `sd_mmc_spi_read_capacity` which was causing the host OS to read beyond the last sector in the card.
- Clean up the USB flashdrive code and add better debugging.
2018-10-18 11:34:07 -05:00
Scott Lahteine
bc75eb2c64
Cleanup for HAL_spi_Due.cpp
2018-10-17 10:33:54 -05:00
Scott Lahteine
0bd54392b7
Use uint8_t in EEPROM code
2018-10-09 19:00:01 -05:00
Marcio Teixeira
ec9aa4f468
[2.0.x] Miscellaneous fixes ( #12039 )
...
* Allow override of soft SPI pins in `pins_*.h`
* Add default case to avoid compiler warning.
* Additional pin definitions for Archim 2.
* Einsy Retro has same timings as Einsy Rambo.
2018-10-08 18:14:52 -05:00
Scott Lahteine
33056046a3
STM32 non-generic PWM_PIN and USEABLE_HARDWARE_PWM ( #12016 )
2018-10-06 00:14:12 -05:00
Scott Lahteine
d5141c4e03
Fix up leading/trailing whitespace
2018-10-05 18:19:59 -05:00
AnoNymous
001f26b642
Template struct simplification for serial ( #11990 )
2018-10-03 11:01:21 -05:00
Eduardo José Tagle
d6955f25b2
Expand serial support in DUE/AVR hals exploiting the templated MarlinSerial classes ( #11988 )
2018-10-03 00:47:27 -05:00
Eduardo José Tagle
f6f2246f59
Templatized serial classes ( #11982 )
2018-10-02 22:15:30 -05:00
Scott Lahteine
ee53f7d813
Revert header reorg.
2018-10-02 22:09:41 -05:00
Scott Lahteine
0dedb3e139
Reorganize some core headers ( #11983 )
2018-10-02 04:25:46 -05:00
Scott Lahteine
ad21a4f07b
Tweaks to HAL format and order
2018-09-28 15:59:50 -05:00
Marcio Teixeira
ccbd045f02
Fixed warning about comparing signed to unsigned ( #11909 )
2018-09-24 12:03:29 -04:00
Marcio Teixeira
c411e7eb0d
[2.0.x] Squelch compiler warnings seen with -Wall ( #11889 )
2018-09-23 12:00:34 -04:00
Holger Müller
1a6f2b29b8
Add support for Triple-Z steppers/endstops
2018-09-16 00:35:58 -05:00
Scott Lahteine
2a61c9a939
Various fixups to configs, spacing, etc.
2018-09-06 06:44:31 -05:00
Scott Lahteine
6a3207391f
Remove obsolete HAL_timer_restrain
2018-08-31 16:17:22 -05:00
Dave Johnson
0456caf0ad
Consolidate shared HALs and isolate HAL compile ( #11552 )
2018-08-20 21:11:12 -05:00
Chris Pepper
5573ef62c6
[2.0.x] PersistentStore update followup ( #11549 )
2018-08-14 17:54:12 -05:00
Scott Lahteine
834ea7fcea
Remove 'const' from PersistentStore::capacity
2018-08-14 04:46:10 -05:00
Dave Johnson
c64199941e
Compile only selected PIO environment ( #11519 )
2018-08-14 03:28:52 -05:00
Scott Lahteine
865ee5985f
Followup persistent store with heading, const
2018-08-13 23:55:33 -05:00
Chris Pepper
66d2b48b59
Update PersistentStore api ( #11538 )
...
- Clean up the API to use a `static` class instance to adhere to Marlin convention
- Add `const` position data access for read/write
- Add Storage capacity to the interface
2018-08-13 17:30:25 -05:00
Andy Shaw
624986d423
Ensure ADC conversion is complete before reading ( #11336 )
...
The current Marlin implementation relies on a timer interrupt to start the ADC conversion and read it. However in some circumstances the interrupt can be delayed resulting in insufficient time being available for the ADC conversion. This results in a bad reading and false temperature fluctuations. These changes make sure that the conversion is complete (by checking the ADC hardware via the HAL) before reading a value.
See: https://github.com/MarlinFirmware/Marlin/issues/11323
2018-07-26 03:59:19 -05:00
teemuatlut
fbcdf5eaeb
Simplify stepper driver per-axis selection
2018-07-25 02:47:43 -05:00
Scott Lahteine
d05e832f29
Add STM32F1 support for SD-based EEPROM
2018-07-06 23:45:47 -05:00
etagle
e7e896e7d7
More tweaks to fastio_Due.h
2018-07-04 17:57:47 -05:00
Scott Lahteine
8a8eae8d97
Implement more fastio_Due macros ( #11165 )
2018-07-01 01:24:06 -05:00
Scott Lahteine
fc10101b06
Tweaks to fastio_Due.h
2018-06-30 00:15:50 -05:00
Scott Lahteine
99591dc20c
Filter endstops state at all times ( #11066 )
2018-06-21 20:14:16 -05:00
etagle
a215725df6
Fix stepper pulse timing
...
Always honor minimum period on stepper pulse generation, and fix timing calculations
Signed-off-by: etagle <ejtagle@hotmail.com>
2018-06-12 21:34:24 -05:00
Scott Lahteine
4dbec774b5
HAL_*_TIMER_RATE => *_TIMER_RATE
2018-06-12 16:39:12 -05:00
etagle
99af086cea
Add hidden Serial overflow debug options
2018-06-10 04:25:42 -05:00
etagle
d90e8fcad9
Fix XON/XOFF implementation
...
Pointed out by @GMagician
2018-06-10 04:25:42 -05:00
Eduardo José Tagle
d3c02410a8
[2.0.x] Small assorted collection of fixes and improvements ( #10911 )
...
* Misc fixes and improvements
- Get rid of most critical sections on the Serial port drivers for AVR and DUE. Proper usage of FIFOs should allow interrupts to stay enabled without harm to queuing and dequeuing.
Also, with 8-bit indices (for AVR) and up to 32-bit indices (for ARM), there is no need to protect reads and writes to those indices.
- Simplify the XON/XOFF logic quite a bit. Much cleaner now (both for AVR and ARM)
- Prevent a race condition (edge case) that could happen when estimating the proper value for the stepper timer (by reading it) and writing the calculated value for the time to the next ISR by disabling interrupts in those critical and small sections of the code - The problem could lead to lost steps.
- Fix dual endstops not properly homing bug (maybe).
* Set position immediately when possible
2018-06-01 19:02:22 -05:00
Scott Lahteine
5f8591528e
Remove #pragmas that don't help c files
2018-05-23 23:47:16 -05:00
Scott Lahteine
c89649b46e
Suppress U8glib build warnings
2018-05-23 02:47:36 -05:00
etagle
569df3fc0c
Fix interrupt-based endstop detection
...
- Also implemented real endstop reading on interrupt.
2018-05-20 07:10:24 -05:00
etagle
0566badcef
Add memory barrier, optimal interrupt on-off
...
Disabling an ISR on ARM has 3 instructions of latency. A Memory barrier is REQUIRED to ensure proper and predictable disabling. Memory barriers are expensive, so avoid disabling if already disabled (See https://mcuoneclipse.com/2015/10/16/nvic-disabling-interrupts-on-arm-cortex-m-and-the-need-for-a-memory-barrier-instruction/ )
2018-05-20 02:39:34 -05:00
Scott Lahteine
206014a957
Fix LPC176x timer functions
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
2018-05-20 01:58:51 -05:00
Scott Lahteine
59f7861bcb
Move backtrace to the HAL folder ( #10790 )
2018-05-20 01:33:21 -05:00
Scott Lahteine
50270b53a0
Clear up some more compile warnings
2018-05-17 18:40:49 -05:00
Scott Lahteine
fb608938f8
Prevent compilation of unused u8g-oriented code
2018-05-14 13:31:04 -05:00
Scott Lahteine
37b15fe4cf
Reorder HAL timer header items
2018-05-13 16:50:39 -05:00
Scott Lahteine
99ecdf59af
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:52:56 -05:00
etagle
9d98a62699
Followup to HAL optimizations and delays
...
- Cleanups, fixes for Due HAL code.
- TC_IER is write-only. Use TC_IMR to test ISR state.
2018-05-13 00:46:23 -05:00
Scott Lahteine
a1062eec5b
Better handling of DELAY_NS and DELAY_US ( #10716 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
2018-05-12 08:34:04 -05:00
etagle
1b225a2809
DUE: Emergency parser for the USB CDC
2018-05-12 02:12:11 -05:00