+#include <config.h>
+#include <compiler.h> // INLINE
+
+/* Configury sanity check */
+#if !defined(CONFIG_WATCHDOG) || (CONFIG_WATCHDOG != 0 && CONFIG_WATCHDOG != 1)
+ #error CONFIG_WATCHDOG must be defined to either 0 or 1
+#endif
+
+#if CONFIG_WATCHDOG
+ #include <cpu.h>
+
+ #if CPU_AVR
+ #include <avr/io.h>
+ #include <macros.h> // BV()
+ #else
+ #error unknown CPU
+ #endif
+#endif /* CONFIG_WATCHDOG */