From 1b9fc64d8ae35c28725727f58399abd422a9a7eb Mon Sep 17 00:00:00 2001 From: Maxim Date: Sat, 28 Sep 2019 08:54:30 +0300 Subject: [PATCH] Add M997 support for SKR PRO 1.1 (#15394) --- Marlin/src/HAL/HAL_STM32/HAL.cpp | 5 +++++ Marlin/src/HAL/HAL_STM32/HAL.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Marlin/src/HAL/HAL_STM32/HAL.cpp b/Marlin/src/HAL/HAL_STM32/HAL.cpp index e70d575788..6ecde3ef35 100644 --- a/Marlin/src/HAL/HAL_STM32/HAL.cpp +++ b/Marlin/src/HAL/HAL_STM32/HAL.cpp @@ -112,4 +112,9 @@ uint16_t HAL_adc_get_result() { return HAL_adc_result; } +void flashFirmware(int16_t value) { + UNUSED(value); + NVIC_SystemReset(); +} + #endif // ARDUINO_ARCH_STM32 && !STM32GENERIC diff --git a/Marlin/src/HAL/HAL_STM32/HAL.h b/Marlin/src/HAL/HAL_STM32/HAL.h index e275290ce5..dae75d42f2 100644 --- a/Marlin/src/HAL/HAL_STM32/HAL.h +++ b/Marlin/src/HAL/HAL_STM32/HAL.h @@ -198,3 +198,6 @@ uint16_t HAL_adc_get_result(); #define GET_PIN_MAP_PIN(index) index #define GET_PIN_MAP_INDEX(pin) pin #define PARSED_PIN_INDEX(code, dval) parser.intval(code, dval) + +#define PLATFORM_M997_SUPPORT +void flashFirmware(int16_t value);