From: asterix Date: Mon, 1 Dec 2008 18:34:06 +0000 (+0000) Subject: Include the wdt cpu specific header. X-Git-Tag: 2.1.0~733 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d46fdbe9563676fb4d68a3ed096fd2ba1a826b2e;p=bertos.git Include the wdt cpu specific header. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1949 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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.