My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

watchdog.h 527B

1234567891011121314151617
  1. #ifndef WATCHDOG_H
  2. #define WATCHDOG_H
  3. #include "Marlin.h"
  4. #if ENABLED(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