Scott Lahteine
5f8591528e
Remove #pragmas that don't help c files
7 years ago
Scott Lahteine
c89649b46e
Suppress U8glib build warnings
7 years ago
etagle
569df3fc0c
Fix interrupt-based endstop detection
- Also implemented real endstop reading on interrupt.
7 years ago
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/ )
7 years ago
Scott Lahteine
206014a957
Fix LPC176x timer functions
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine
59f7861bcb
Move backtrace to the HAL folder ( #10790 )
7 years ago
Scott Lahteine
50270b53a0
Clear up some more compile warnings
7 years ago
Scott Lahteine
fb608938f8
Prevent compilation of unused u8g-oriented code
7 years ago
Scott Lahteine
37b15fe4cf
Reorder HAL timer header items
7 years ago
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>
7 years ago
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.
7 years ago
Scott Lahteine
a1062eec5b
Better handling of DELAY_NS and DELAY_US ( #10716 )
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
etagle
1b225a2809
DUE: Emergency parser for the USB CDC
7 years ago
Scott Lahteine
0436e16fb2
Apply shorthand Assembler macros
7 years ago
Scott Lahteine
d1b619be52
Standardize some hexadecimals
7 years ago
Scott Lahteine
2578996631
[2.0.x] Emergency parser for multiple serial ports ( #10524 )
7 years ago
Chris Pepper
2242b98248
[LPC176x] Emergency Parser Feature ( #10516 )
7 years ago
Eduardo José Tagle
c1e5ebbc1e
[2.0.x] AVR: Atomic bit set and clear of upper pin ports without critical section ( #10502 )
* AVR: Atomic bit set and clear
The critical section can be dropped, saving 3 cycles per access. Also simplified pin toggling for all ports.
7 years ago
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.
7 years ago
Chris Pepper
cc6d41e1d3
Use a macro for HAL header redirection ( #10380 )
7 years ago
Scott Lahteine
9ff4e9e1e6
Patch _IS_HW_SPI so defined() works
7 years ago
Bob-the-Kuhn
acda4ecb20
Fix DUE Trinamic SW/HW SPI sanity check ( #10336 )
7 years ago
Bob-the-Kuhn
902c885782
Switch to TMC2130 compatible hardware SPI & misc ( #10299 )
7 years ago
Scott Lahteine
93305a2d5e
Fix some spellings
7 years ago
Scott Lahteine
889fd5f71f
Backtrace minor cleanup
7 years ago
Eduardo José Tagle
749f19e502
[2.0.x] Move backtrace to a shared location ( #10237 )
- And implement the `backtrace()` function call
7 years ago
etagle
8934a2c49b
Added some missing Thumb instructions to the traceback follower, so now it is able to traceback through switch() statements
7 years ago
etagle
328edea03a
Several fixes to the backtracer. Tested ant it works
7 years ago
ejtagle
9a24c0ae3f
Tons of fixes to the backtracker code, and also added an extra backtracker that does not require unwind tables to work and it is used if unwind tables are absent
7 years ago
Bob-the-Kuhn
509227fd80
change to mode 0
7 years ago
etagle
c3b23974bd
Added detection of case when no unwind tables are available
7 years ago
etagle
b210bdf032
Now the Crash reporter uses the configured BAUDRATE to send the report through the Programming port. And also shows the traceback of functions as discussed. For that latest feature to work, you need to compile the project with -funwind-tables and -mpoke-function-name compiler flags
7 years ago
etagle
c5730cf711
As Bob-The-Khun suggested, resetting the USB peripheral solves the huge startup delays that happen when a WDT reset happens and we are connected through the native port
7 years ago
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.
7 years ago
Bob-the-Kuhn
7308ef7809
Add conditional, give DUE SPI a unique name, fix compiler warnings ( #10168 )
7 years ago
Bob-the-Kuhn
53362b81cc
Tone fixes/changes ( #10151 )
7 years ago
Eduardo José Tagle
bbfbf90797
Fix for DUE - no host support on native USB if SD card not enabled ( #10148 )
7 years ago
Bob-the-Kuhn
7f1afbfd60
can't type
7 years ago
Bob-the-Kuhn
23760d6c14
add full speed option
7 years ago
Bob-the-Kuhn
cbcd1ed42d
full speed
7 years ago
etagle
404fc94705
DUE USB CDC: Do not send any character if no program on the PC is listening to them. This avoids Marlin waiting until the user actually opens a program that is able to consume the output of Marlin
7 years ago
Scott Lahteine
36452b4d6e
Fix filename HAL/DUE/servotimers.h => ServoTimers.h
7 years ago
ejtagle
703c8ac0ef
Added Arduino-compatible kludge to the (ATMEL supplied) SAM3X USB stack we are now using so the Native port is also usable as a programming port on Arduino DUE and derived designs
7 years ago
Scott Lahteine
dd19e74476
Cleanup trailing whitespace
@Bob-the-Kuhn — Please set your git options to remove trailing whitespace on commit.
7 years ago
Bob-the-Kuhn
0d8c15c01f
restore PR 9661 files & V1 fix
7 years ago
Bob-the-Kuhn
bf59a4a6df
Revert "[2.0.x] DUE compatibility with shared SPI LCDs, USB mass storage, add pin defs & update examples\MakerParts\Configuration.h"
7 years ago
Bob-the-Kuhn
914bb80bde
removed SDSS init
added device & comm drivers for shared SPI LCDs
mistyped some updates in ultralcd_impl_DOGM.h
remove unwanted changes in onfiguration.h
still can't type
Update HAL_LCD_class_defines.h
include USB mass storage & misc
7 years ago
Bob-the-Kuhn
67a17446f2
Fix DUE incompatible enum type specification ( #10017 )
7 years ago
Bob-the-Kuhn
3c58ca181c
[2.0.x] Correct step pulse width on LPC1768, DUE & Teensy35_36 ( #10016 )
7 years ago
Scott Lahteine
98d48fc731
Followup to HAL_timer_restrain
Followup to #9985
7 years ago