Karl Andersson
1946f729fd
STM32 FastIO using register access ( #12276 )
2018-10-30 19:25:44 -05:00
Scott Lahteine
4ed579cafc
Americanized English spelling
2018-10-30 18:55:38 -05:00
Scott Lahteine
3583e2b449
Followup to Menu Refactor ( #12275 )
2018-10-30 16:34:45 -05:00
mholeys
63ce8baa55
Fix Teensy 3.5/3.6 ADC access for ADC1 ( #12258 )
2018-10-28 15:51:49 -05:00
Scott Lahteine
5580773191
Use FastIO, sanity-check LPC SD options, apply formatting ( #12231 )
2018-10-26 15:23:02 -05:00
Scott Lahteine
d015f746cc
Fix some compile warnings ( #12220 )
2018-10-26 03:53:06 -05:00
Scott Lahteine
fbfb48cce0
Indent a block
2018-10-25 10:52:27 -05:00
Scott Lahteine
7a04eb3a8b
Fix some comment formatting
2018-10-23 22:35:44 -05:00
Karl Andersson
aa72884a6e
Enable use of SERIAL_PORT_2 on HAL_STM32 ( #12197 )
2018-10-23 15:24:58 -05:00
Scott Lahteine
8d3a92fc4a
Followup to millis_t patch
2018-10-20 23:23:58 -05:00
Ludy
44369d536a
Use millis_t where needed ( #12152 )
2018-10-20 23:21:27 -05:00
Scott Lahteine
c6a5c74208
Add parentheses to SD macros
2018-10-19 13:52:57 -05:00
Marcio Teixeira
71e19baf69
Fix kill => disable_all_heaters => print_job_timer.stop ( #12146 )
...
- Remove `print_job_timer.stop()` from `disable_all_heaters`
- Call `print_job_timer.stop()` for relevant `disable_all_heaters()`.
- Split up `kill()` for watchdog interrupt safety
2018-10-18 21:20:56 -05:00
Marcio Teixeira
5b7dd553d3
Fix sd_mmc_spi_mem capacity; clean up USB code ( #12134 )
...
- Fix an error in the return value of `sd_mmc_spi_read_capacity` which was causing the host OS to read beyond the last sector in the card.
- Clean up the USB flashdrive code and add better debugging.
2018-10-18 11:34:07 -05:00
Scott Lahteine
df768e7d8f
Followup to #12129
2018-10-18 11:29:49 -05:00
Chris Pepper
3c13c9e3e9
[LPC176x] Fix USEABLE_HARDWARE_PWM macro, cleanup multiple LED support ( #12129 )
2018-10-18 11:26:50 -05:00
Nils Hasenbanck
9deb23aa47
Add missing SerialUSB definition for STM32 HAL ( #12124 )
2018-10-17 11:14:10 -05:00
Scott Lahteine
bc75eb2c64
Cleanup for HAL_spi_Due.cpp
2018-10-17 10:33:54 -05:00
Scott Lahteine
cce4931342
Clean up recent contribs
2018-10-16 06:45:44 -05:00
Karl Andersson
8b5e51c9aa
STM32F4xx modifications for HAL_STM32 ( #12080 )
2018-10-16 06:42:41 -05:00
Christopher Pepper
e5b4bf22d4
Remove debug output from flash persistent store implementation
2018-10-14 18:43:48 +01:00
Christopher Pepper
254b68fe2c
servo update
2018-10-14 18:43:48 +01:00
Andy Shaw
870bfd08f5
usb and sdcard sharing improvements
...
* Add traceback after watchdog timeout
Add the cpability to perform a traceback following a watchdog timeout.
* Enhanced hardware SPI
Allow use of either SSP0 or SSP1.
Ensure that no data is left in I/O buffers after calls to enable sharing of SSP hardware.
* Make flash emulation of eeprom the default
Make use of flash for eeprom storage the default. This means that usage of eeprom will not cause USB drive mount/unmount operations.
* Allow sharing of SD card
SD card I/O operations from the USB stack take place in idle loop, rather than at interrupt time. Allowing sharing of the SPI bus.
New configuration options to allow usage of the SD card to be specified.
* Fix problem with hardware SPI pins
2018-10-14 18:43:48 +01:00
Christopher Pepper
5ddf52d58e
[HAL][LPC176x] Pull out framework into separate repository
...
Framework and build platform now located at https://github.com/p3p/pio-framework-arduino-lpc176x and https://github.com/p3p/pio-nxplpc-arduino-lpc176x respectively
fix mkssbase leds
move hardware serial
remove hardware/software serial
Hardware Serial extraction
HardwareSerial ISRs
fix disabled serial2 causing Serial object to link
move usb devices out to framework
separate out adc/pwm peripheral function from hal.cpp
fix includes
remove unused pwm init
move adc
HAL header update
templated filtered adc
LPC1769 platform
2018-10-14 18:43:48 +01:00
Scott Lahteine
0bd54392b7
Use uint8_t in EEPROM code
2018-10-09 19:00:01 -05:00
Marcio Teixeira
ec9aa4f468
[2.0.x] Miscellaneous fixes ( #12039 )
...
* Allow override of soft SPI pins in `pins_*.h`
* Add default case to avoid compiler warning.
* Additional pin definitions for Archim 2.
* Einsy Retro has same timings as Einsy Rambo.
2018-10-08 18:14:52 -05:00
Nils Hasenbanck
191df5e17d
Correct PWM_PIN behavior for STM32 HALs ( #12027 )
2018-10-07 17:08:01 -05:00
Scott Lahteine
bfcf570d68
Try ISR_ALIASOF for Endstop Interrupts
2018-10-07 17:05:32 -05:00
Scott Lahteine
cb7844c8d4
Save PROGMEM on serial prefixes ( #12033 )
...
With default config and `EEPROM_SETTINGS`, saves over 200 bytes of PROGMEM.
2018-10-07 15:32:15 -05:00
Scott Lahteine
33056046a3
STM32 non-generic PWM_PIN and USEABLE_HARDWARE_PWM ( #12016 )
2018-10-06 00:14:12 -05:00
Scott Lahteine
d5141c4e03
Fix up leading/trailing whitespace
2018-10-05 18:19:59 -05:00
Nils Hasenbanck
fcf6d127fd
STM32 timer simplification ( #11995 )
...
Prescalers aren't calculated for the given target frequency.
Stepper timer should run at 2 Mhz and temperature timer at 72 Khz.
2018-10-03 22:33:24 -05:00
AnoNymous
001f26b642
Template struct simplification for serial ( #11990 )
2018-10-03 11:01:21 -05:00
Scott Lahteine
348004c34f
STM32F7 HAL using the official STM32 Arduino Core ( #11750 )
2018-10-03 03:26:07 -05: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
Eduardo José Tagle
f6f2246f59
Templatized serial classes ( #11982 )
2018-10-02 22:15:30 -05:00
Scott Lahteine
ee53f7d813
Revert header reorg.
2018-10-02 22:09:41 -05:00
Scott Lahteine
0dedb3e139
Reorganize some core headers ( #11983 )
2018-10-02 04:25:46 -05:00
Scott Lahteine
606a4362b3
Reduce STM32F4 compile warnings
2018-10-01 04:41:17 -05:00
Scott Lahteine
11ac75edcb
Use PGM_P for PSTR pointers ( #11977 )
2018-09-30 23:44:33 -05:00
Scott Lahteine
8489673cea
Adjust some HAL formatting
2018-09-30 21:24:37 -05:00
Alexander Amelkin
2ecfda80ac
Improve support for JTAG/SWD pins reuse ( #11963 )
...
STM32 can reuse JTAG and SWD pins separately. Add `DISABLE_DEBUG` option to disable both interfaces and retain `DISABLE_JTAG` to disable JTAG only.
2018-09-29 19:00:49 -05:00
Scott Lahteine
7d5c336c56
Corrections for dylsexic TMC
2018-09-29 18:51:11 -05:00
Scott Lahteine
ad21a4f07b
Tweaks to HAL format and order
2018-09-28 15:59:50 -05:00
Scott Lahteine
b682a1961a
Tweak STM32F7 TMC2660 class
2018-09-27 21:13:15 -05:00
Alexander Amelkin
84926b1d5a
HAL general support for DISABLE_JTAG option ( #11211 )
...
Some STM32-based boards may use multiplexed JTAG pins as IO. Up to now the `DISABLE_JTAG` option (defined in pins files) was only supported for AT90-based boards. This commit generalizes the code and adds support for boards based on STM32F1 and STM32F4.
2018-09-27 19:02:50 -04:00
Marcio Teixeira
ccbd045f02
Fixed warning about comparing signed to unsigned ( #11909 )
2018-09-24 12:03:29 -04:00
Marcio Teixeira
c411e7eb0d
[2.0.x] Squelch compiler warnings seen with -Wall ( #11889 )
2018-09-23 12:00:34 -04:00
Scott Lahteine
1718eff54a
Code changes supporting up to 6 extruders
2018-09-16 22:32:53 -05:00
Holger Müller
1a6f2b29b8
Add support for Triple-Z steppers/endstops
2018-09-16 00:35:58 -05:00
Sam Lane
d783400330
Updates to STM32F7 HAL, for completeness ( #11770 )
2018-09-09 03:26:15 -05:00
Alexander Amelkin
f417408df1
[STM32F1] Fix HAL for new PlatformIO ( #11749 )
2018-09-07 18:15:32 -05:00
Scott Lahteine
2a61c9a939
Various fixups to configs, spacing, etc.
2018-09-06 06:44:31 -05:00
Scott Lahteine
6a3207391f
Remove obsolete HAL_timer_restrain
2018-08-31 16:17:22 -05:00
Ilya Bukhonin
7ecb8b4af5
[2.0.x] Teensy 3.1 and 3.2 support ( #11460 )
2018-08-27 21:49:49 -05:00
Scott Lahteine
a317bb4991
Remove stray tab
2018-08-24 17:35:13 -05:00
Scott Lahteine
ba1919c1eb
HAL tweaks to LPC1768 main
2018-08-22 17:16:18 -05:00
Scott Lahteine
0987ed2a18
Use American English
2018-08-22 17:16:18 -05:00
jmz52
a77f8c6dd5
Implement servo support for STM32F1 ( #11580 )
...
Implement servo support for STM32F1. Original code was incomplete and depended on Servo library from stm32duino which conflicts with `module/servo.h`.
2018-08-20 21:13:51 -05:00
Dave Johnson
0456caf0ad
Consolidate shared HALs and isolate HAL compile ( #11552 )
2018-08-20 21:11:12 -05:00
jmz52
dfe18ac633
Fix compilation error for STM32F1 with U8GLIB_SSD1306 or U8GLIB_SH1106 enabled ( #11583 )
...
The `binary.h` file required by `lcd/dogm/dogm_bitmaps.h` is not present in stm32duino environment. Binary macros are defined in `bit_constants.h` in stm32duino framework.
2018-08-20 20:37:56 -05:00
ghent360
00d24a8219
Don't call __delay_4cycles for 0 cycle delay - takes a really long time. ( #11586 )
2018-08-18 22:50:11 -05:00
jmz52
0b2d686160
Fix "SD init fail" problem for STM32F1 ( #11579 )
...
Fix "SD init fail" problem for STM32F1 caused by incorrect SS pin state and incorrect SPI mode. Issue #11225
2018-08-17 23:27:10 -05:00
Nils Hasenbanck
b37bfeffeb
[2.0.x] Use the new const functions of the persistentStore api ( #11544 )
2018-08-14 18:35:36 -05:00
Chris Pepper
5573ef62c6
[2.0.x] PersistentStore update followup ( #11549 )
2018-08-14 17:54:12 -05:00
Scott Lahteine
834ea7fcea
Remove 'const' from PersistentStore::capacity
2018-08-14 04:46:10 -05:00
Dave Johnson
c64199941e
Compile only selected PIO environment ( #11519 )
2018-08-14 03:28:52 -05:00
Andy Shaw
5be2559eda
Use flash memory to emulate EEPROM ( #11500 )
...
Use a sector of the LPC flash memory to emulate EEPROM storage, removing the need to have an SD card to store system parameters.
2018-08-14 01:19:34 -05:00
Scott Lahteine
865ee5985f
Followup persistent store with heading, const
2018-08-13 23:55:33 -05:00
Scott Lahteine
6a8b906318
Followup for persistent_store_api.h
2018-08-13 17:43:35 -05:00
Chris Pepper
66d2b48b59
Update PersistentStore api ( #11538 )
...
- Clean up the API to use a `static` class instance to adhere to Marlin convention
- Add `const` position data access for read/write
- Add Storage capacity to the interface
2018-08-13 17:30:25 -05:00
Scott Lahteine
15d68cb496
Pre-override of ST7920 delays before HAL.h
2018-07-26 23:33:18 -05:00
Scott Lahteine
244b9a8257
Better fastio 1280/2560 pin list
...
Co-Authored-By: bleughb <36889022+bleughb@users.noreply.github.com>
2018-07-26 05:23:51 -05:00
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
2018-07-26 03:59:19 -05:00
teemuatlut
fbcdf5eaeb
Simplify stepper driver per-axis selection
2018-07-25 02:47:43 -05:00
Scott Lahteine
64f007580b
Fix some header comments
2018-07-17 19:50:24 -05:00
teemuatlut
f38c81cdde
LPC176x: Expand HW SPI class
2018-07-14 19:06:27 +03:00
teemuatlut
3b5dec4b13
Add new LPC include folder
2018-07-14 18:58:56 +03:00
Scott Lahteine
d05e832f29
Add STM32F1 support for SD-based EEPROM
2018-07-06 23:45:47 -05:00
etagle
1367df2875
Replace double with float, optimize calculation
2018-07-04 22:28:56 -05:00
etagle
e7e896e7d7
More tweaks to fastio_Due.h
2018-07-04 17:57:47 -05:00
Chris Pepper
55f4744e54
[LPC176x] Endstop Interrupts Feature ( #11202 )
...
Enable the endstop interrupts feature for LPC176x boards. Although Smoothieboard chose to use non-interrupt capable pins for their endstops, and this has been copied by clones, so they can't use it.
2018-07-04 17:51:45 -05:00
Chris Pepper
5abf5bc8a7
[LPC176x] Fix Interrupt forward declarations ( #11200 )
2018-07-04 17:43:14 -05:00
Chris Pepper
5616581eb1
[LPC176x] Update fastio _GET_INPUT, _GET_OUTPUT macros ( #11168 )
2018-07-01 23:02:38 -05:00
Scott Lahteine
8a8eae8d97
Implement more fastio_Due macros ( #11165 )
2018-07-01 01:24:06 -05:00
Scott Lahteine
fc10101b06
Tweaks to fastio_Due.h
2018-06-30 00:15:50 -05:00
Alexander Amelkin
ffdbc1f42c
STM32F1: Fix SD card persistent store API ( #11090 )
2018-06-26 14:41:23 -04:00
Scott Lahteine
d86f25ab63
Fix Serial ISR priority for LPC1768
...
Co-Authored-By: p3p <p3p@p3psoft.co.uk>
2018-06-25 12:15:41 -04:00
Scott Lahteine
99591dc20c
Filter endstops state at all times ( #11066 )
2018-06-21 20:14:16 -05:00
Chris Pepper
0312c42f9d
[2.0.x] LPC176x Serial cleanup ( #11032 )
2018-06-16 20:59:22 -05:00
Scott Lahteine
c1269c2ec1
Tweak AVR critical section defines
2018-06-16 17:42:32 -05:00
Chris Pepper
f88adcbfd5
[2.0.x][LPC176x] Fix binary linking broken by pio update ( #11026 )
2018-06-15 15:32:51 -05:00
Simon Jouet
e2aeda61ed
HAL for Espressif ESP32 Wifi
2018-06-13 19:33:35 -05:00
Scott Lahteine
19d4c7c1cd
Tweak HAL header comments
2018-06-13 19:08:42 -05:00
etagle
a215725df6
Fix stepper pulse timing
...
Always honor minimum period on stepper pulse generation, and fix timing calculations
Signed-off-by: etagle <ejtagle@hotmail.com>
2018-06-12 21:34:24 -05:00
Scott Lahteine
a9861a780e
Tweak HAL heading
2018-06-12 19:40:17 -05:00
Scott Lahteine
cf53e502a2
No need to set input after attachInterrupt
2018-06-12 18:43:11 -05:00
Karl Andersson
e0276d2f32
Official STMicroelectronics Arduino Core STM32F4 HAL compatibility ( #11006 )
2018-06-12 18:38:00 -05:00
Scott Lahteine
4dbec774b5
HAL_*_TIMER_RATE => *_TIMER_RATE
2018-06-12 16:39:12 -05:00
Scott Lahteine
9b945c13a1
Fix STM32F1 ISR_ENABLED
2018-06-11 22:09:45 -05:00