X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fwdt.h;h=0cb221c3a18aa9a6a9d1a5aa528c04e931aade74;hb=d46fdbe9563676fb4d68a3ed096fd2ba1a826b2e;hp=85f33f8249b544d86bf5012c4f90e57e0dac0570;hpb=1260bb120279dc22498c875ac4239bf44b5917bd;p=bertos.git diff --git a/bertos/drv/wdt.h b/bertos/drv/wdt.h index 85f33f82..0cb221c3 100644 --- a/bertos/drv/wdt.h +++ b/bertos/drv/wdt.h @@ -50,7 +50,7 @@ #error CONFIG_WATCHDOG must be defined to either 0 or 1 #endif -#if OS_HOSTED || !CONFIG_WATCHDOG +#if OS_HOSTED #include #include @@ -61,9 +61,12 @@ #else #error unknown CPU #endif +#elif CONFIG_WATCHDOG + #include CPU_HEADER(wdt) #endif /* CONFIG_WATCHDOG */ + #if OS_HOSTED || !CONFIG_WATCHDOG /** * Reset the watchdog timer.