17 Commits (213e94bce2fd74b10014557bd6801b45193a08f8)

Author SHA1 Message Date
Scott Lahteine ad21a4f07b Tweaks to HAL format and order 6 years ago
Dave Johnson c64199941e Compile only selected PIO environment (#11519) 6 years ago
Scott Lahteine 15d68cb496 Pre-override of ST7920 delays before HAL.h 6 years ago
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
6 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
Scott Lahteine a1062eec5b
Better handling of DELAY_NS and DELAY_US (#10716)
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Chris Pepper cc6d41e1d3 Use a macro for HAL header redirection (#10380) 7 years ago
Scott Lahteine 90fa423737
Preliminary cleanup of #include structure (#9763) 7 years ago
Scott Lahteine 799e3b2b40 LPC1768 HAL formatting/comments 7 years ago
teemuatlut 5c69d45f5b [2.0.x] TMC2130 support for LPC platform (#9114) 7 years ago
Chris Pepper f875f49caa [2.0.x] LPC1768: Fix: Serial pins disabled correctly when in use (#9193) 7 years ago
Christopher Pepper 1e65562d55 LPC1768: HAL: only initialise used HardwareSerial ports
Misc formatting
7 years ago
Thomas Moore f7efac57b7 Multi-host support 7 years ago
Scott Lahteine 8836623e0f Fix `sq`/`min`/`max` macros after platform headers 7 years ago
Thomas Moore 51fafccc16 [2.0.x] Enable hardware serial ports on LPC1768 (#8004)
* Enable hardware serial ports on LPC1768

* Fix compilation errors with other HALs

* FIx order of includes in LPC1768 HAL main.cpp

* Add support for RX_BUFFER_SIZE and TX_BUFFER_SIZE options in Configuration_adv.h
7 years ago
Scott Lahteine 358656acc3 Tweak HAL_adc_start_conversion 7 years ago
Christopher Pepper 44b0c186a6 HAL for Re:ARM (LPC1768) architecture 7 years ago