Giuliano Zaro
7b838f31be
DUE HAL cleanup ( #14126 )
2019-05-26 14:51:32 -05:00
Bob Kuhn
6bd0a0be97
Relocate DUE Stepper ISR to TC0,2 ( #13481 )
2019-03-25 22:39:51 -05:00
Scott Lahteine
0feeef2604
Update copyright in headers
2019-02-12 15:30:11 -06: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
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
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
Eduardo José Tagle
0c428a66d9
Proper AVR preemptive interrupt handling ( #10496 )
...
Also simplify logic on all ARM-based interrupts. Now, it is REQUIRED to properly configure interrupt priority. USART should have highest priority, followed by Stepper, and then all others.
2018-04-23 22:05:07 -05:00
Chris Pepper
cc6d41e1d3
Use a macro for HAL header redirection ( #10380 )
2018-04-12 20:25:08 -05:00
Eduardo José Tagle
97e8a6ebd9
Various fixes for DUE... ( #10152 )
...
- Watchdog reset during SD Card initialization.
- Move `DebugMonitor` to `DebugMonitor_Due.cpp`.
- Since the watchdog is enabled on boot do extra resets during init.
- Have `thermalManager` do watchdog reset before its ISR starts to prevent reset.
- Ensure that timers are stopped before reprogramming them to address tone issues.
- Improve SAM3XE reset when reflashed through the native port.
2018-03-21 19:04:45 -05:00
Bob-the-Kuhn
53362b81cc
Tone fixes/changes ( #10151 )
2018-03-19 04:48:06 -05:00
Scott Lahteine
f2c0ed193d
Add tone support for Due ( #9807 )
2018-02-25 10:48:14 -06:00
Scott Lahteine
03d790451f
[2.0.x] HAL timer set/get count => set/get compare ( #9581 )
...
To reduce confusion over the current timer count vs. the compare (aka "top") value. Caution: this re-uses the function name, changing its meaning.
2018-02-10 20:42:00 -06:00
Roxy-3D
7c469c0712
Suggested change to fix Due compile problem
2018-01-18 23:00:03 -06:00
Scott Lahteine
ac368f2788
Add STEPPER_ISR_ENABLED() to HALs
...
Some also get a `HAL_timer_interrupt_enabled` function.
2018-01-14 21:07:10 -06:00
Scott Lahteine
27cbb939b2
Clean up some HAL code
2017-08-31 18:36:53 -05:00
Scott Lahteine
2af62a5d8d
Apply spacing, const to some HAL code
2017-08-31 18:33:07 -05:00
Christopher Pepper
cfef925559
HAL for DUE architecture
2017-08-31 18:15:07 -05:00