52 Commits (ab8a1a2a0d240cacd031721117bcda9d6363d22f)

Author SHA1 Message Date
Bob-the-Kuhn 11e68541b0
Merge pull request #9245 from Bob-the-Kuhn/TMC2208-sanity-check-2.0.x
[2.0.x] add TMC2208 sanity check to AVR
7 years ago
Bob-the-Kuhn 0ea9cdf4f2 TMC2208 sanity check 7 years ago
Roxy-3D bfd9728cf4
Serial buffer over run work around for v2.0.0 (#9236)
* Work around for serial buffer over run

PronterFace sends a lot of M105 commands.  During long operations such
as UBL's G29 P1, G29 P2, G29 P4 and G26 this can over run the serial
buffer.   This results (very often) in a M1 (actually a M1M105) ending
up in the command queue.

Until we figure out a better way to resolve this issue, this will keep
the UBL commands from experiencing bogus commands at thier completion.
7 years ago
Scott Lahteine ac368f2788 Add STEPPER_ISR_ENABLED() to HALs
Some also get a `HAL_timer_interrupt_enabled` function.
7 years ago
Thomas Moore 84de428d30 [2.0.x] Fix compile errors (#9141)
* Update persistent_store_impl.cpp
* Remove define BYTE from serial functions since Arduino docs typically show 0 for the normal case.
7 years ago
Thomas Moore f7efac57b7 Multi-host support 7 years ago
Scott Lahteine 51e0f2bee3 Add MarlinSettings::validate() 7 years ago
Scott Lahteine 1c41de16d4 Trailing whitespace clean 7 years ago
revilor 959a2d2527 Add beginTransaction to HAL SPI (#9019) 7 years ago
Bob-the-Kuhn adb9ecf3cc copy of PR #8990 7 years ago
Scott Lahteine 8b12371e45 Change some hex case 7 years ago
Scott Lahteine 6149b82119 Allow setting current timer counter 7 years ago
Scott Lahteine 82ef6b5242 Add an option to specify "pulse" timer 7 years ago
Scott Lahteine b8bc965414 General cleanup HAL timers 7 years ago
Scott Lahteine de3d3b9cb1 Put FORCE_INLINE before static 7 years ago
Thomas Moore 34eaaab5fb Fix _BV already defined warnings 7 years ago
Scott Lahteine 3066655727 Try port*100+pin, fix config dependency 7 years ago
Scott Lahteine ba8bc7ea80 Cosmetic tweaks 7 years ago
Scott Lahteine 550f1025f0 Try using <Arduino.h> everywhere 7 years ago
Scott Lahteine 32512332df Apply some formatting 7 years ago
Scott Lahteine 2246316605 Fix name collision. timer_t => hal_timer_t 7 years ago
GMagician 9e93b7ccbd [2.0.x] removed spaces
Removed spaces in array declaration
7 years ago
AnHardt c72a0610b4 Fix watchdog in WATCHDOG_RESET_MANUAL mode AVR 7 years ago
android444 9cc1d8e312 [2.0.x] Support for SilverGate Board 7 years ago
Scott Lahteine 817175613a
Merge pull request #8157 from thinkyhead/bf2_anet_10_servo
[2.0.x] Define a default SERVO0_PIN for Anet 1.0
7 years ago
Scott Lahteine 723f2a77f6 Implement support for Dual X and Y endstops 7 years ago
Scott Lahteine b232f39341 AVR: Hidden option to use 8s watchdog 7 years ago
etagle c9bbef6380 Cosmetic fix for HAL_AVR/MarlinSerial.cpp
Instead of using const char, it is better to use uint8_t
7 years ago
Thomas Moore 9e699811d2 Make LPC1768 pinmapping not specific to Re-ARM (#8063)
* Merging early because of build failures.  See #8105

* Make LPC1768 pinmapping not specific to Re-ARM

* Add HAL_PIN_TYPE and LPC1768 pin features

* M43 Updates

* Move pin map into pinsDebug_LPC1768.h

* Incorporate comments and M226

* Fix persistent store compilation issues

* Update pin features

* Update MKS SBASE pins

* Use native LPC1768 pin numbers in M42, M43, and M226
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
Roxy-3D 572cf0ec95 UBL able to generate mesh and save and load it on 32-bit platforms (#8015)
* Get UBL Mesh Generation, Mesh Save & Mesh Load working with 32-Bit platforms

* clean up read_data() and write_data() for non-LPC1768 HAL's

* Get read_data() and write_data() return codes consistent

All HAL's read_data() and write_data() return false if they succeed.

* Get read_data() and write_data() return codes to be consistent

Make read_data() and write_data() return true if an error happens.

* Say UBL is now checked out on machine types in default Configuration.h file.
7 years ago
Scott Lahteine e587f0893c Define AVR_ATmega2560_FAMILY_PLUS_70 in Conditionals 7 years ago
Scott Lahteine fd128b3c93 Fix some AVR HAL code style 7 years ago
Scott Lahteine 732e87e83c Merge pull request #7892 from GMagician/Serial-double-echo-fix
[2.0.x] Serial double echo fix
7 years ago
GMagician 546f02c6f4 [2.0.x] Addressing #7896
Compiler error, added char c variable
7 years ago
GMagician eb96d37da0 Serial double echo fix
Fix double character sent when TX buffer size is 0 on mega2560
7 years ago
Scott Lahteine 8315a8a716 Apply fixes for DUE
Alternative to #7882. If F_CPU is greater than 1000 it can be evenly divided by 8. Over 10000, 16; over 100000, 32; over 1 million, 64; etc.
7 years ago
Scott Lahteine 9fe7f53216 Misc general spacing cleanup 7 years ago
Chris Pepper 46b2773e13 General fixes for LPC1768 (#7834)
* fixed some include paths

* LPC1768: Fix Serial API

Add missing serial methods used if TX_BUFFER_SIZE is set
Change return value of HalSerial:read to match Arduino API

* LPC1768: add filters to ADC

This is to try and compensate for hardware issue and oversensitivity to noise

* LPC1768: remove the polling section of delayMicroseconds

* LPC1768: lock usb mass storage device while device accesses it.

Currently only applicable to persistent store,
The device always has priority and will unmount the sd card from the host, Windows then tries to automount again so it can look like the explorer window freezes. Linux Mint, by default, just closes the Nemo window.

* Add timeout to make sure if Serial never connects that Marlin still boots

* Remove unneeded ifdef CPU_32_BIT

In general the need for ifdef CPU_32_BIT blocks means that something is missing from the HAL API or a Platform, in this case HAL_TICKS_PER_US was missing from the AVR Platform

* LPC1768: relocate RE-ARM debug_extra_script.py
7 years ago
Scott Lahteine 7258218f89 Fix xon_xoff_state initialization 7 years ago
Scott Lahteine 508d764d63 Add serial XON/XOFF handshaking
From @ejtagle, originally #7459
7 years ago
Scott Lahteine c2b1d51f16 HAL whitespace and style cleanup 7 years ago
Dave Johnson f58ba3a64e Improve AVR arch detection
Replace ARDUINO_ARCH_AVR with __AVR__ to better detect architecture for non-Arduino dev environments.  Resolves compile failure in PIO for 8-bit Teensduino targets

More info:
https://forum.pjrc.com/threads/33234-Using-Teensyduino-Selecting-Teensy-3-2-3-1-board-has-incorrect-platform-define
http://www.atmel.com/webdoc/avrlibcreferencemanual/using_tools_1using_avr_gcc_mach_opt.html
7 years ago
Scott Lahteine 2e20c53c9d Move endstop debug to Endstops 7 years ago
Scott Lahteine 54326fb06a HAL updates 7 years ago
Scott Lahteine 27cbb939b2 Clean up some HAL code 7 years ago
Scott Lahteine 2af62a5d8d Apply spacing, const to some HAL code 7 years ago
Scott Lahteine 105324b85b Match the license headers in other files 7 years ago
Chris Pepper 61c0a10efe Revert "SPI API platform implementation stubs" (#7416)
This reverts commit 2dfa6ca72a2e8d43caf4932ca0d35792f0638917.

Revert "Base HAL SPI Changes"

This reverts commit 2afc521b8b6a81b2281a038f1b99a69f4a008e64.

Revert "Initial HAL SPI API"

This reverts commit 58f7ffe09ab5bc034b6510f5204f8d342138abaa.
7 years ago
Bob-the-Kuhn 84a11cfedc HAL compatible pinsDebug & misc
Re-ARM has been tested.  AVR has not been tested.

1) moved all cpu specific items to files in the low level HAL directory
for that CPU (pinDebug_Re-ARM.h & pinsDebug_AVR_8_bit.h

2) added pinsDebug.h to the top level directory

3) modified HAL_pinsDebug.h to select the correct support file for the
selected CPU

4) Patched sanitycheck to stop throwing false errors.  A long term
solution will be done

5) misc changes & bug fixes
arduino.cpp - included macros.h to fix a missing definition
pinmap_re-arm.h - removed a duplicated line.
pinmapping.h - changed from "ENABLED" to "defined" to fix a compile
error

======================================================================

split SanityCheck up, improve pinsDebug system

======================================================================

switch to latest pins_RAMPS_RE_ARM.h
7 years ago