From 1cbd2e8e3d5bd0764be175cc07abe43ebf25479b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 27 Feb 2010 09:29:52 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1682 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/Posix/hal_lld.c | 2 ++ os/hal/platforms/Win32/hal_lld.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/os/hal/platforms/Posix/hal_lld.c b/os/hal/platforms/Posix/hal_lld.c index 1d9ea611b..b3d32d6de 100644 --- a/os/hal/platforms/Posix/hal_lld.c +++ b/os/hal/platforms/Posix/hal_lld.c @@ -47,10 +47,12 @@ static struct timeval tick = {0, 1000000 / CH_FREQUENCY}; * @brief PAL setup. * @details Digital I/O ports static configuration as defined in @p board.h. */ +#if CH_HAL_USE_PAL || defined(__DOXYGEN__) const VIOConfig pal_default_config = { {0, 0, 0}, {0, 0, 0} }; +#endif /*===========================================================================*/ /* Driver local functions. */ diff --git a/os/hal/platforms/Win32/hal_lld.c b/os/hal/platforms/Win32/hal_lld.c index 31e2b9a87..e037c9c83 100644 --- a/os/hal/platforms/Win32/hal_lld.c +++ b/os/hal/platforms/Win32/hal_lld.c @@ -42,10 +42,12 @@ static LARGE_INTEGER slice; * @brief PAL setup. * @details Digital I/O ports static configuration as defined in @p board.h. */ +#if CH_HAL_USE_PAL || defined(__DOXYGEN__) const VIOConfig pal_default_config = { {0, 0, 0}, {0, 0, 0} }; +#endif /*===========================================================================*/ /* Driver local functions. */