diff options
Diffstat (limited to 'halext/src/gdisp.c')
-rw-r--r-- | halext/src/gdisp.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/halext/src/gdisp.c b/halext/src/gdisp.c index f3aaf887..cd3a839b 100644 --- a/halext/src/gdisp.c +++ b/halext/src/gdisp.c @@ -25,15 +25,16 @@ * @addtogroup GDISP
* @{
*/
-#ifndef _GDISP_C
-#define _GDISP_C
-
#include "ch.h"
#include "hal.h"
#include "gdisp.h"
#if HAL_USE_GDISP || defined(__DOXYGEN__)
+#ifdef GDISP_NEED_TEXT
+#include "gdisp_fonts.h"
+#endif
+
#if GDISP_NEED_MULTITHREAD
#warning "GDISP: Multithread support not complete"
#define MUTEX_INIT /* Not defined yet */
@@ -58,10 +59,6 @@ /* Driver exported variables. */
/*===========================================================================*/
-#if GDISP_NEED_TEXT || defined(__DOXYGEN__)
- #include "gdisp_inc_fonts.c.h"
-#endif
-
/*===========================================================================*/
/* Driver local variables. */
/*===========================================================================*/
@@ -716,5 +713,4 @@ #endif
#endif /* HAL_USE_GDISP */
-#endif /* GDISP_C */
/** @} */
|