|
@@ -27,8 +27,6 @@
|
27
|
27
|
|
28
|
28
|
#include <libmaple/iwdg.h>
|
29
|
29
|
|
30
|
|
-#include "../../inc/MarlinConfig.h"
|
31
|
|
-
|
32
|
30
|
/**
|
33
|
31
|
* The watchdog clock is 40Khz. We need a 4 seconds interval, so use a /256 preescaler and
|
34
|
32
|
* 625 reload value (counts down to 0)
|
|
@@ -43,9 +41,4 @@ void watchdog_init();
|
43
|
41
|
|
44
|
42
|
// Reset watchdog. MUST be called at least every 4 seconds after the
|
45
|
43
|
// first watchdog_init or STM32F1 will reset.
|
46
|
|
-inline void watchdog_reset() {
|
47
|
|
- #if PIN_EXISTS(LED)
|
48
|
|
- TOGGLE(LED_PIN); // heart beat indicator
|
49
|
|
- #endif
|
50
|
|
- iwdg_feed();
|
51
|
|
-}
|
|
44
|
+void watchdog_reset();
|