aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/platforms/Posix/hal_lld.c2
-rw-r--r--os/hal/platforms/Win32/hal_lld.c2
2 files changed, 4 insertions, 0 deletions
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. */