My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

watchdog.h 521B

1234567891011121314151617
  1. #ifndef WATCHDOG_H
  2. #define WATCHDOG_H
  3. #include "Marlin.h"
  4. #ifdef USE_WATCHDOG
  5. // initialize watch dog with a 1 sec interrupt time
  6. void watchdog_init();
  7. // pad the dog/reset watchdog. MUST be called at least every second after the first watchdog_init or AVR will go into emergency procedures..
  8. void watchdog_reset();
  9. #else
  10. //If we do not have a watchdog, then we can have empty functions which are optimized away.
  11. FORCE_INLINE void watchdog_init() {};
  12. FORCE_INLINE void watchdog_reset() {};
  13. #endif
  14. #endif