aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/meta/driver_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/meta/driver_lld.c')
-rw-r--r--os/hal/templates/meta/driver_lld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/templates/meta/driver_lld.c b/os/hal/templates/meta/driver_lld.c
index 0413ffa31..012ef1c56 100644
--- a/os/hal/templates/meta/driver_lld.c
+++ b/os/hal/templates/meta/driver_lld.c
@@ -27,6 +27,8 @@
#include "ch.h"
#include "hal.h"
+#if CH_HAL_USE_XXX || defined(__DOXYGEN__)
+
/*===========================================================================*/
/* Low Level Driver exported variables. */
/*===========================================================================*/
@@ -76,4 +78,6 @@ void xxx_lld_stop(XXXDriver *xxxp) {
}
+#endif /* CH_HAL_USE_XXX */
+
/** @} */