From d46fdbe9563676fb4d68a3ed096fd2ba1a826b2e Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 1 Dec 2008 18:34:06 +0000 Subject: [PATCH] Include the wdt cpu specific header. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1949 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/wdt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.25.1