Scott Lahteine
cf53e502a2
No need to set input after attachInterrupt
7 years ago
Karl Andersson
e0276d2f32
Official STMicroelectronics Arduino Core STM32F4 HAL compatibility ( #11006 )
7 years ago
Scott Lahteine
4dbec774b5
HAL_*_TIMER_RATE => *_TIMER_RATE
7 years ago
Scott Lahteine
9b945c13a1
Fix STM32F1 ISR_ENABLED
7 years ago
Alexey Shvetsov
2ddba201c0
STM32F1 HAL Fixes ( #10999 )
- Enable / disable interrupts with `__iSeiRetVal` / `__iCliRetVal`
- Add STM32F1 to Travis CI tests
7 years ago
Eduardo José Tagle
5590c8ffd0
Fix MarlinSerial (AVR) ( #10991 )
An undocumented hw bug makes the UART lose chars when RX ISR is disabled, even for a very small amount of time. This happens when RX_BUFFER > 256, and the result is corrupted received commands. Solved by implementing pseudo-atomic operations on 16bit indices.
7 years ago
Scott Lahteine
117fd007a9
Followup to pin error change
7 years ago
etagle
99af086cea
Add hidden Serial overflow debug options
7 years ago
etagle
d90e8fcad9
Fix XON/XOFF implementation
Pointed out by @GMagician
7 years ago
Scott Lahteine
3701869e6c
Add HAL_timer_start for AVR, use stepper timer to time pulses
7 years ago
Scott Lahteine
a426986df8
Ensure pins set to INPUT after attachInterrupt ( #10928 )
7 years ago
Giuliano
c9d1a620d4
[2.0.x] fix indentations ( #10934 )
7 years ago
Scott Lahteine
c685c7b7dd
STM32F4: All pins can do PWM
7 years ago
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
7 years ago
Chris Pepper
d87257f63c
[2.0.x][LPC176x] Fix PIO build flags ( #10909 )
Don't build and link with different flags, the binary may not work.
7 years ago
Scott Lahteine
cbcb284f4a
Allow libServo::attach to work on Teensy 3.5/3.6
7 years ago
Chris Pepper
f89f7c4a82
[2.0.x][LPC176x][Build] Force single precision constants, disable freestanding ( #10892 )
7 years ago
android444
16da5c62d0
Teensy 3.x fastio pullup ( #10890 )
7 years ago
Scott Lahteine
9b9b62b218
delay(SERVO_DELAY) => safe_delay(servo_delay[servo_index])
7 years ago
android444
9c235ef821
[HAL]Add support for ST7920 - Teensy 3.x ( #10872 )
7 years ago
Bob-the-Kuhn
1c0ad8bbae
wrong type of exit method
7 years ago
Eduardo José Tagle
6f330f397e
[2.0.x] Buffer overflow and scroll fix, UTF8 cleanup ( #10844 )
7 years ago
Bob Kuhn
235facd545
install AVRDUDE 5.10, faster disk find for LPC1768 ( #10849 )
7 years ago
Bob Kuhn
e2db509d58
[2.0.x] Update/Fix LPC1768 extra script upload_extra_script.py ( #10843 )
* Use a different method to find the volume info in Windows
7 years ago
Scott Lahteine
5f8591528e
Remove #pragmas that don't help c files
7 years ago
Scott Lahteine
c89649b46e
Suppress U8glib build warnings
7 years ago
Scott Lahteine
4118199ddd
Tweaks to core headers
7 years ago
Bob Kuhn
6dfbb39f83
[LPC1768] Add error-handling to upload script, update autobuild.py ( #10802 )
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
c2fb2f54a1
Use assembly for AVR ISR vectors
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
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
c173a31060
Fix some compile warnings
7 years ago
Chris Pepper
9b64fdbc3a
[LPC176x] HAL: Add missing program space definition ( #10776 )
7 years ago
Scott Lahteine
50270b53a0
Clear up some more compile warnings
7 years ago
etagle
40d7e12827
Removing warnings from compilation
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
883b0c9880
Convert custom maths to inlines ( #10728 )
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
81b632c255
Additional temp-oriented improvements
7 years ago
nightdemonx
e911635fb1
Add thermocouple with AD8495 support
7 years ago
Scott Lahteine
3f68203324
Modify FastIO error message
7 years ago
Scott Lahteine
a474a7e675
Correct AVR_ATmega328_FAMILY macro
…as with #10540
Co-Authored-By: per1234 <per1234@users.noreply.github.com>
7 years ago