♻️ Move watchdog to MarlinHAL
This commit is contained in:
@ -69,7 +69,7 @@ inline void toggle_pins() {
|
||||
SERIAL_EOL();
|
||||
}
|
||||
else {
|
||||
watchdog_refresh();
|
||||
hal.watchdog_refresh();
|
||||
report_pin_state_extended(pin, ignore_protection, true, F("Pulsing "));
|
||||
#ifdef __STM32F1__
|
||||
const auto prior_mode = _GET_MODE(i);
|
||||
@ -98,10 +98,10 @@ inline void toggle_pins() {
|
||||
{
|
||||
pinMode(pin, OUTPUT);
|
||||
for (int16_t j = 0; j < repeat; j++) {
|
||||
watchdog_refresh(); extDigitalWrite(pin, 0); safe_delay(wait);
|
||||
watchdog_refresh(); extDigitalWrite(pin, 1); safe_delay(wait);
|
||||
watchdog_refresh(); extDigitalWrite(pin, 0); safe_delay(wait);
|
||||
watchdog_refresh();
|
||||
hal.watchdog_refresh(); extDigitalWrite(pin, 0); safe_delay(wait);
|
||||
hal.watchdog_refresh(); extDigitalWrite(pin, 1); safe_delay(wait);
|
||||
hal.watchdog_refresh(); extDigitalWrite(pin, 0); safe_delay(wait);
|
||||
hal.watchdog_refresh();
|
||||
}
|
||||
}
|
||||
#ifdef __STM32F1__
|
||||
|
@ -309,7 +309,6 @@ void GcodeSuite::M917() {
|
||||
}
|
||||
DEBUG_ECHOLNPGM(".");
|
||||
reset_stepper_timeout(); // keep steppers powered
|
||||
watchdog_refresh();
|
||||
safe_delay(5000);
|
||||
status_composite_temp = 0;
|
||||
for (j = 0; j < driver_count; j++) {
|
||||
|
@ -214,7 +214,7 @@ void GcodeSuite::D(const int16_t dcode) {
|
||||
|
||||
c = 1024 * 4;
|
||||
while (c--) {
|
||||
TERN_(USE_WATCHDOG, watchdog_refresh());
|
||||
hal.watchdog_refresh();
|
||||
card.write(buf, COUNT(buf));
|
||||
}
|
||||
SERIAL_ECHOLNPGM(" done");
|
||||
@ -231,7 +231,7 @@ void GcodeSuite::D(const int16_t dcode) {
|
||||
__attribute__((aligned(sizeof(size_t)))) uint8_t buf[512];
|
||||
uint16_t c = 1024 * 4;
|
||||
while (c--) {
|
||||
TERN_(USE_WATCHDOG, watchdog_refresh());
|
||||
hal.watchdog_refresh();
|
||||
card.read(buf, COUNT(buf));
|
||||
bool error = false;
|
||||
for (uint16_t i = 0; i < COUNT(buf); i++) {
|
||||
|
Reference in New Issue
Block a user