My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

watchdog.h 520B

1234567891011121314151617
  1. #ifndef WATCHDOG_H
  2. #define WATCHDOG_H
  3. #include "Marlin.h"
  4. #ifdef USE_WATCHDOG
  5. // intialise 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