1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-14 14:31:33 +00:00
MarlinFirmware/Marlin/src/HAL/HAL_STM32F1
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
..
endstop_interrupts.h Filter endstops state at all times (#11066) 2018-06-21 20:14:16 -05:00
fastio_Stm32f1.h HAL FastIO cleanup and fixes 2018-04-26 00:40:16 -05:00
HAL_Servo_Stm32f1.cpp delay(SERVO_DELAY) => safe_delay(servo_delay[servo_index]) 2018-05-28 03:44:32 -05:00
HAL_Servo_Stm32f1.h Allow libServo::attach to work on Teensy 3.5/3.6 2018-05-28 20:56:24 -05:00
HAL_spi_Stm32f1.cpp Official STMicroelectronics Arduino Core STM32F4 HAL compatibility (#11006) 2018-06-12 18:38:00 -05:00
HAL_timers_Stm32f1.cpp HAL_*_TIMER_RATE => *_TIMER_RATE 2018-06-12 16:39:12 -05:00
HAL_timers_Stm32f1.h Fix stepper pulse timing 2018-06-12 21:34:24 -05:00
HAL.cpp Additional temp-oriented improvements 2018-05-02 08:43:22 -05:00
HAL.h Ensure ADC conversion is complete before reading (#11336) 2018-07-26 03:59:19 -05:00
persistent_store_flash.cpp Add STM32F1 support for SD-based EEPROM 2018-07-06 23:45:47 -05:00
persistent_store_impl.cpp Add STM32F1 support for SD-based EEPROM 2018-07-06 23:45:47 -05:00
pinsDebug.h Use a macro for HAL header redirection (#10380) 2018-04-12 20:25:08 -05:00
README.md Update readme.md 2017-12-11 23:14:13 -06:00
SanityCheck.h Add sanity checks for EMERGENCY_PARSER 2018-04-24 09:24:26 -05:00
spi_pins.h Changes to STM32F1 HAL (#8833) 2017-12-20 16:16:36 -06:00
stm32f1_flag_script.py Add platformio support for stm32 (#8246) 2017-11-06 23:03:59 -06:00
watchdog_Stm32f1.cpp Apply some formatting 2017-11-18 03:12:30 -06:00
watchdog_Stm32f1.h snapshot 2018-02-03 21:28:05 -06:00

This HAL is for STM32F103 boards used with libmaple/stm32duino Arduino core.

This HAL is in development. Currently has been tested in Malyan M200 (103CBT6), Chitu 3d (103ZET6), and custom boards(103VET6).

The stm32 core needs a modification in the file util.h to avoid conflict with Marlin macros for Debug.

Since only 1 file needs change in the stm32duino core, it's preferable over making changes to Marlin.

After these lines: <> #else #define ASSERT_FAULT(exp) (void)((0)) #endif <>

Add the following 3 lines: <> #undef DEBUG_NONE #undef DEBUG_FAULT #undef DEBUG_ALL <>

Main developers:

Victorpv xC000005

Most up to date repository for this HAL:

https://github.com/victorpv/Marlin/tree/bugfix-2.0.x

PRs should only be sent to Marlin bugfix-2.0.x branch once tested in printing so not to introduce new bugs. For testing/dev, you can submit to the above branch