Explorar el Código

Add M997 support for SKR PRO 1.1 (#15394)

Maxim hace 5 años
padre
commit
1b9fc64d8a
Se han modificado 2 ficheros con 8 adiciones y 0 borrados
  1. 5
    0
      Marlin/src/HAL/HAL_STM32/HAL.cpp
  2. 3
    0
      Marlin/src/HAL/HAL_STM32/HAL.h

+ 5
- 0
Marlin/src/HAL/HAL_STM32/HAL.cpp Ver fichero

@@ -112,4 +112,9 @@ uint16_t HAL_adc_get_result() {
112 112
   return HAL_adc_result;
113 113
 }
114 114
 
115
+void flashFirmware(int16_t value) {
116
+  UNUSED(value);
117
+  NVIC_SystemReset();
118
+}
119
+
115 120
 #endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 3
- 0
Marlin/src/HAL/HAL_STM32/HAL.h Ver fichero

@@ -198,3 +198,6 @@ uint16_t HAL_adc_get_result();
198 198
 #define GET_PIN_MAP_PIN(index) index
199 199
 #define GET_PIN_MAP_INDEX(pin) pin
200 200
 #define PARSED_PIN_INDEX(code, dval) parser.intval(code, dval)
201
+
202
+#define PLATFORM_M997_SUPPORT
203
+void flashFirmware(int16_t value);

Loading…
Cancelar
Guardar